Blame lasso/registry-private.h

Packit Service 88ab54
/* $Id$
Packit Service 88ab54
 *
Packit Service 88ab54
 * Lasso - A free implementation of the Liberty Alliance specifications.
Packit Service 88ab54
 *
Packit Service 88ab54
 * Copyright (C) 2004-2007 Entr'ouvert
Packit Service 88ab54
 * http://lasso.entrouvert.org
Packit Service 88ab54
 *
Packit Service 88ab54
 * Authors: See AUTHORS file in top-level directory.
Packit Service 88ab54
 *
Packit Service 88ab54
 * This program is free software; you can redistribute it and/or modify
Packit Service 88ab54
 * it under the terms of the GNU General Public License as published by
Packit Service 88ab54
 * the Free Software Foundation; either version 2 of the License, or
Packit Service 88ab54
 * (at your option) any later version.
Packit Service 88ab54
 *
Packit Service 88ab54
 * This program is distributed in the hope that it will be useful,
Packit Service 88ab54
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 88ab54
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Service 88ab54
 * GNU General Public License for more details.
Packit Service 88ab54
 *
Packit Service 88ab54
 * You should have received a copy of the GNU General Public License
Packit Service 88ab54
 * along with this program; if not, see <http://www.gnu.org/licenses/>.
Packit Service 88ab54
 */
Packit Service 88ab54
Packit Service 88ab54
Packit Service 88ab54
#ifndef __REGISTRY_PRIVATE_H__
Packit Service 88ab54
#define __REGISTRY_PRIVATE_H__
Packit Service 88ab54
Packit Service 88ab54
#include "registry.h"
Packit Service 88ab54
Packit Service 88ab54
#ifdef __cplusplus
Packit Service 88ab54
extern "C" {
Packit Service 88ab54
#endif /* __cplusplus */
Packit Service 88ab54
Packit Service 88ab54
typedef struct _LassoRegistry LassoRegistry;
Packit Service 88ab54
Packit Service 88ab54
struct _LassoRegistry {
Packit Service 88ab54
		GHashTable *functional_mapping;
Packit Service 88ab54
		GHashTable *direct_mapping;
Packit Service 88ab54
};
Packit Service 88ab54
Packit Service 88ab54
LassoRegistry *lasso_registry_new();
Packit Service 88ab54
void lasso_registry_destroy();
Packit Service 88ab54
void lasso_registry_default_shutdown();
Packit Service 88ab54
gint lasso_registry_add_direct_mapping(LassoRegistry *registry, const char *from_namespace,
Packit Service 88ab54
		const char *from_name, const char *to_namespace, const char *to_name);
Packit Service 88ab54
gint lasso_registry_add_functional_mapping(LassoRegistry *registry, const char *from_namespace,
Packit Service 88ab54
		const char *to_namespace, LassoRegistryTranslationFunction translation_function);
Packit Service 88ab54
const char* lasso_registry_get_mapping(LassoRegistry *registry, const char *from_namespace,
Packit Service 88ab54
		const char *from_name, const char *to_namespace);
Packit Service 88ab54
Packit Service 88ab54
#ifdef __cplusplus
Packit Service 88ab54
}
Packit Service 88ab54
#endif /* __cplusplus */
Packit Service 88ab54
Packit Service 88ab54
#endif /* __REGISTRY_PRIVATE_H__ */