Only allow including <gio/gio.h> from apps

2007-12-14  Alexander Larsson  <alexl@redhat.com>

        * Makefile.am:
        * fam/Makefile.am:
        * gappinfo.h:
        * gasyncresult.h:
        * gbufferedinputstream.h:
        * gbufferedoutputstream.h:
        * gcancellable.h:
        * gcontenttype.h:
        * gdatainputstream.h:
        * gdataoutputstream.h:
        * gdesktopappinfo.h:
        * gdirectorymonitor.h:
        * gdrive.h:
        * gfile.h:
        * gfileattribute.h:
        * gfileenumerator.h:
        * gfileicon.h:
        * gfileinfo.h:
        * gfileinputstream.h:
        * gfilemonitor.h:
        * gfilenamecompleter.h:
        * gfileoutputstream.h:
        * gfilterinputstream.h:
        * gfilteroutputstream.h:
        * gicon.h:
        * ginputstream.h:
        * gio.h:
        * gioerror.h:
        * giomodule.h:
        * gioscheduler.h:
        * gloadableicon.h:
        * gmemoryinputstream.h:
        * gmemoryoutputstream.h:
        * gmount.h:
        * gmountoperation.h:
        * goutputstream.h:
        * gseekable.h:
        * gsimpleasyncresult.h:
        * gthemedicon.h:
        * gunixinputstream.h:
        * gunixmounts.h:
        * gunixoutputstream.h:
        * gvfs.h:
        * gvolume.h:
        * gvolumemonitor.h:
        * inotify/Makefile.am:
	Only allow including <gio/gio.h> from apps


svn path=/trunk/; revision=6117
This commit is contained in:
Alexander Larsson 2007-12-14 10:35:24 +00:00 committed by Alexander Larsson
parent 3db93c01b7
commit ced2927726
47 changed files with 213 additions and 6 deletions

View File

@ -1,3 +1,53 @@
2007-12-14 Alexander Larsson <alexl@redhat.com>
* Makefile.am:
* fam/Makefile.am:
* gappinfo.h:
* gasyncresult.h:
* gbufferedinputstream.h:
* gbufferedoutputstream.h:
* gcancellable.h:
* gcontenttype.h:
* gdatainputstream.h:
* gdataoutputstream.h:
* gdesktopappinfo.h:
* gdirectorymonitor.h:
* gdrive.h:
* gfile.h:
* gfileattribute.h:
* gfileenumerator.h:
* gfileicon.h:
* gfileinfo.h:
* gfileinputstream.h:
* gfilemonitor.h:
* gfilenamecompleter.h:
* gfileoutputstream.h:
* gfilterinputstream.h:
* gfilteroutputstream.h:
* gicon.h:
* ginputstream.h:
* gio.h:
* gioerror.h:
* giomodule.h:
* gioscheduler.h:
* gloadableicon.h:
* gmemoryinputstream.h:
* gmemoryoutputstream.h:
* gmount.h:
* gmountoperation.h:
* goutputstream.h:
* gseekable.h:
* gsimpleasyncresult.h:
* gthemedicon.h:
* gunixinputstream.h:
* gunixmounts.h:
* gunixoutputstream.h:
* gvfs.h:
* gvolume.h:
* gvolumemonitor.h:
* inotify/Makefile.am:
Only allow including <gio/gio.h> from apps
2007-12-14 Alexander Larsson <alexl@redhat.com>
* gioscheduler.[ch]:

View File

@ -31,6 +31,7 @@ AM_CPPFLAGS = \
-I$(top_srcdir)/gmodule \
$(GLIB_DEBUG_FLAGS) \
-DG_DISABLE_DEPRECATED \
-DGIO_COMPILATION \
-DGIO_MODULE_DIR=\"$(GIO_MODULE_DIR)\"
lib_LTLIBRARIES = libgio-2.0.la

View File

@ -24,6 +24,7 @@ libgiofam_la_CFLAGS = \
-I$(top_srcdir)/gmodule \
-I$(top_srcdir)/gio \
-DGIO_MODULE_DIR=\"$(GIO_MODULE_DIR)\" \
-DGIO_COMPILATION \
-DG_DISABLE_DEPRECATED
libgiofam_la_LDFLAGS = $(module_flags)

View File

@ -20,6 +20,10 @@
* Author: Alexander Larsson <alexl@redhat.com>
*/
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif
#ifndef __G_APP_INFO_H__
#define __G_APP_INFO_H__

View File

@ -20,6 +20,10 @@
* Author: Alexander Larsson <alexl@redhat.com>
*/
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif
#ifndef __G_ASYNC_RESULT_H__
#define __G_ASYNC_RESULT_H__

View File

@ -20,6 +20,10 @@
* Author: Christian Kellner <gicmo@gnome.org>
*/
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif
#ifndef __G_BUFFERED_INPUT_STREAM_H__
#define __G_BUFFERED_INPUT_STREAM_H__

View File

@ -20,6 +20,10 @@
* Author: Christian Kellner <gicmo@gnome.org>
*/
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif
#ifndef __G_BUFFERED_OUTPUT_STREAM_H__
#define __G_BUFFERED_OUTPUT_STREAM_H__

View File

@ -20,6 +20,10 @@
* Author: Alexander Larsson <alexl@redhat.com>
*/
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif
#ifndef __G_CANCELLABLE_H__
#define __G_CANCELLABLE_H__

View File

@ -20,6 +20,10 @@
* Author: Alexander Larsson <alexl@redhat.com>
*/
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif
#ifndef __G_CONTENT_TYPE_H__
#define __G_CONTENT_TYPE_H__

View File

@ -20,6 +20,10 @@
* Author: Alexander Larsson <alexl@redhat.com>
*/
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif
#ifndef __G_DATA_INPUT_STREAM_H__
#define __G_DATA_INPUT_STREAM_H__

View File

@ -20,6 +20,10 @@
* Author: Alexander Larsson <alexl@redhat.com>
*/
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif
#ifndef __G_DATA_OUTPUT_STREAM_H__
#define __G_DATA_OUTPUT_STREAM_H__

View File

@ -23,7 +23,7 @@
#ifndef __G_DESKTOP_APP_INFO_H__
#define __G_DESKTOP_APP_INFO_H__
#include <gio/gappinfo.h>
#include <gio/gio.h>
G_BEGIN_DECLS

View File

@ -20,6 +20,10 @@
* Author: Alexander Larsson <alexl@redhat.com>
*/
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif
#ifndef __G_DIRECTORY_MONITOR_H__
#define __G_DIRECTORY_MONITOR_H__

View File

@ -21,6 +21,10 @@
* David Zeuthen <davidz@redhat.com>
*/
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif
#ifndef __G_DRIVE_H__
#define __G_DRIVE_H__

View File

@ -20,6 +20,10 @@
* Author: Alexander Larsson <alexl@redhat.com>
*/
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif
#ifndef __G_FILE_H__
#define __G_FILE_H__

View File

@ -20,6 +20,10 @@
* Author: Alexander Larsson <alexl@redhat.com>
*/
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif
#ifndef __G_FILE_ATTRIBUTE_H__
#define __G_FILE_ATTRIBUTE_H__

View File

@ -20,6 +20,10 @@
* Author: Alexander Larsson <alexl@redhat.com>
*/
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif
#ifndef __G_FILE_ENUMERATOR_H__
#define __G_FILE_ENUMERATOR_H__

View File

@ -20,6 +20,10 @@
* Author: Alexander Larsson <alexl@redhat.com>
*/
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif
#ifndef __G_FILE_ICON_H__
#define __G_FILE_ICON_H__

View File

@ -20,6 +20,10 @@
* Author: Alexander Larsson <alexl@redhat.com>
*/
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif
#ifndef __G_FILE_INFO_H__
#define __G_FILE_INFO_H__

View File

@ -20,6 +20,10 @@
* Author: Alexander Larsson <alexl@redhat.com>
*/
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif
#ifndef __G_FILE_INPUT_STREAM_H__
#define __G_FILE_INPUT_STREAM_H__

View File

@ -20,6 +20,10 @@
* Author: Alexander Larsson <alexl@redhat.com>
*/
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif
#ifndef __G_FILE_MONITOR_H__
#define __G_FILE_MONITOR_H__

View File

@ -20,6 +20,10 @@
* Author: Alexander Larsson <alexl@redhat.com>
*/
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif
#ifndef __G_FILENAME_COMPLETER_H__
#define __G_FILENAME_COMPLETER_H__

View File

@ -20,6 +20,10 @@
* Author: Alexander Larsson <alexl@redhat.com>
*/
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif
#ifndef __G_FILE_OUTPUT_STREAM_H__
#define __G_FILE_OUTPUT_STREAM_H__

View File

@ -20,6 +20,10 @@
* Author: Christian Kellner <gicmo@gnome.org>
*/
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif
#ifndef __G_FILTER_INPUT_STREAM_H__
#define __G_FILTER_INPUT_STREAM_H__

View File

@ -20,6 +20,10 @@
* Author: Christian Kellner <gicmo@gnome.org>
*/
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif
#ifndef __G_FILTER_OUTPUT_STREAM_H__
#define __G_FILTER_OUTPUT_STREAM_H__

View File

@ -20,6 +20,10 @@
* Author: Alexander Larsson <alexl@redhat.com>
*/
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif
#ifndef __G_ICON_H__
#define __G_ICON_H__

View File

@ -20,6 +20,10 @@
* Author: Alexander Larsson <alexl@redhat.com>
*/
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif
#ifndef __G_INPUT_STREAM_H__
#define __G_INPUT_STREAM_H__

View File

@ -23,6 +23,8 @@
#ifndef __G_IO_H__
#define __G_IO_H__
#define __GIO_GIO_H_INSIDE__
#include <gio/gvfs.h>
#include <gio/gfile.h>
#include <gio/gvolumemonitor.h>
@ -49,4 +51,6 @@
#include <gio/gsimpleasyncresult.h>
#include <gio/gioenumtypes.h>
#undef __GIO_GIO_H_INSIDE__
#endif /* __G_IO_H__ */

View File

@ -20,6 +20,10 @@
* Author: Alexander Larsson <alexl@redhat.com>
*/
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif
#ifndef __G_IO_ERROR_H__
#define __G_IO_ERROR_H__

View File

@ -20,6 +20,10 @@
* Author: Alexander Larsson <alexl@redhat.com>
*/
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif
#ifndef __G_IO_MODULE_H__
#define __G_IO_MODULE_H__

View File

@ -20,6 +20,10 @@
* Author: Alexander Larsson <alexl@redhat.com>
*/
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif
#ifndef __G_IO_SCHEDULER_H__
#define __G_IO_SCHEDULER_H__

View File

@ -20,6 +20,10 @@
* Author: Alexander Larsson <alexl@redhat.com>
*/
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif
#ifndef __G_LOADABLE_ICON_H__
#define __G_LOADABLE_ICON_H__

View File

@ -20,6 +20,10 @@
* Author: Christian Kellner <gicmo@gnome.org>
*/
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif
#ifndef __G_MEMORY_INPUT_STREAM_H__
#define __G_MEMORY_INPUT_STREAM_H__

View File

@ -20,6 +20,10 @@
* Author: Christian Kellner <gicmo@gnome.org>
*/
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif
#ifndef __G_MEMORY_OUTPUT_STREAM_H__
#define __G_MEMORY_OUTPUT_STREAM_H__

View File

@ -21,6 +21,10 @@
* David Zeuthen <davidz@redhat.com>
*/
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif
#ifndef __G_MOUNT_H__
#define __G_MOUNT_H__

View File

@ -20,6 +20,10 @@
* Author: Alexander Larsson <alexl@redhat.com>
*/
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif
#ifndef __G_MOUNT_OPERATION_H__
#define __G_MOUNT_OPERATION_H__

View File

@ -20,6 +20,10 @@
* Author: Alexander Larsson <alexl@redhat.com>
*/
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif
#ifndef __G_OUTPUT_STREAM_H__
#define __G_OUTPUT_STREAM_H__

View File

@ -20,6 +20,10 @@
* Author: Alexander Larsson <alexl@redhat.com>
*/
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif
#ifndef __G_SEEKABLE_H__
#define __G_SEEKABLE_H__

View File

@ -20,6 +20,10 @@
* Author: Alexander Larsson <alexl@redhat.com>
*/
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif
#ifndef __G_SIMPLE_ASYNC_RESULT_H__
#define __G_SIMPLE_ASYNC_RESULT_H__

View File

@ -20,6 +20,10 @@
* Author: Alexander Larsson <alexl@redhat.com>
*/
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif
#ifndef __G_THEMED_ICON_H__
#define __G_THEMED_ICON_H__

View File

@ -23,7 +23,7 @@
#ifndef __G_UNIX_INPUT_STREAM_H__
#define __G_UNIX_INPUT_STREAM_H__
#include <gio/ginputstream.h>
#include <gio/gio.h>
G_BEGIN_DECLS

View File

@ -23,9 +23,7 @@
#ifndef __G_UNIX_MOUNTS_H__
#define __G_UNIX_MOUNTS_H__
#include <glib.h>
#include <glib-object.h>
#include <gio/gicon.h>
#include <gio/gio.h>
G_BEGIN_DECLS

View File

@ -23,7 +23,7 @@
#ifndef __G_UNIX_OUTPUT_STREAM_H__
#define __G_UNIX_OUTPUT_STREAM_H__
#include <gio/goutputstream.h>
#include <gio/gio.h>
G_BEGIN_DECLS

View File

@ -20,6 +20,10 @@
* Author: Alexander Larsson <alexl@redhat.com>
*/
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif
#ifndef __G_VFS_H__
#define __G_VFS_H__

View File

@ -21,6 +21,10 @@
* David Zeuthen <davidz@redhat.com>
*/
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif
#ifndef __G_VOLUME_H__
#define __G_VOLUME_H__

View File

@ -21,6 +21,10 @@
* David Zeuthen <davidz@redhat.com>
*/
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif
#ifndef __G_VOLUME_MONITOR_H__
#define __G_VOLUME_MONITOR_H__

View File

@ -32,5 +32,6 @@ libinotify_la_CFLAGS = \
-I$(top_srcdir)/gmodule \
-I$(top_srcdir)/gio \
-DGIO_MODULE_DIR=\"$(GIO_MODULE_DIR)\" \
-DGIO_COMPILATION \
-DG_DISABLE_DEPRECATED