basecmd: Use oid_ prefix for the oid manipulation functions
Consistently use an "oid_" prefix on the oid functions - this makes them similar to other functions with a common prefix. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -6,11 +6,11 @@
|
||||
void move_free(void *m);
|
||||
void *move_alloc(void);
|
||||
void move_request_size(int size);
|
||||
void *lookup_oid(uint8_t oid, void *type);
|
||||
void *alloc_oid(uint8_t oid, void *type, uint16_t size);
|
||||
void *next_oid(uint8_t *i, void *type);
|
||||
void *oid_lookup(uint8_t oid, void *type);
|
||||
void *oid_alloc(uint8_t oid, void *type, uint16_t size);
|
||||
void *oid_next(uint8_t *i, void *type);
|
||||
|
||||
#define foreach_oid(pos,data,oidtype) \
|
||||
for (pos=-1; (data=next_oid(&pos, oidtype)); )
|
||||
for (pos=-1; (data=oid_next(&pos, oidtype)); )
|
||||
|
||||
#endif // basecmd.h
|
||||
|
||||
Reference in New Issue
Block a user