base: Export type ID enum

Otherwise we really can't use the heimbase CF types outside lib/base!
This commit is contained in:
Nicolas Williams
2022-10-01 17:52:17 -05:00
parent 8364bdd8f3
commit ed4b50720d
2 changed files with 22 additions and 23 deletions

View File

@@ -134,6 +134,28 @@ typedef struct heim_config_binding heim_config_section;
* CF-like, JSON APIs
*/
typedef enum heim_tid_enum {
HEIM_TID_NUMBER = 0,
HEIM_TID_NULL = 1,
HEIM_TID_BOOL = 2,
HEIM_TID_TAGGED_UNUSED2 = 3, /* reserved for tagged object types */
HEIM_TID_TAGGED_UNUSED3 = 4, /* reserved for tagged object types */
HEIM_TID_TAGGED_UNUSED4 = 5, /* reserved for tagged object types */
HEIM_TID_TAGGED_UNUSED5 = 6, /* reserved for tagged object types */
HEIM_TID_TAGGED_UNUSED6 = 7, /* reserved for tagged object types */
HEIM_TID_MEMORY = 128,
HEIM_TID_ARRAY = 129,
HEIM_TID_DICT = 130,
HEIM_TID_STRING = 131,
HEIM_TID_AUTORELEASE = 132,
HEIM_TID_ERROR = 133,
HEIM_TID_DATA = 134,
HEIM_TID_DB = 135,
HEIM_TID_PA_AUTH_MECH = 136,
HEIM_TID_PAC = 137,
HEIM_TID_USER = 255
} heim_tid;
typedef void * heim_object_t;
typedef unsigned int heim_tid_t;
typedef heim_object_t heim_bool_t;

View File

@@ -47,29 +47,6 @@ typedef heim_string_t (*heim_type_description)(void *);
typedef struct heim_type_data *heim_type_t;
enum {
HEIM_TID_NUMBER = 0,
HEIM_TID_NULL = 1,
HEIM_TID_BOOL = 2,
HEIM_TID_TAGGED_UNUSED2 = 3, /* reserved for tagged object types */
HEIM_TID_TAGGED_UNUSED3 = 4, /* reserved for tagged object types */
HEIM_TID_TAGGED_UNUSED4 = 5, /* reserved for tagged object types */
HEIM_TID_TAGGED_UNUSED5 = 6, /* reserved for tagged object types */
HEIM_TID_TAGGED_UNUSED6 = 7, /* reserved for tagged object types */
HEIM_TID_MEMORY = 128,
HEIM_TID_ARRAY = 129,
HEIM_TID_DICT = 130,
HEIM_TID_STRING = 131,
HEIM_TID_AUTORELEASE = 132,
HEIM_TID_ERROR = 133,
HEIM_TID_DATA = 134,
HEIM_TID_DB = 135,
HEIM_TID_PA_AUTH_MECH = 136,
HEIM_TID_PAC = 137,
HEIM_TID_USER = 255
};
struct heim_type_data {
heim_tid_t tid;
const char *name;