123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- #ifndef _LSUP_ENVIRONMENT_H
- #define _LSUP_ENVIRONMENT_H
- #include "store_mdb.h"
- typedef struct env_t {
- LSUP_Buffer * default_ctx;
- LSUP_NSMap * nsm;
- } LSUP_Env;
- extern LSUP_Env *LSUP_default_env;
- LSUP_Env *
- LSUP_env_new (
- const char *default_ctx, const char *mdb_path,
- const LSUP_NSMap *nsmap);
- LSUP_rc
- LSUP_init (void);
- void
- LSUP_env_free (LSUP_Env *env);
- void LSUP_done (void);
- LSUP_rc
- LSUP_env_push_id (LSUP_Env *env, const uint32_t key, const char *data);
- const char *
- LSUP_env_get_id (LSUP_Env *env, const uint32_t key);
- #endif
|