summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6a77466)
raw | patch | inline | side by side (parent: 6a77466)
author | Sebastian Harl <sh@tokkee.org> | |
Mon, 22 Jul 2013 15:20:55 +0000 (08:20 -0700) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Mon, 22 Jul 2013 15:20:55 +0000 (08:20 -0700) |
We might use 'parent' in different places in the future.
src/include/core/store.h | patch | blob | history |
index b17fb21f78af78fa71a9b5173338567a9ad5626c..fb79b39fe089cf58f00eb7b99b702cbaa06e077e 100644 (file)
--- a/src/include/core/store.h
+++ b/src/include/core/store.h
extern const sdb_type_t sdb_service_type;
typedef struct {
- sdb_object_t parent;
+ sdb_object_t super;
sdb_time_t last_update;
} sdb_store_obj_t;
#define SDB_STORE_OBJ_INIT(t) { SDB_OBJECT_TYPED_INIT(t), 0 }
#define SDB_CONST_STORE_OBJ(obj) ((const sdb_store_obj_t *)(obj))
typedef struct {
- sdb_store_obj_t parent;
+ sdb_store_obj_t super;
char *hostname;
} sdb_service_t;
#define SDB_CONST_SVC(obj) ((const sdb_service_t *)(obj))
typedef struct {
- sdb_store_obj_t parent;
+ sdb_store_obj_t super;
char *attr_value;
char *hostname;
#define SDB_CONST_ATTR(obj) ((const sdb_attribute_t *)(obj))
typedef struct {
- sdb_store_obj_t parent;
+ sdb_store_obj_t super;
sdb_llist_t *attributes;
sdb_llist_t *services;
/* shortcuts for accessing the sdb_store_obj_t attributes of inheriting
* objects */
-#define _last_update parent.last_update
+#define _last_update super.last_update
sdb_host_t *
sdb_host_create(const char *name);