Changeset 7882a6f in code for icb.h


Ignore:
Timestamp:
Mar 10, 2014, 12:13:22 PM (11 years ago)
Author:
Mike Belopuhov <mike@…>
Branches:
master
Children:
fe81e9a
Parents:
e80f9fc
Message:

Get rid of the icbd callbacks interface

I believe the idea was initially to have both icb and irc in one
daemon but that's not going to happen.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icb.h

    re80f9fc r7882a6f  
    111111LIST_HEAD(icb_grlist, icb_group) groups;
    112112
    113 struct icbd_callbacks {
    114         void    (*drop)(struct icb_session *, char *);
    115         void    (*log)(struct icb_session *, int, const char *, ...);
    116         void    (*send)(struct icb_session *, char *, ssize_t);
    117 };
    118 
    119113#ifndef nitems
    120114#define nitems(_a)      (sizeof((_a)) / sizeof((_a)[0]))
     
    122116
    123117/* cmd.c */
    124 void *icb_cmd_lookup(char *);
     118void *          icb_cmd_lookup(char *);
    125119
    126120/* icb.c */
     
    130124void            icb_delgroup(struct icb_group *);
    131125void            icb_error(struct icb_session *, const char *, ...);
    132 void            icb_init(struct icbd_callbacks *);
     126void            icb_init(void);
    133127void            icb_input(struct icb_session *);
    134128inline int      icb_ismod(struct icb_group *, struct icb_session *);
     
    145139void            icb_who(struct icb_session *, struct icb_group *);
    146140int             icb_vis(char *, const char *, size_t, int);
    147 
    148 /* callbacks from icbd.c */
    149 void            (*icb_drop)(struct icb_session *, char *);
    150 void            (*icb_log)(struct icb_session *, int, const char *, ...);
    151 void            (*icb_send)(struct icb_session *, char *, ssize_t);
Note: See TracChangeset for help on using the changeset viewer.