mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-12 01:08:00 -06:00
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:
parent
d5fc594317
commit
60a4bda9d4
7 changed files with 36 additions and 36 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue