Logo Search packages:      
Sourcecode: libnl2 version File versions  Download package

int nl_cb_set_all ( struct nl_cb *  cb,
enum nl_cb_kind  kind,
nl_recvmsg_msg_cb_t  func,
void *  arg 
)

Set up a all callbacks

  • cb callback set
  • kind kind of callback
  • func callback function
  • arg argument to be passwd to callback function
Returns:
0 on success or a negative error code

Definition at line 314 of file handlers.c.

References nl_cb_set().

{
      int i, err;

      for (i = 0; i <= NL_CB_TYPE_MAX; i++) {
            err = nl_cb_set(cb, i, kind, func, arg);
            if (err < 0)
                  return err;
      }

      return 0;
}


Generated by  Doxygen 1.6.0   Back to index