rsstats 0.0.1
Redis Enterprise Statistic collector
sclist.h
Go to the documentation of this file.
1
19#ifndef __SCLIST_H__
20#define __SCLIST_H__
21
24typedef struct sclist_s sclist_t;
25
29
38
46void sclist_del(sclist_t* sclist);
47
48
60
73
84
85
97
105void* sclist_getvalue(sclistrecord_t* record);
106
107#endif /* __SCLIST_H__ */
108/* vim: set tw=80: */
void * sclist_getvalue(sclistrecord_t *record)
Returns the value pointer stored in the record.
Definition: sclist.c:132
sclist_t * sclist_new()
Allocate and initialize the internal list structure.
Definition: sclist.c:43
sclistrecord_t * sclist_nextrecord(const sclistrecord_t *record)
Returns the pointer on the record following the specified one.
Definition: sclist.c:126
void sclist_del(sclist_t *sclist)
Free all the list structure but not the values.
Definition: sclist.c:55
sclist_t * sclist_remrecord(sclist_t *sclist, sclistrecord_t *record)
Remove a record in a list.
Definition: sclist.c:94
sclistrecord_t * sclist_addrecord(sclist_t *sclist, void *value)
Add a value at the end of the list.
Definition: sclist.c:66
sclistrecord_t * sclist_firstrecord(const sclist_t *sclist)
Returns the pointer on the first list record.
Definition: sclist.c:120
Opaque sclist structure.
Definition: sclist.c:38
Private list record structure.
Definition: sclist.c:31
void * value
Pointer to value.
Definition: sclist.c:32