Changeset 703f0f7 for protocols/nogaim.h


Ignore:
Timestamp:
2005-12-14T01:17:25Z (17 years ago)
Author:
Jelmer Vernooij <jelmer@…>
Branches:
master
Children:
547f937
Parents:
22bf64e (diff), 568aaf7 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge my pluginable branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/nogaim.h

    r22bf64e r703f0f7  
    7272        /* we need to do either oscar or TOC */
    7373        /* we make this as an int in case if we want to add more protocols later */
    74         int protocol;
    7574        struct prpl *prpl;
    7675        guint32 flags;
     
    152151        char user_info[2048];
    153152        int options;
    154         int protocol;
     153        struct prpl *prpl;
    155154        /* prpls can use this to save information about the user,
    156155         * like which server to connect to, etc */
     
    162161
    163162struct prpl {
    164         int protocol;
    165163        int options;
    166         char *(* name)();
     164        const char *name;
    167165
    168166        /* for ICQ and Yahoo, who have off/on per-conversation options */
     
    224222};
    225223
    226 #define PROTO_TOC       0
    227 #define PROTO_OSCAR     1
    228 #define PROTO_YAHOO     2
    229 #define PROTO_ICQ       3
    230 #define PROTO_MSN       4
    231 #define PROTO_IRC       5
    232 #define PROTO_FTP       6
    233 #define PROTO_VGATE     7
    234 #define PROTO_JABBER    8
    235 #define PROTO_NAPSTER   9
    236 #define PROTO_ZEPHYR    10
    237 #define PROTO_GADUGADU  11
    238 #define PROTO_MAX       16
    239 
    240 extern char proto_name[PROTO_MAX][8];
    241 
    242224#define UC_UNAVAILABLE  1
    243225
     
    249231
    250232G_MODULE_EXPORT GSList *get_connections();
    251 extern struct prpl *proto_prpl[16];
     233G_MODULE_EXPORT struct prpl *find_protocol(const char *name);
     234G_MODULE_EXPORT void register_protocol(struct prpl *);
    252235
    253236/* nogaim.c */
     
    319302G_MODULE_EXPORT void info_string_append(GString *str, char *newline, char *name, char *value);
    320303
    321 #ifdef WITH_MSN
    322 /* msn.c */
    323 G_MODULE_EXPORT void msn_init( struct prpl *ret );
    324 #endif
    325 
    326 #ifdef WITH_OSCAR
    327 /* oscar.c */
    328 G_MODULE_EXPORT void oscar_init( struct prpl *ret );
    329 #endif
    330 
    331 #ifdef WITH_JABBER
    332 /* jabber.c */
    333 G_MODULE_EXPORT void jabber_init( struct prpl *ret );
    334 #endif
    335 
    336 #ifdef WITH_YAHOO
    337 /* yahoo.c */
    338 G_MODULE_EXPORT void byahoo_init( struct prpl *ret );
    339 #endif
    340 
    341304/* prefs.c */
    342305G_MODULE_EXPORT void build_block_list();
Note: See TracChangeset for help on using the changeset viewer.