X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=docs%2Fhashkit_create.rst;h=bf96da751716277eeed2b283336bf181393468cd;hb=274778ed13cb7c38995dc1491d437b27db6339fb;hp=f7aabac5313b42bc9747f195ef7caed90aa7db0d;hpb=da3714e6dc31ab2f9d115707ab79a838420c7b5a;p=m6w6%2Flibmemcached diff --git a/docs/hashkit_create.rst b/docs/hashkit_create.rst index f7aabac5..bf96da75 100644 --- a/docs/hashkit_create.rst +++ b/docs/hashkit_create.rst @@ -10,6 +10,8 @@ SYNOPSIS #include +.. c:type:: hashkit_st + .. c:function:: hashkit_st *hashkit_create(hashkit_st *hash); .. c:function:: hashkit_st *hashkit_clone(hashkit_st *destination, const hashkit_st *ptr); @@ -20,25 +22,24 @@ SYNOPSIS Compile and link with -lhashkit - ----------- DESCRIPTION ----------- -The hashkit_create() function initializes a hashkit object for use. If +The :c:func:`hashkit_create()` function initializes a hashkit object for use. If you pass a NULL argument for hash, then the memory for the object is allocated. If you specify a pre-allocated piece of memory, that is initialized for use. -The hashkit_clone() function initializes a hashkit object much like -hashkit_create(), but instead of using default settings it will use +The :c:func:`hashkit_clone()` function initializes a hashkit object much like +:c:func:`hashkit_create()`, but instead of using default settings it will use the settings of the ptr hashkit object. -The hashkit_free() frees any resources being consumed by the hashkit -objects that were initialized with hashkit_create() or hashkit_clone(). +The :c:func:`hashkit_free()` frees any resources being consumed by the hashkit +objects that were initialized with :c:func:`hashkit_create()` or :c:func:`hashkit_clone()`. -The hashkit_is_allocated() reports where the memory was allocated +The :c:func:`hashkit_is_allocated()` reports where the memory was allocated for a hashkit object. @@ -47,12 +48,12 @@ RETURN VALUE ------------ -hashkit_create() and hashkit_clone() will return NULL on failure or -non-NULL on success. +:c:func:`hashkit_create()` and :c:func:`hashkit_clone()` will return NULL on +failure or non-NULL on success. -hashkit_is_allocated() returns true if the memory for the hashkit -object was allocated inside of hashkit_create() or hashkit_clone(), -otherwise it is false and was user-supplied memory. +:c:func:`hashkit_is_allocated()` returns true if the memory for the hashkit +object was allocated inside of :c:func:`hashkit_create()` or +:c:func:`hashkit_clone()`, otherwise it is false and was user-supplied memory. ---- @@ -62,3 +63,13 @@ HOME To find out more information please check: `http://libmemcached.org/ `_ + + + +-------- +SEE ALSO +-------- + + +:manpage:`hashkit_create(3)` :manpage:`hashkit_value(3)` :manpage:`hashkit_set_hash_fn(3)` +