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

struct nl_sock* nl_socket_alloc_cb ( struct nl_cb *  cb  )  [read]

Allocate new socket with custom callbacks

  • cb Callback handler
The reference to the callback handler is taken into account automatically, it is released again upon calling nl_socket_free().

Newly allocted socket handle or NULL.

Definition at line 137 of file socket.c.

      if (cb == NULL)

      return __alloc_socket(nl_cb_get(cb));

Generated by  Doxygen 1.6.0   Back to index