On Thu, Dec 15, 2011 at 5:37 PM, Daniel Nichter <[email protected]> wrote:
> Is it possible to put everything in the source file?
It depends what you mean by "everything". Most of the stuff in a
plugin.ini file is consumed by config/pandora-plugin for its own
purposes (it creates autoconf input files for us). The author and
module name fields go into drizzled/plugin.h, where you'll see two
familiar macros:
#define DRIZZLE_PLUGIN(init,system,options) \
DRIZZLE_DECLARE_PLUGIN \
{ \
DRIZZLE_VERSION_ID, \
STRINGIFY_ARG(PANDORA_MODULE_NAME), \
STRINGIFY_ARG(PANDORA_MODULE_VERSION), \
STRINGIFY_ARG(PANDORA_MODULE_AUTHOR), \
STRINGIFY_ARG(PANDORA_MODULE_TITLE), \
PANDORA_MODULE_LICENSE, \
init, \
STRINGIFY_ARG(PANDORA_MODULE_DEPENDENCIES), \
options \
}
According to grep this is the only place where PANDORA_MODULE_AUTHOR
appears, didn't check the others.
So it seems Drizzle supports both of, and code comments do not decree
or deprecate either one of, the following:
- Module meta data (author, name, title, version, license) is
specified in plugin.ini. In the c++ source you can omit them by using
the shorter DRIZZLE_PLUGIN macro.
- Module meta data is specified in DRIZZLE_DECLARE_PLUGIN macro, and
you can omit it from plugin.ini.
henrik
> If not and we're stuck
> with plugin.ini files, then we'll have to port that info in any case (if the
> plugin API changes), so porting a few extra lines doesn't seem bothersome,
> especially if all the info to be ported is in one file with a common format.
> My other reason for preferring the plugin.ini file is that it's slightly
> easier to parse.
>
> -Daniel
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~drizzle-discuss
> Post to : [email protected]
> Unsubscribe : https://launchpad.net/~drizzle-discuss
> More help : https://help.launchpad.net/ListHelp
>
--
[email protected]
+358-40-8211286 skype: henrik.ingo irc: hingo
www.openlife.cc
My LinkedIn profile: http://www.linkedin.com/profile/view?id=9522559
_______________________________________________
Mailing list: https://launchpad.net/~drizzle-discuss
Post to : [email protected]
Unsubscribe : https://launchpad.net/~drizzle-discuss
More help : https://help.launchpad.net/ListHelp