int proto_init(void) { proto_new(PROTO_NULL, "NULL", proto_init_null); proto_new(PROTO_AIM, "AIM", aim_proto_init); #ifdef IRC_SUPPORT proto_new(PROTO_IRC, "IRC", irc_proto_init); #endif return (0); }
static struct proto * dev_init(struct proto_config *c) { struct proto *p = proto_new(c, sizeof(struct proto)); p->ifa_notify = dev_ifa_notify; return p; }