package/libs/libnl-tiny/src/include/netlink/handlers.h
/**
 * Set up a all callbacks
 * @arg cb		callback set
 * @arg kind		kind of callback
 * @arg func		callback function
 * @arg arg		argument to be passwd to callback function
 *
 * @return 0 on success or a negative error code
 */
Set up a all callbacks
@arg cb              callback set
@arg kind            kind of callback
@arg func            callback function
@arg arg             argument to be passwd to callback function

@return 0 on success or a negative error code
Set up a all callbacks @arg cb callback set @arg kind kind of callback @arg func callback function @arg arg argument to be passwd to callback function @return 0 on success or a negative error code
static inline int nl_cb_set_all(struct nl_cb *cb, enum nl_cb_kind kind,
		  nl_recvmsg_msg_cb_t func, void *arg)
{
	int i, err;
	for (i = 0; i <= NL_CB_TYPE_MAX; i++) {
		err = nl_cb_set(cb,(enum nl_cb_type)i, kind, func, arg);
		if (err < 0)
			return err;
	}
	return 0;
}
static inline int nl_cb_set_all ( struct nl_cb * cb , enum nl_cb_kind kind , nl_recvmsg_msg_cb_t func , void * arg ) { int i , err ; for ( i = 0 ; i <= NL_CB_TYPE_MAX ; i ++ ) { err = nl_cb_set ( cb , ( enum nl_cb_type ) i , kind , func , arg ) ; if ( err < 0 ) return err ; } return 0 ; }
Set up a all callbacks
 @arg cb              callback set
 @arg kind            kind of callback
 @arg func            callback function
 @arg arg             argument to be passwd to callback function
Set up a all callbacks @arg cb callback set @arg kind kind of callback @arg func callback function @arg arg argument to be passwd to callback function