mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
handles.h: replace structname with structname_t
This change makes our macro bodies consistent with our naming expectations for structs and types outside macro bodies.
This commit is contained in:
@@ -57,12 +57,13 @@
|
||||
#define HANDLE_ENTRY(name, structname) \
|
||||
struct name ## _handle_head_t *handle_head
|
||||
|
||||
#define HANDLE_DECL(name, structname, linkage) \
|
||||
#define HANDLE_DECL(name, structname_t, linkage) \
|
||||
typedef struct name ## _handle_t name ## _handle_t; \
|
||||
linkage name ## _handle_t *name ## _handle_new(struct structname *object); \
|
||||
linkage name ## _handle_t *name ## _handle_new( \
|
||||
struct structname_t *object); \
|
||||
linkage void name ## _handle_free_(name ## _handle_t *); \
|
||||
linkage struct structname *name ## _handle_get(name ## _handle_t *); \
|
||||
linkage void name ## _handles_clear(struct structname *object);
|
||||
linkage struct structname_t *name ## _handle_get(name ## _handle_t *); \
|
||||
linkage void name ## _handles_clear(struct structname_t *object);
|
||||
|
||||
/*
|
||||
* Implementation notes: there are lots of possible implementations here. We
|
||||
|
||||
Reference in New Issue
Block a user