mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-09 16:47:18 +02:00
GUID format is unspecified to allow users to choose the naming scheme. Some restrictions however are added by this patch, mainly to ensure coherence and memory usage. The first restriction is on the length of GUID. No more than 127 characters can be used to prevent memory over consumption. The second restriction is on the character set allowed in GUID. Utility function invalid_char() is used for this : it allows alphanumeric values and '-', '_', '.' and ':'.
16 lines
365 B
C
16 lines
365 B
C
#ifndef _HAPROXY_GUID_T_H
|
|
#define _HAPROXY_GUID_T_H
|
|
|
|
#include <import/ebtree-t.h>
|
|
#include <haproxy/obj_type-t.h>
|
|
|
|
/* Maximum GUID size excluding final '\0' */
|
|
#define GUID_MAX_LEN 127
|
|
|
|
struct guid_node {
|
|
struct ebpt_node node; /* attach point into GUID global tree */
|
|
enum obj_type *obj_type; /* pointer to GUID obj owner */
|
|
};
|
|
|
|
#endif /* _HAPROXY_GUID_T_H */
|