/src/haproxy/include/haproxy/guid.h
Line | Count | Source |
1 | | #ifndef _HAPROXY_GUID_H |
2 | | #define _HAPROXY_GUID_H |
3 | | |
4 | | #include <haproxy/api-t.h> |
5 | | #include <haproxy/guid-t.h> |
6 | | #include <haproxy/thread-t.h> |
7 | | |
8 | | __decl_thread(extern HA_RWLOCK_T guid_lock); |
9 | | |
10 | | void guid_init(struct guid_node *node); |
11 | | int guid_insert(enum obj_type *obj_type, const char *uid, char **errmsg); |
12 | | void guid_remove(struct guid_node *guid); |
13 | | struct guid_node *guid_lookup(const char *uid); |
14 | | |
15 | | /* Returns the actual text key associated to <guid> node or NULL if not |
16 | | * set |
17 | | */ |
18 | | static inline const char *guid_get(const struct guid_node *guid) |
19 | 0 | { |
20 | 0 | return guid->key; |
21 | 0 | } Unexecuted instantiation: listener.c:guid_get Unexecuted instantiation: proxy.c:guid_get Unexecuted instantiation: server.c:guid_get Unexecuted instantiation: counters.c:guid_get Unexecuted instantiation: guid.c:guid_get Unexecuted instantiation: stats-file.c:guid_get |
22 | | |
23 | | int guid_is_valid_fmt(const char *uid, char **errmsg); |
24 | | char *guid_name(const struct guid_node *guid); |
25 | | int guid_count(void); |
26 | | |
27 | | #endif /* _HAPROXY_GUID_H */ |