diff options
Diffstat (limited to 'lib/wimax.c')
-rw-r--r-- | lib/wimax.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/wimax.c b/lib/wimax.c index 7be7ba0..c0a52e4 100644 --- a/lib/wimax.c +++ b/lib/wimax.c @@ -321,3 +321,34 @@ const char *wimaxll_ifname(const struct wimaxll_handle *wmx) { return wmx->name; } + + +/** + * Set the private data associated to a WiMAX device handle + * + * @param wmx WiMAX device handle + * + * @param priv Private data pointer to associate. + * + * @ingroup device_management + */ +void wimaxll_priv_set(struct wimaxll_handle *wmx, void *priv) +{ + wmx->priv = priv; +} + + +/** + * Return the private data associated to a WiMAX device handle + * + * @param wmx WiMAX device handle + * + * @returns pointer to priv data as set by wimaxll_priv_set() or + * wimaxll_open_name() or wimaxll_open_ifindex(). + * + * @ingroup device_management + */ +void * wimaxll_priv_get(struct wimaxll_handle *wmx) +{ + return wmx->priv; +} |