X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=docs%2Fmemcached_user_data.rst;h=a0bc602bb0629d4e084f09a28ee2e24969e049db;hb=cfe08f8ecd0fd090430c417ac99999644041ba17;hp=45482f70da4ae97315fb27b293659cca61b16fae;hpb=7c12c89412585d136f8572f0ff3aee26427769de;p=m6w6%2Flibmemcached diff --git a/docs/memcached_user_data.rst b/docs/memcached_user_data.rst index 45482f70..a0bc602b 100644 --- a/docs/memcached_user_data.rst +++ b/docs/memcached_user_data.rst @@ -21,13 +21,15 @@ SYNOPSIS -.. code-block:: perl +.. code-block:: c - #include - - void *memcached_get_user_data (memcached_st *ptr); - - void *memcached_set_user_data (memcached_st *ptr, void *data); +#include + +.. c:function:: void *memcached_get_user_data (memcached_st *ptr) + +.. c:function:: void *memcached_set_user_data (memcached_st *ptr, void *data) + +Compile and link with -lmemcached @@ -39,10 +41,10 @@ DESCRIPTION libmemcached(3) allows you to store a pointer to a user specific data inside the memcached_st structure. -:c:func:`memcached_set_user_data()` is used to set the user specific data in the +:c:func:`memcached_set_user_data` is used to set the user specific data in the :c:type:`memcached_st` structure. -:c:func:`memcached_get_user_data()` is used to retrieve the user specific data in the :c:type:`memcached_st` structure. +:c:func:`memcached_get_user_data` is used to retrieve the user specific data in the :c:type:`memcached_st` structure. ------ @@ -50,9 +52,9 @@ RETURN ------ -:c:func:`memcached_set_user_data()` returns the previous value of the user specific data. +:c:func:`memcached_set_user_data` returns the previous value of the user specific data. -:c:func:`memcached_get_user_data()` returns the current value uf the user specific data. +:c:func:`memcached_get_user_data` returns the current value uf the user specific data. ----