Moved _lm_connection_old_auth from public header file.
authorMikael Hallendal <micke@imendio.com>
Fri, 20 Jun 2008 17:05:48 +0200
changeset 415 14ff0a255a86
parent 414 76bb882301ad
child 416 70e99906149f
Moved _lm_connection_old_auth from public header file. This is an internal function and only used in lm-connection.c so made this static and removed from the public header file.
loudmouth/lm-connection.c
loudmouth/lm-connection.h
--- a/loudmouth/lm-connection.c	Fri Jun 20 17:00:56 2008 +0200
+++ b/loudmouth/lm-connection.c	Fri Jun 20 17:05:48 2008 +0200
@@ -185,6 +185,13 @@
 					       LmConnection     *connection,
 					       LmMessage        *message,
 					       gpointer          user_data);
+static gboolean  connection_old_auth          (LmConnection       *connection,
+                                               const gchar *username,
+                                               const gchar *password,
+                                               const gchar *resource,
+                                               GError **errror);
+
+
 
 static void
 connection_free_handlers (LmConnection *connection)
@@ -1153,8 +1160,9 @@
 			lm_sasl_get_auth_params (connection->sasl, &user, &pass);
 			if (user && pass) {
 				GError *error = NULL;
-				_lm_connection_old_auth (connection, user, pass,
-					connection->resource, &error);
+				connection_old_auth (connection, user, pass,
+                                                     connection->resource,
+                                                     &error);
 
 				if (error) {
 					g_error_free (error);
@@ -1483,13 +1491,16 @@
 		return TRUE;
 	}
 
-	return _lm_connection_old_auth (connection, username, password,
-		resource, error);
+        return connection_old_auth (connection, username, password,
+                                    resource, error);
 }
 
-gboolean
-_lm_connection_old_auth (LmConnection *connection, const gchar *username,
-	const gchar *password, const gchar *resource, GError **error)
+static gboolean
+connection_old_auth (LmConnection  *connection,
+                     const gchar   *username,
+                     const gchar   *password,
+                     const gchar   *resource, 
+                     GError       **error)
 {
 	LmMessage        *m;
 	AuthReqData      *data;
--- a/loudmouth/lm-connection.h	Fri Jun 20 17:00:56 2008 +0200
+++ b/loudmouth/lm-connection.h	Fri Jun 20 17:05:48 2008 +0200
@@ -165,12 +165,6 @@
 LmConnection* lm_connection_ref               (LmConnection       *connection);
 void          lm_connection_unref             (LmConnection       *connection);
 
-gboolean
-_lm_connection_old_auth (LmConnection *connection, const gchar *username,
-			 const gchar *password, const gchar *resource,
-			 GError **errror);
-
-
 G_END_DECLS
 
 #endif /* __LM_CONNECTION_H__ */