- Timestamp:
- 2016-11-21T06:58:47Z (8 years ago)
- Branches:
- master
- Children:
- 3f44e43, f8c9347
- Parents:
- 11d4123
- git-author:
- dequis <dx@…> (21-11-16 06:40:54)
- git-committer:
- dequis <dx@…> (21-11-16 06:58:47)
- Location:
- protocols
- Files:
-
- 1 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/Makefile
r11d4123 r5a8afc3 13 13 14 14 # [SH] Program variables 15 objects = account.o bee.o bee_chat.o bee_ft.o bee_user.o nogaim.o unknown.o15 objects = account.o bee.o bee_chat.o bee_ft.o bee_user.o nogaim.o 16 16 17 17 -
protocols/account.c
r11d4123 r5a8afc3 75 75 s->flags |= SET_NOSAVE | ACC_SET_OFFLINE_ONLY | ACC_SET_LOCKABLE; 76 76 set_setstr(&a->set, "username", user); 77 78 if (prpl == &protocol_missing) { 79 s = set_add(&a->set, "server", NULL, set_eval_account, a); 80 s->flags |= SET_NOSAVE | SET_HIDDEN | ACC_SET_OFFLINE_ONLY | ACC_SET_ONLINE_ONLY; 81 } 77 82 78 83 /* Hardcode some more clever tag guesses. */ -
protocols/nogaim.c
r11d4123 r5a8afc3 160 160 GList *protocols = NULL; 161 161 GList *disabled_protocols = NULL; 162 static struct prpl *unknown_prpl;163 162 164 163 void register_protocol(struct prpl *p) … … 190 189 GList *gl = g_list_find_custom(protocols, name, proto_name_cmp); 191 190 return gl ? gl->data: NULL; 192 }193 194 struct prpl *make_unknown_protocol(const char *name)195 {196 struct prpl *ret = g_memdup(unknown_prpl, sizeof(struct prpl));197 ret->name = g_strdup(name);198 register_protocol(ret);199 return ret;200 191 } 201 192 … … 250 241 extern void twitter_initmodule(); 251 242 extern void purple_initmodule(); 252 extern void unknown_prpl_initmodule();253 254 unknown_prpl_initmodule(&unknown_prpl);255 243 256 244 #ifdef WITH_MSN -
protocols/nogaim.h
r11d4123 r5a8afc3 159 159 /* The protocol is not suitable for OTR, see OPT_NOOTR */ 160 160 PRPL_OPT_NOOTR = 1 << 12, 161 162 /* This prpl is a placeholder for a missing protocol */163 PRPL_OPT_UNKNOWN_PROTOCOL = 1 << 13,164 161 } prpl_options_t; 165 162 … … 324 321 G_MODULE_EXPORT struct prpl *find_protocol(const char *name); 325 322 G_MODULE_EXPORT gboolean is_protocol_disabled(const char *name); 326 G_MODULE_EXPORT struct prpl *make_unknown_protocol(const char *name);327 323 G_MODULE_EXPORT char *explain_unknown_protocol(const char *name); 328 324 /* When registering a new protocol, you should allocate space for a new prpl
Note: See TracChangeset
for help on using the changeset viewer.