diff options
-rw-r--r-- | src/map.c | 68 | ||||
-rw-r--r-- | src/map.h | 20 |
2 files changed, 88 insertions, 0 deletions
diff --git a/src/map.c b/src/map.c new file mode 100644 index 0000000..f243ae2 --- /dev/null +++ b/src/map.c @@ -0,0 +1,68 @@ +#ifdef HAVE_CONFIG_H +#include "../config.h" +#endif + +#include <sys/types.h> +#include <assert.h> +#include <stdlib.h> +#include <string.h> +#include <unistd.h> + +#include <rpc/rpc.h> +#include <rpcsvc/yp_prot.h> + +#include <nspr.h> +#include <secport.h> +#include <plarenas.h> +#include <dirsrv/slapi-plugin.h> + +#include "dispatch.h" +#include "map.h" +#include "nis.h" +#include "plugin.h" +#include "portmap.h" + +bool_t +map_supports_domain(struct plugin_state *state, + const char *domain, + bool_t *supported) +{ + return FALSE; +} + + +bool_t +map_order(struct plugin_state *state, + const char *domain, const char *map, + unsigned int *order) +{ + return FALSE; +} + +bool_t +map_match(struct plugin_state *state, + const char *domain, const char *map, + unsigned int key_len, char *key, + unsigned int *value_len, char **value) +{ + return FALSE; +} + +bool_t +map_first(struct plugin_state *state, + const char *domain, const char *map, + unsigned int *first_key_len, char **first_key, + unsigned int *first_value_len, char **first_value) +{ + return FALSE; +} + +bool_t +map_next(struct plugin_state *state, + const char *domain, const char *map, + unsigned int prev_len, const char *prev, + unsigned int *next_key_len, char **next_key, + unsigned int *next_value_len, char **next_value) +{ + return FALSE; +} diff --git a/src/map.h b/src/map.h new file mode 100644 index 0000000..578e886 --- /dev/null +++ b/src/map.h @@ -0,0 +1,20 @@ +struct plugin_state; +bool_t map_supports_domain(struct plugin_state *state, + const char *domain, + bool_t *supported); +bool_t map_match(struct plugin_state *state, + const char *domain, const char *map, + unsigned int key_len, char *key, + unsigned int *value_len, char **value); +bool_t map_first(struct plugin_state *state, + const char *domain, const char *map, + unsigned int *first_key_len, char **first_key, + unsigned int *first_value_len, char **first_value); +bool_t map_next(struct plugin_state *state, + const char *domain, const char *map, + unsigned int prev_len, const char *prev, + unsigned int *next_key_len, char **next_key, + unsigned int *next_value_len, char **next_value); +bool_t map_order(struct plugin_state *state, + const char *domain, const char *map, + unsigned int *order); |