Trac is being migrated to new services! Issues can be found in our new YouTrack instance and WIKI pages can be found on our website.

Changes between Version 2 and Version 3 of CHowTo/BasicPluginHowto


Ignore:
Timestamp:
Jul 16, 2007, 1:28:16 AM (17 years ago)
Author:
John Bailey
Comment:

bah, missed these screwups

Legend:

Unmodified
Added
Removed
Modified
  • CHowTo/BasicPluginHowto

    v2 v3  
    106106So, what does all this mean?  Well, let's go through this with a line by line analysis.  The `#define PURPLE_PLUGINS` is required, as we mentioned above.
    107107
    108 Next, we include glib.h, the header for !GLib.  We do this mainly for the `gboolean` typedef and the other !GLib wrappers for the standard C types.  After this, we include `notify.h`, `plugin.h`, and `version.h`.  The `plugin.h` header includes definitions that all plugins need, such as the type `PurplePluginInfo` and the macros `PURPLE_PLUGIN_MAGIC` and `PURPLE_INIT_PLUGIN()`.
     108Next, we include glib.h, the header for GLib.  We do this mainly for the `gboolean` typedef and the other GLib wrappers for the standard C types.  After this, we include `notify.h`, `plugin.h`, and `version.h`.  The `plugin.h` header includes definitions that all plugins need, such as the type `PurplePluginInfo` and the macros `PURPLE_PLUGIN_MAGIC` and `PURPLE_INIT_PLUGIN()`.
    109109
    110110The `version.h` header defines `PURPLE_MAJOR_VERSION` and `PURPLE_MINOR_VERSION`.  There's not much that you need to know about anything in `version.h`, except that they are required and will prevent your plugin from crashing Pidgin if it's probed by an older or newer Pidgin, such as 1.5.1 or 3.0.0 (which of course does not yet exist at the time of this writing), where things are different and your plugin doesn't know about the differences.
All information, including names and email addresses, entered onto this website or sent to mailing lists affiliated with this website will be public. Do not post confidential information, especially passwords!