blob: b795e4db7ee54aca1d22d26bb58884e93b09f2f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#ifndef __BASECMD_H
#define __BASECMD_H
#include <stdint.h> // uint8_t
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);
#define foreach_oid(pos,data,oidtype) \
for (pos=-1; (data=next_oid(&pos, oidtype)); )
#endif // basecmd.h
|