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:
Kevin O'Connor 2017-03-09 13:49:03 -05:00
parent d5fc594317
commit 60a4bda9d4
7 changed files with 36 additions and 36 deletions

View file

@ -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