summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lasso/id-ff/Makefile.am1
-rw-r--r--lasso/id-ff/identity.c1
-rw-r--r--lasso/id-ff/identity.h6
-rw-r--r--lasso/id-ff/identityprivate.h39
-rw-r--r--lasso/id-ff/login.c1
5 files changed, 43 insertions, 5 deletions
diff --git a/lasso/id-ff/Makefile.am b/lasso/id-ff/Makefile.am
index ae35318d..5d8be305 100644
--- a/lasso/id-ff/Makefile.am
+++ b/lasso/id-ff/Makefile.am
@@ -23,6 +23,7 @@ liblasso_id_ff_la_SOURCES = \
session.c
lasso_private_h_sources = \
+ identityprivate.h \
profileprivate.h \
providerprivate.h \
serverprivate.h \
diff --git a/lasso/id-ff/identity.c b/lasso/id-ff/identity.c
index 3c444f25..4ba58bfb 100644
--- a/lasso/id-ff/identity.c
+++ b/lasso/id-ff/identity.c
@@ -23,6 +23,7 @@
*/
#include <lasso/id-ff/identity.h>
+#include <lasso/id-ff/identityprivate.h>
struct _LassoIdentityPrivate
{
diff --git a/lasso/id-ff/identity.h b/lasso/id-ff/identity.h
index 57d61d35..a5b80bae 100644
--- a/lasso/id-ff/identity.h
+++ b/lasso/id-ff/identity.h
@@ -49,7 +49,7 @@ struct _LassoIdentity {
LassoNode parent;
/*< public >*/
- GHashTable *federations; /* hash for federations with remote ProviderID as key */
+ GHashTable *federations;
gboolean is_dirty;
/*< private >*/
@@ -64,12 +64,8 @@ LASSO_EXPORT GType lasso_identity_get_type(void);
LASSO_EXPORT LassoIdentity* lasso_identity_new(void);
LASSO_EXPORT LassoIdentity* lasso_identity_new_from_dump(const gchar *dump);
-LASSO_EXPORT gint lasso_identity_add_federation(LassoIdentity *identity,
- LassoFederation *federation);
LASSO_EXPORT LassoFederation* lasso_identity_get_federation(
LassoIdentity *identity, const char *providerID);
-LASSO_EXPORT gint lasso_identity_remove_federation(LassoIdentity *identity,
- const char *providerID);
LASSO_EXPORT void lasso_identity_destroy(LassoIdentity *identity);
diff --git a/lasso/id-ff/identityprivate.h b/lasso/id-ff/identityprivate.h
new file mode 100644
index 00000000..42030108
--- /dev/null
+++ b/lasso/id-ff/identityprivate.h
@@ -0,0 +1,39 @@
+/* $Id$
+ *
+ * Lasso - A free implementation of the Liberty Alliance specifications.
+ *
+ * Copyright (C) 2004, 2005 Entr'ouvert
+ * http://lasso.entrouvert.org
+ *
+ * Authors: See AUTHORS file in top-level directory.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#ifndef __LASSO_IDENTITY_PRIVATE_H__
+#define __LASSO_IDENTITY_PRIVATE_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+gint lasso_identity_add_federation(LassoIdentity *identity, LassoFederation *federation);
+gint lasso_identity_remove_federation(LassoIdentity *identity, const char *providerID);
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* __LASSO_IDENTITY_PRIVATE_H__ */
diff --git a/lasso/id-ff/login.c b/lasso/id-ff/login.c
index 7c9f54d1..c4761776 100644
--- a/lasso/id-ff/login.c
+++ b/lasso/id-ff/login.c
@@ -35,6 +35,7 @@
#include <lasso/id-ff/providerprivate.h>
#include <lasso/id-ff/serverprivate.h>
#include <lasso/id-ff/sessionprivate.h>
+#include <lasso/id-ff/identityprivate.h>
struct _LassoLoginPrivate
{