[nautilus-actions] Refactoring: update src/core/na-io-factory.{c,h}



commit 94a13fe275ccf24f4165ecb65e4e02b07b239f32
Author: Pierre Wieser <pwieser trychlos org>
Date:   Mon Feb 15 20:16:47 2010 +0100

    Refactoring: update src/core/na-io-factory.{c,h}

 ChangeLog                      |    1 +
 src/core/na-iio-factory-priv.h |   61 ++++++++++++++++++++++++++++++++++++++++
 src/test/test-include.c        |   11 +++++++
 3 files changed, 73 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 1727aec..317b14e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2009-02-15 Pierre Wieser <pwieser trychlos org>
 
+	Update src/core/na-io-factory.{c,h}
 	Update src/core/na-io-provider.{c,h}
 	Update src/core/na-iabout.{c,h}
 	Update src/utils.
diff --git a/src/core/na-iio-factory-priv.h b/src/core/na-iio-factory-priv.h
new file mode 100644
index 0000000..be86b48
--- /dev/null
+++ b/src/core/na-iio-factory-priv.h
@@ -0,0 +1,61 @@
+/*
+ * Nautilus Actions
+ * A Nautilus extension which offers configurable context menu actions.
+ *
+ * Copyright (C) 2005 The GNOME Foundation
+ * Copyright (C) 2006, 2007, 2008 Frederic Ruaudel and others (see AUTHORS)
+ * Copyright (C) 2009, 2010 Pierre Wieser and others (see AUTHORS)
+ *
+ * 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 Library; see the file COPYING.  If not,
+ * write to the Free Software Foundation, Inc., 59 Temple Place,
+ * Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Authors:
+ *   Frederic Ruaudel <grumz grumz net>
+ *   Rodrigo Moya <rodrigo gnome-db org>
+ *   Pierre Wieser <pwieser trychlos org>
+ *   ... and many others (see AUTHORS)
+ */
+
+#ifndef __CORE_NA_IIO_FACTORY_PRIV_H__
+#define __CORE_NA_IIO_FACTORY_PRIV_H__
+
+/**
+ * SECTION: na_iio_factory
+ * @short_description: #NAIIOFactory interface private structure declaration.
+ * @include: core/na-iio-factory-priv.h
+ */
+
+#include <api/na-idata-factory-str.h>
+
+G_BEGIN_DECLS
+
+/* the structure of registered types
+ * a list of this structure is stored in #NAIDataFactory interface
+ */
+typedef struct {
+	GType        type;
+	NadfIdGroup *groups;
+}
+	NadfImplement;
+
+/* private interface data
+ */
+struct NAIIOFactoryInterfacePrivate {
+	GList *registered;
+};
+
+G_END_DECLS
+
+#endif /* __CORE_NA_IIO_FACTORY_PRIV_H__ */
diff --git a/src/test/test-include.c b/src/test/test-include.c
new file mode 100644
index 0000000..a85943c
--- /dev/null
+++ b/src/test/test-include.c
@@ -0,0 +1,11 @@
+#include <stdio.h>
+
+#include <api/na-data-factory.h>
+
+int
+main()
+{
+	printf( "OK\n" );
+
+	return( 0 );						/* so that gcc is happy */
+}



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