[gnome-session] session: Move GsmPresenceStatus into its own file



commit 52e6bf4ce6ec7b7075694a06c6e43c926975a7ec
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Jan 16 13:32:45 2013 +0100

    session: Move GsmPresenceStatus into its own file
    
    So that it can be copy/pasted in gnome-settings-daemon's power plugin
    amongst other things.
    
    The file is call -flag.h to match the gsm-inhibitor-flag.h file.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=691844

 gnome-session/Makefile.am         |    1 +
 gnome-session/gsm-presence-flag.h |   35 +++++++++++++++++++++++++++++++++++
 gnome-session/gsm-presence.h      |    9 ++-------
 3 files changed, 38 insertions(+), 7 deletions(-)
---
diff --git a/gnome-session/Makefile.am b/gnome-session/Makefile.am
index 814fa6d..3d54cfa 100644
--- a/gnome-session/Makefile.am
+++ b/gnome-session/Makefile.am
@@ -37,6 +37,7 @@ gnome_session_SOURCES =				\
 	gsm-inhibit-dialog.h			\
 	gsm-inhibit-dialog.c			\
 	gsm-presence.h				\
+	gsm-presence-flag.h			\
 	gsm-presence.c				\
 	gdm.h					\
 	gdm.c					\
diff --git a/gnome-session/gsm-presence-flag.h b/gnome-session/gsm-presence-flag.h
new file mode 100644
index 0000000..2a0b674
--- /dev/null
+++ b/gnome-session/gsm-presence-flag.h
@@ -0,0 +1,35 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
+ *
+ * Copyright (C) 2009 Red Hat, Inc.
+ *
+ * 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
+ * Lesser 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 __GSM_PRESENCE_FLAG_H__
+#define __GSM_PRESENCE_FLAG_H__
+
+G_BEGIN_DECLS
+
+typedef enum {
+        GSM_PRESENCE_STATUS_AVAILABLE = 0,
+        GSM_PRESENCE_STATUS_INVISIBLE,
+        GSM_PRESENCE_STATUS_BUSY,
+        GSM_PRESENCE_STATUS_IDLE,
+} GsmPresenceStatus;
+
+G_END_DECLS
+
+#endif /* __GSM_PRESENCE_FLAG_H__ */
diff --git a/gnome-session/gsm-presence.h b/gnome-session/gsm-presence.h
index 906dee8..80ec520 100644
--- a/gnome-session/gsm-presence.h
+++ b/gnome-session/gsm-presence.h
@@ -24,6 +24,8 @@
 #include <glib-object.h>
 #include <sys/types.h>
 
+#include "gsm-presence-flag.h"
+
 G_BEGIN_DECLS
 
 #define GSM_TYPE_PRESENCE            (gsm_presence_get_type ())
@@ -55,13 +57,6 @@ struct _GsmPresenceClass
 
 };
 
-typedef enum {
-        GSM_PRESENCE_STATUS_AVAILABLE = 0,
-        GSM_PRESENCE_STATUS_INVISIBLE,
-        GSM_PRESENCE_STATUS_BUSY,
-        GSM_PRESENCE_STATUS_IDLE,
-} GsmPresenceStatus;
-
 typedef enum
 {
         GSM_PRESENCE_ERROR_GENERAL = 0,



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