CoreFW  Diff

Differences From Artifact [e09d13811e]:

To Artifact [1c28d70477]:


26
27
28
29
30
31
32








33
34
35
36


37
38

#ifndef __COREFW_MAP_H__
#define __COREFW_MAP_H__

#include "class.h"

typedef struct CFWMap CFWMap;








extern CFWClass *cfw_map;
extern size_t cfw_map_size(CFWMap*);
extern void* cfw_map_get(CFWMap*, void*);
extern bool cfw_map_set(CFWMap*, void*, void*);



#endif







>
>
>
>
>
>
>
>




>
>


26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48

#ifndef __COREFW_MAP_H__
#define __COREFW_MAP_H__

#include "class.h"

typedef struct CFWMap CFWMap;

typedef struct cfw_map_iter_t {
	void *key, *obj;
	/* private */
	CFWMap *_map;
	uint32_t _pos;
} cfw_map_iter_t;

extern CFWClass *cfw_map;
extern size_t cfw_map_size(CFWMap*);
extern void* cfw_map_get(CFWMap*, void*);
extern bool cfw_map_set(CFWMap*, void*, void*);
extern void cfw_map_iter(CFWMap*, cfw_map_iter_t*);
extern void cfw_map_iter_next(cfw_map_iter_t*);

#endif