[krb5-auth-dialog] Move KaApplet into a separate header



commit 07748e8cd58c014c4577806350b3d7c3e61647a8
Author: Guido Günther <agx sigxcpu org>
Date:   Sat Apr 10 10:26:00 2010 +0200

    Move KaApplet into a separate header
    
    so the headers used by plugins are self contained.

 src/Makefile.am        |    1 +
 src/ka-applet.h        |   48 ++++++++++++++++++++++++++++++++++++++++++++++++
 src/krb5-auth-applet.h |   21 ++-------------------
 3 files changed, 51 insertions(+), 19 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index 0098bd9..4f921ab 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -25,6 +25,7 @@ krb5_auth_dialog_SOURCES =	\
 	krb5-auth-dialog.h      \
 	krb5-auth-applet.c	\
 	krb5-auth-applet.h	\
+	ka-applet.h		\
 	krb5-auth-pwdialog.c    \
 	krb5-auth-pwdialog.h    \
 	krb5-auth-gconf.c	\
diff --git a/src/ka-applet.h b/src/ka-applet.h
new file mode 100644
index 0000000..e9af644
--- /dev/null
+++ b/src/ka-applet.h
@@ -0,0 +1,48 @@
+/* Krb5 Auth Applet -- Acquire and release kerberos tickets
+ *
+ * (C) 2008 Guido Guenther <agx sigxcpu org>
+ *
+ * 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 KA_APPLET_H
+#define KA_APPLET_H
+
+#include <glib-object.h>
+
+G_BEGIN_DECLS
+
+#define KA_TYPE_APPLET            (ka_applet_get_type ())
+#define KA_APPLET(obj)            \
+    (G_TYPE_CHECK_INSTANCE_CAST ((obj), KA_TYPE_APPLET, KaApplet))
+#define KA_APPLET_CLASS(klass)    \
+    (G_TYPE_CHECK_CLASS_CAST ((klass), KA_TYPE_APPLET, KaAppletClass))
+#define KA_IS_APPLET(obj)         \
+    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), KA_TYPE_APPLET))
+#define KA_IS_APPLET_CLASS(klass) \
+    (G_TYPE_CHECK_CLASS_TYPE ((klass), KA_TYPE_APPLET))
+#define KA_APPLET_GET_CLASS(obj)  \
+    (G_TYPE_INSTANCE_GET_CLASS ((obj), KA_TYPE_APPLET, KaAppletClass))
+
+typedef struct _KaApplet        KaApplet;
+typedef struct _KaAppletClass   KaAppletClass;
+typedef struct _KaAppletPrivate KaAppletPrivate;
+
+GType ka_applet_get_type (void);
+
+G_END_DECLS
+
+#endif
diff --git a/src/krb5-auth-applet.h b/src/krb5-auth-applet.h
index e0f32e4..18cdf98 100644
--- a/src/krb5-auth-applet.h
+++ b/src/krb5-auth-applet.h
@@ -26,29 +26,12 @@
 #include <krb5.h>
 
 #include "config.h"
+#include "ka-applet.h"
 #include "krb5-auth-pwdialog.h"
 
-#define KA_NAME _("Network Authentication")
-
 G_BEGIN_DECLS
 
-#define KA_TYPE_APPLET            (ka_applet_get_type ())
-#define KA_APPLET(obj)            \
-    (G_TYPE_CHECK_INSTANCE_CAST ((obj), KA_TYPE_APPLET, KaApplet))
-#define KA_APPLET_CLASS(klass)    \
-    (G_TYPE_CHECK_CLASS_CAST ((klass), KA_TYPE_APPLET, KaAppletClass))
-#define KA_IS_APPLET(obj)         \
-    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), KA_TYPE_APPLET))
-#define KA_IS_APPLET_CLASS(klass) \
-    (G_TYPE_CHECK_CLASS_TYPE ((klass), KA_TYPE_APPLET))
-#define KA_APPLET_GET_CLASS(obj)  \
-    (G_TYPE_INSTANCE_GET_CLASS ((obj), KA_TYPE_APPLET, KaAppletClass))
-
-typedef struct _KaApplet        KaApplet;
-typedef struct _KaAppletClass   KaAppletClass;
-typedef struct _KaAppletPrivate KaAppletPrivate;
-
-GType ka_applet_get_type (void);
+#define KA_NAME _("Network Authentication")
 
 /* signals emitted by KaApplet */
 typedef enum {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]