.TH "idm_ops" 3 "corm" \" -*- nroff -*- .ad l .nh .SH NAME idm_ops \- IDM operations .PP \- Allocation and management routines\&. .SH SYNOPSIS .br .PP .SS "Functions" .in +1c .ti -1c .RI "void \fBids_push\fP (ids_t *list, uint32_t id)" .br .RI "Push an ID into the free list\&. " .ti -1c .RI "uint32_t \fBids_pop\fP (ids_t *list)" .br .RI "Pop an ID from the free list\&. " .ti -1c .RI "void \fBids_drop\fP (ids_t *list)" .br .RI "Free all IDs in the list\&. " .ti -1c .RI "void \fBids_remove\fP (ids_t *list, uint32_t id)" .br .RI "Remove a specific ID from the list\&. " .ti -1c .RI "void \fBids_free\fP (ids_t *list, uint32_t id)" .br .RI "Free a specific ID node\&. " .ti -1c .RI "void \fBidm_drop\fP (\fBidm_t\fP *idm)" .br .RI "Drop all IDs managed by an ID manager\&. " .ti -1c .RI "uint32_t \fBidm_push\fP (\fBidm_t\fP *idm, uint32_t n)" .br .RI "Push IDs up to a given value\&. " .ti -1c .RI "int \fBidm_del\fP (\fBidm_t\fP *idm, uint32_t id)" .br .RI "Delete a specific ID from manager\&. " .ti -1c .RI "uint32_t \fBidm_new\fP (\fBidm_t\fP *idm)" .br .RI "Allocate a new unique ID\&. " .in -1c .SH "Detailed Description" .PP Allocation and management routines\&. .SH "Function Documentation" .PP .SS "int idm_del (\fBidm_t\fP * idm, uint32_t id)" .PP Delete a specific ID from manager\&. Returns 1 if the deletion updated \fRlast\fP, else 0\&. .PP \fBParameters\fP .RS 4 \fIidm\fP ID manager\&. .br \fIid\fP ID to remove\&. .RE .PP \fBReturns\fP .RS 4 1 if success, 0 otherwise\&. .RE .PP .SS "void idm_drop (\fBidm_t\fP * idm)" .PP Drop all IDs managed by an ID manager\&. .PP \fBParameters\fP .RS 4 \fIidm\fP ID manager to clear\&. .RE .PP .SS "uint32_t idm_new (\fBidm_t\fP * idm)" .PP Allocate a new unique ID\&. Returns a previously freed ID if available, otherwise increments \fRlast\fP\&. .PP \fBParameters\fP .RS 4 \fIidm\fP ID manager\&. .RE .PP \fBReturns\fP .RS 4 New ID value\&. .RE .PP .SS "uint32_t idm_push (\fBidm_t\fP * idm, uint32_t n)" .PP Push IDs up to a given value\&. .PP \fBParameters\fP .RS 4 \fIidm\fP ID manager\&. .br \fIn\fP Highest value to reach\&. .RE .PP \fBReturns\fP .RS 4 The ID pushed, or \fR\fBIDM_MISS\fP\fP if out of range\&. .RE .PP .SS "void ids_drop (ids_t * list)" .PP Free all IDs in the list\&. .PP \fBParameters\fP .RS 4 \fIlist\fP List to clear\&. .RE .PP .SS "void ids_free (ids_t * list, uint32_t id)" .PP Free a specific ID node\&. Alias for \fR\fBids_remove()\fP\fP\&. .PP \fBParameters\fP .RS 4 \fIlist\fP List to modify\&. .br \fIid\fP ID to remove\&. .RE .PP .SS "uint32_t ids_pop (ids_t * list)" .PP Pop an ID from the free list\&. .PP \fBParameters\fP .RS 4 \fIlist\fP List to remove from\&. .RE .PP \fBReturns\fP .RS 4 Removed ID, or \fR\fBIDM_MISS\fP\fP if empty\&. .RE .PP .SS "void ids_push (ids_t * list, uint32_t id)" .PP Push an ID into the free list\&. .PP \fBParameters\fP .RS 4 \fIlist\fP List to append to\&. .br \fIid\fP ID value to add\&. .RE .PP .SS "void ids_remove (ids_t * list, uint32_t id)" .PP Remove a specific ID from the list\&. .PP \fBParameters\fP .RS 4 \fIlist\fP List to modify\&. .br \fIid\fP ID to remove\&. .RE .PP .SH "Author" .PP Generated automatically by Doxygen for corm from the source code\&.