Changeset 7aadd71 for protocols/bee.h


Ignore:
Timestamp:
2010-05-09T18:05:55Z (15 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
3130e70
Parents:
9ac3ed1
Message:

Keep track of contact groups in a slightly more efficient way.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/bee.h

    r9ac3ed1 r7aadd71  
    3535       
    3636        GSList *users;
     37        GSList *groups;
    3738        struct account *accounts; /* TODO(wilmer): Use GSList here too? */
    3839       
     
    6061        char *handle;
    6162        char *fullname;
    62         char *group;
     63        struct bee_group *group;
    6364
    6465        bee_user_flags_t flags;
     
    6970        void *ui_data;
    7071} bee_user_t;
     72
     73typedef struct bee_group
     74{
     75        char *key;
     76        char *name;
     77} bee_group_t;
    7178
    7279typedef struct bee_ui_funcs
     
    104111bee_user_t *bee_user_by_handle( bee_t *bee, struct im_connection *ic, const char *handle );
    105112int bee_user_msg( bee_t *bee, bee_user_t *bu, const char *msg, int flags );
     113bee_group_t *bee_group_by_name( bee_t *bee, const char *name, gboolean creat );
     114void bee_group_free( bee_t *bee );
    106115
    107116/* Callbacks from IM modules to core: */
Note: See TracChangeset for help on using the changeset viewer.