Changes in protocols/nogaim.h [9f03c47:4c29622]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/nogaim.h
r9f03c47 r4c29622 96 96 97 97 GSList *groupchats; 98 GSList *chatlist;99 98 }; 100 99 … … 139 138 char *description; 140 139 }; 141 142 /* This enum takes a few things from libpurple and a few things from old OPT_ flags.143 * The only flag that was used before this struct was PRPL_OPT_NOOTR.144 *145 * The libpurple ones only use the same values as the PurpleProtocolOptions146 * enum for convenience, but there's no promise of direct compatibility with147 * those values. As of libpurple 2.8.0 they use up to 0x800 (1 << 11), which is148 * a nice coincidence.149 */150 typedef enum {151 /* The protocol doesn't use passwords152 * Mirrors libpurple's OPT_PROTO_NO_PASSWORD */153 PRPL_OPT_NO_PASSWORD = 1 << 4,154 155 /* The protocol doesn't require passwords, but may use them156 * Mirrors libpurple's OPT_PROTO_PASSWORD_OPTIONAL */157 PRPL_OPT_PASSWORD_OPTIONAL = 1 << 7,158 159 /* The protocol is not suitable for OTR, see OPT_NOOTR */160 PRPL_OPT_NOOTR = 1 << 12,161 } prpl_options_t;162 140 163 141 struct prpl { … … 285 263 gboolean (* handle_is_self) (struct im_connection *, const char *who); 286 264 287 /* This sets/updates the im_connection->chatlist field with a288 * bee_chat_info_t GSList. This function should ensure the289 * bee_chat_list_finish() function gets called at some point290 * after the chat list is completely updated.291 */292 void (* chat_list) (struct im_connection *, const char *server);293 294 265 /* Some placeholders so eventually older plugins may cooperate with newer BitlBees. */ 295 266 void *resv1; … … 300 271 }; 301 272 302 struct plugin_info303 {304 guint abiver;305 const char *name;306 const char *version;307 const char *description;308 const char *author;309 const char *url;310 };311 312 #ifdef WITH_PLUGINS313 G_MODULE_EXPORT GList *get_plugins();314 #endif315 316 273 /* im_api core stuff. */ 317 274 void nogaim_init(); 318 G_MODULE_EXPORT GList *get_protocols();319 G_MODULE_EXPORT GList *get_protocols_disabled();320 275 G_MODULE_EXPORT GSList *get_connections(); 321 276 G_MODULE_EXPORT struct prpl *find_protocol(const char *name); … … 369 324 G_MODULE_EXPORT void imcb_rename_buddy(struct im_connection *ic, const char *handle, const char *realname); 370 325 G_MODULE_EXPORT void imcb_buddy_nick_hint(struct im_connection *ic, const char *handle, const char *nick); 371 G_MODULE_EXPORT void imcb_buddy_nick_change(struct im_connection *ic, const char *handle, const char *nick);372 326 G_MODULE_EXPORT void imcb_buddy_action_response(bee_user_t *bu, const char *action, char * const args[], void *data); 373 327
Note: See TracChangeset
for help on using the changeset viewer.