- Timestamp:
- Jun 25, 2011, 4:11:19 AM (13 years ago)
- Parents:
- 95b52d1 (diff), 2560529 (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
owl.h
r95b52d1 r2560529 199 199 #define OWL_ENABLE_ZCRYPT 1 200 200 #endif 201 202 /* Annotate functions in which the caller owns the return value and is 203 * responsible for ensuring it is freed. */ 204 #define CALLER_OWN G_GNUC_WARN_UNUSED_RESULT 201 205 202 206 #define OWL_META(key) ((key)|010000) … … 251 255 * WARNING: this approach is hard to make 252 256 * thread-safe... */ 253 char G_GNUC_WARN_UNUSED_RESULT*(*get_tostring_fn)(const struct _owl_variable *v, const void *val);257 CALLER_OWN char *(*get_tostring_fn)(const struct _owl_variable *v, const void *val); 254 258 /* converts val to a string; 255 259 * caller must free the result */ … … 266 270 GString *buff; 267 271 } owl_fmtext; 268 269 typedef struct _owl_list {270 int size;271 int avail;272 void **list;273 } owl_list;274 272 275 273 typedef struct _owl_dict_el { … … 313 311 314 312 /* These don't take any context */ 315 char G_GNUC_WARN_UNUSED_RESULT*(*cmd_args_fn)(int argc, const char *const *argv, const char *buff);313 CALLER_OWN char *(*cmd_args_fn)(int argc, const char *const *argv, const char *buff); 316 314 /* takes argv and the full command as buff. 317 315 * caller must free return value if !NULL */ … … 320 318 321 319 /* The following also take the active context if it's valid */ 322 char G_GNUC_WARN_UNUSED_RESULT*(*cmd_ctxargs_fn)(void *ctx, int argc, const char *const *argv, const char *buff);320 CALLER_OWN char *(*cmd_ctxargs_fn)(void *ctx, int argc, const char *const *argv, const char *buff); 323 321 /* takes argv and the full command as buff. 324 322 * caller must free return value if !NULL */ … … 338 336 char *zsig; 339 337 char *message; 340 owl_listrecips;338 GPtrArray *recips; 341 339 int cc; 342 340 int noping; … … 359 357 int delete; 360 358 const char *hostname; 361 owl_list attributes;/* this is a list of pairs */359 GPtrArray *attributes; /* this is a list of pairs */ 362 360 char *timestr; 363 361 time_t time; … … 418 416 419 417 typedef struct _owl_messagelist { 420 owl_listlist;418 GPtrArray *list; 421 419 } owl_messagelist; 422 420 … … 481 479 char *name; /* name of keymap */ 482 480 char *desc; /* description */ 483 owl_listbindings; /* key bindings */481 GPtrArray *bindings; /* key bindings */ 484 482 const struct _owl_keymap *parent; /* parent */ 485 483 void (*default_fn)(owl_input j); /* default action (takes a keypress) */ … … 504 502 505 503 typedef struct _owl_buddylist { 506 owl_listbuddies;504 GPtrArray *buddies; 507 505 } owl_buddylist; 508 506 509 507 typedef struct _owl_zbuddylist { 510 owl_listzusers;508 GPtrArray *zusers; 511 509 } owl_zbuddylist; 512 510 513 511 typedef struct _owl_errqueue { 514 owl_listerrlist;512 GPtrArray *errlist; 515 513 } owl_errqueue; 516 514 … … 538 536 owl_dict filters; 539 537 GList *filterlist; 540 owl_listpuntlist;538 GPtrArray *puntlist; 541 539 owl_vardict vars; 542 540 owl_cmddict cmds;
Note: See TracChangeset
for help on using the changeset viewer.