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

struct nl_cb* nl_cb_clone ( struct nl_cb orig ) [read]

Clone an existing callback handle

  • orig original callback handle
    Newly allocated callback handle being a duplicate of orig or NULL

Definition at line 233 of file handlers.c.

References nl_cb_alloc(), and NL_CB_DEFAULT.

Referenced by __cache_pickup(), and nl_wait_for_ack().

      struct nl_cb *cb;
      cb = nl_cb_alloc(NL_CB_DEFAULT);
      if (!cb)
            return NULL;

      memcpy(cb, orig, sizeof(*orig));
      cb->cb_refcnt = 1;

      return cb;

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index