From bc3acca7eed4f90a33f43b624b4a49d09a75160e Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sat, 12 Apr 2008 15:22:57 +0000 Subject: Add epiphany.h. Only allow including epiphany.h; all other headers are private svn path=/trunk/; revision=8211 --- lib/Makefile.am | 4 ++++ lib/egg/Makefile.am | 1 + lib/ephy-debug.h | 4 ++++ lib/ephy-dialog.h | 4 ++++ lib/ephy-dnd.h | 4 ++++ lib/ephy-file-chooser.h | 4 ++++ lib/ephy-file-helpers.h | 4 ++++ lib/ephy-glib-compat.h | 4 ++++ lib/ephy-gui.h | 4 ++++ lib/ephy-langs.h | 4 ++++ lib/ephy-loader.h | 4 ++++ lib/ephy-module.h | 4 ++++ lib/ephy-node-common.h | 4 ++++ lib/ephy-node-db.h | 4 ++++ lib/ephy-node-filter.h | 4 ++++ lib/ephy-node.h | 4 ++++ lib/ephy-object-helpers.h | 4 ++++ lib/ephy-password-dialog.h | 4 ++++ lib/ephy-prefs.h | 4 ++++ lib/ephy-print-utils.h | 4 ++++ lib/ephy-shlib-loader.h | 4 ++++ lib/ephy-signal-accumulator.h | 4 ++++ lib/ephy-spell-check.h | 4 ++++ lib/ephy-state.h | 4 ++++ lib/ephy-stock-icons.h | 4 ++++ lib/ephy-string.h | 4 ++++ lib/ephy-time-helpers.h | 4 ++++ lib/ephy-zoom.h | 4 ++++ lib/widgets/ephy-icon-entry.h | 4 ++++ lib/widgets/ephy-location-entry.h | 4 ++++ lib/widgets/ephy-node-view.h | 4 ++++ lib/widgets/ephy-search-entry.h | 4 ++++ lib/widgets/ephy-spinner.h | 4 ++++ lib/widgets/ephy-tree-model-node.h | 4 ++++ lib/widgets/ephy-tree-model-sort.h | 4 ++++ lib/widgets/ephy-zoom-action.h | 4 ++++ lib/widgets/ephy-zoom-control.h | 4 ++++ 37 files changed, 145 insertions(+) (limited to 'lib') diff --git a/lib/Makefile.am b/lib/Makefile.am index c3cd5a16d..eab56e942 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -133,6 +133,7 @@ ephy-lib-type-builtins.c: stamp-ephy-lib-type-builtins.c Makefile @true stamp-ephy-lib-type-builtins.c: Makefile $(TYPES_H_FILES) $(GLIB_MKENUMS) \ + --fhead "#include \n\n" \ --fhead "#include \"ephy-lib-type-builtins.h\"\n\n" \ --fprod "\n/* enumerations from \"@filename@\" */" \ --fprod "\n#include \"@filename@\"" \ @@ -153,6 +154,9 @@ ephy-lib-type-builtins.h: stamp-ephy-lib-type-builtins.h Makefile @true stamp-ephy-lib-type-builtins.h: Makefile $(TYPES_H_FILES) $(GLIB_MKENUMS) \ + --fhead "#if !defined (__EPHY_EPIPHANY_H_INSIDE__) && !defined (EPIPHANY_COMPILATION)\n" \ + --fhead "#error Only can be included directly.\n" \ + --fhead "#endif\n\n" \ --fhead "#ifndef EPHY_LIB_TYPE_BUILTINS_H\n" \ --fhead "#define EPHY_LIB_TYPE_BUILTINS_H 1\n\n" \ --fhead "#include \n\n" \ diff --git a/lib/egg/Makefile.am b/lib/egg/Makefile.am index 206aa0184..9a7275373 100644 --- a/lib/egg/Makefile.am +++ b/lib/egg/Makefile.am @@ -62,6 +62,7 @@ eggtypebuiltins.c: stamp-eggtypebuiltins.c Makefile @true stamp-eggtypebuiltins.c: Makefile $(EGGHEADERS) $(GLIB_MKENUMS) \ + --fhead "#include \n\n" \ --fhead "#include \"eggtypebuiltins.h\"\n\n" \ --fprod "\n/* enumerations from \"@filename@\" */" \ --fprod "\n#include \"@filename@\"" \ diff --git a/lib/ephy-debug.h b/lib/ephy-debug.h index 2257c11e1..7339339f9 100644 --- a/lib/ephy-debug.h +++ b/lib/ephy-debug.h @@ -18,6 +18,10 @@ * $Id$ */ +#if !defined (__EPHY_EPIPHANY_H_INSIDE__) && !defined (EPIPHANY_COMPILATION) +#error "Only can be included directly." +#endif + #ifndef EPHY_DEBUG_H #define EPHY_DEBUG_H diff --git a/lib/ephy-dialog.h b/lib/ephy-dialog.h index a9867d156..8abc6bb33 100644 --- a/lib/ephy-dialog.h +++ b/lib/ephy-dialog.h @@ -19,6 +19,10 @@ * $Id$ */ +#if !defined (__EPHY_EPIPHANY_H_INSIDE__) && !defined (EPIPHANY_COMPILATION) +#error "Only can be included directly." +#endif + #ifndef EPHY_DIALOG_H #define EPHY_DIALOG_H diff --git a/lib/ephy-dnd.h b/lib/ephy-dnd.h index fa2152d43..62e79823e 100644 --- a/lib/ephy-dnd.h +++ b/lib/ephy-dnd.h @@ -18,6 +18,10 @@ * $Id$ */ +#if !defined (__EPHY_EPIPHANY_H_INSIDE__) && !defined (EPIPHANY_COMPILATION) +#error "Only can be included directly." +#endif + #ifndef EPHY_DND_H #define EPHY_DND_H diff --git a/lib/ephy-file-chooser.h b/lib/ephy-file-chooser.h index 4bcd66f9a..e50f0817b 100644 --- a/lib/ephy-file-chooser.h +++ b/lib/ephy-file-chooser.h @@ -18,6 +18,10 @@ * $Id$ */ +#if !defined (__EPHY_EPIPHANY_H_INSIDE__) && !defined (EPIPHANY_COMPILATION) +#error "Only can be included directly." +#endif + #ifndef EPHY_FILE_CHOOSER_H #define EPHY_FILE_CHOOSER_H diff --git a/lib/ephy-file-helpers.h b/lib/ephy-file-helpers.h index 4bb9e3f59..362d232c2 100644 --- a/lib/ephy-file-helpers.h +++ b/lib/ephy-file-helpers.h @@ -20,6 +20,10 @@ * $Id$ */ +#if !defined (__EPHY_EPIPHANY_H_INSIDE__) && !defined (EPIPHANY_COMPILATION) +#error "Only can be included directly." +#endif + #ifndef EPHY_FILE_HELPERS_H #define EPHY_FILE_HELPERS_H diff --git a/lib/ephy-glib-compat.h b/lib/ephy-glib-compat.h index 7b966b2bd..9b445f029 100644 --- a/lib/ephy-glib-compat.h +++ b/lib/ephy-glib-compat.h @@ -18,6 +18,10 @@ * $Id: ephy-node-db.h 6588 2006-09-13 11:34:25Z chpe $ */ +#if !defined (__EPHY_EPIPHANY_H_INSIDE__) && !defined (EPIPHANY_COMPILATION) +#error "Only can be included directly." +#endif + #ifndef EPHY_GLIB_COMPAT_H #define EPHY_GLIB_COMPAT_H diff --git a/lib/ephy-gui.h b/lib/ephy-gui.h index ccf55a637..cd33d1cd6 100644 --- a/lib/ephy-gui.h +++ b/lib/ephy-gui.h @@ -18,6 +18,10 @@ * $Id$ */ +#if !defined (__EPHY_EPIPHANY_H_INSIDE__) && !defined (EPIPHANY_COMPILATION) +#error "Only can be included directly." +#endif + #ifndef EPHY_GUI_H #define EPHY_GUI_H diff --git a/lib/ephy-langs.h b/lib/ephy-langs.h index 4d9ad33bc..1b4ced268 100644 --- a/lib/ephy-langs.h +++ b/lib/ephy-langs.h @@ -19,6 +19,10 @@ * $Id$ */ +#if !defined (__EPHY_EPIPHANY_H_INSIDE__) && !defined (EPIPHANY_COMPILATION) +#error "Only can be included directly." +#endif + #ifndef EPHY_LANGS_H #define EPHY_LANGS_H diff --git a/lib/ephy-loader.h b/lib/ephy-loader.h index a424d0e4b..ca51085f2 100644 --- a/lib/ephy-loader.h +++ b/lib/ephy-loader.h @@ -19,6 +19,10 @@ * $Id$ */ +#if !defined (__EPHY_EPIPHANY_H_INSIDE__) && !defined (EPIPHANY_COMPILATION) +#error "Only can be included directly." +#endif + #ifndef EPHY_LOADER_H #define EPHY_LOADER_H diff --git a/lib/ephy-module.h b/lib/ephy-module.h index ef47007f3..985622bd3 100644 --- a/lib/ephy-module.h +++ b/lib/ephy-module.h @@ -19,6 +19,10 @@ * $Id$ */ +#if !defined (__EPHY_EPIPHANY_H_INSIDE__) && !defined (EPIPHANY_COMPILATION) +#error "Only can be included directly." +#endif + #ifndef EPHY_MODULE_H #define EPHY_MODULE_H diff --git a/lib/ephy-node-common.h b/lib/ephy-node-common.h index fe71bccf0..2434752f6 100644 --- a/lib/ephy-node-common.h +++ b/lib/ephy-node-common.h @@ -49,4 +49,8 @@ typedef enum EPHY_NODE_NORMAL_PRIORITY } EphyNodePriority; +#if !defined (__EPHY_EPIPHANY_H_INSIDE__) && !defined (EPIPHANY_COMPILATION) +#error "Only can be included directly." +#endif + #endif /* EPHY_NODE_COMMON_H */ diff --git a/lib/ephy-node-db.h b/lib/ephy-node-db.h index 352df05a2..7b4be83cb 100644 --- a/lib/ephy-node-db.h +++ b/lib/ephy-node-db.h @@ -20,6 +20,10 @@ * $Id$ */ +#if !defined (__EPHY_EPIPHANY_H_INSIDE__) && !defined (EPIPHANY_COMPILATION) +#error "Only can be included directly." +#endif + #ifndef EPHY_NODE_DB_H #define EPHY_NODE_DB_H diff --git a/lib/ephy-node-filter.h b/lib/ephy-node-filter.h index b9df6a444..39d0e7b4b 100644 --- a/lib/ephy-node-filter.h +++ b/lib/ephy-node-filter.h @@ -19,6 +19,10 @@ * $Id$ */ +#if !defined (__EPHY_EPIPHANY_H_INSIDE__) && !defined (EPIPHANY_COMPILATION) +#error "Only can be included directly." +#endif + #ifndef EPHY_NODE_FILTER_H #define EPHY_NODE_FILTER_H diff --git a/lib/ephy-node.h b/lib/ephy-node.h index d8e664a01..5e5cf04ed 100644 --- a/lib/ephy-node.h +++ b/lib/ephy-node.h @@ -20,6 +20,10 @@ * $Id$ */ +#if !defined (__EPHY_EPIPHANY_H_INSIDE__) && !defined (EPIPHANY_COMPILATION) +#error "Only can be included directly." +#endif + #ifndef EPHY_NODE_H #define EPHY_NODE_H diff --git a/lib/ephy-object-helpers.h b/lib/ephy-object-helpers.h index 3e0be968f..3774485a9 100644 --- a/lib/ephy-object-helpers.h +++ b/lib/ephy-object-helpers.h @@ -18,6 +18,10 @@ * $Id$ */ +#if !defined (__EPHY_EPIPHANY_H_INSIDE__) && !defined (EPIPHANY_COMPILATION) +#error "Only can be included directly." +#endif + #ifndef EPHY_OBJECT_HELPERS_H #define EPHY_OBJECT_HELPERS_H diff --git a/lib/ephy-password-dialog.h b/lib/ephy-password-dialog.h index 9c84a52ab..c69778d07 100644 --- a/lib/ephy-password-dialog.h +++ b/lib/ephy-password-dialog.h @@ -18,6 +18,10 @@ * $Id$ */ +#if !defined (__EPHY_EPIPHANY_H_INSIDE__) && !defined (EPIPHANY_COMPILATION) +#error "Only can be included directly." +#endif + #ifndef EPHY_PASSWORD_DIALOG_H #define EPHY_PASSWORD_DIALOG_H diff --git a/lib/ephy-prefs.h b/lib/ephy-prefs.h index f75336d9f..aa911af0c 100644 --- a/lib/ephy-prefs.h +++ b/lib/ephy-prefs.h @@ -18,6 +18,10 @@ * $Id$ */ +#if !defined (__EPHY_EPIPHANY_H_INSIDE__) && !defined (EPIPHANY_COMPILATION) +#error "Only can be included directly." +#endif + #ifndef EPHY_PREFS_H #define EPHY_PREFS_H diff --git a/lib/ephy-print-utils.h b/lib/ephy-print-utils.h index 551a0a968..2e21268f1 100644 --- a/lib/ephy-print-utils.h +++ b/lib/ephy-print-utils.h @@ -18,6 +18,10 @@ * $Id$ */ +#if !defined (__EPHY_EPIPHANY_H_INSIDE__) && !defined (EPIPHANY_COMPILATION) +#error "Only can be included directly." +#endif + #ifndef EPHY_PRINT_UTILS_H #define EPHY_PRINT_UTILS_H diff --git a/lib/ephy-shlib-loader.h b/lib/ephy-shlib-loader.h index 7def4cf53..d6612eae2 100644 --- a/lib/ephy-shlib-loader.h +++ b/lib/ephy-shlib-loader.h @@ -19,6 +19,10 @@ * $Id$ */ +#if !defined (__EPHY_EPIPHANY_H_INSIDE__) && !defined (EPIPHANY_COMPILATION) +#error "Only can be included directly." +#endif + #ifndef EPHY_SHLIB_LOADER_H #define EPHY_SHLIB_LOADER_H diff --git a/lib/ephy-signal-accumulator.h b/lib/ephy-signal-accumulator.h index fb8a2be91..33c378fb3 100644 --- a/lib/ephy-signal-accumulator.h +++ b/lib/ephy-signal-accumulator.h @@ -18,6 +18,10 @@ * $Id$ */ +#if !defined (__EPHY_EPIPHANY_H_INSIDE__) && !defined (EPIPHANY_COMPILATION) +#error "Only can be included directly." +#endif + #ifndef EPHY_SIGNAL_ACCUMULATORS_H #define EPHY_SIGNAL_ACCUMULATORS_H diff --git a/lib/ephy-spell-check.h b/lib/ephy-spell-check.h index e46e1bac3..792ead687 100644 --- a/lib/ephy-spell-check.h +++ b/lib/ephy-spell-check.h @@ -18,6 +18,10 @@ * $Id$ */ +#if !defined (__EPHY_EPIPHANY_H_INSIDE__) && !defined (EPIPHANY_COMPILATION) +#error "Only can be included directly." +#endif + #ifndef EPHY_SPELL_CHECK_H #define EPHY_SPELL_CHECK_H diff --git a/lib/ephy-state.h b/lib/ephy-state.h index b576d190e..26155ad9a 100644 --- a/lib/ephy-state.h +++ b/lib/ephy-state.h @@ -20,6 +20,10 @@ * $Id$ */ +#if !defined (__EPHY_EPIPHANY_H_INSIDE__) && !defined (EPIPHANY_COMPILATION) +#error "Only can be included directly." +#endif + #ifndef EPHY_STATE_H #define EPHY_STATE_H diff --git a/lib/ephy-stock-icons.h b/lib/ephy-stock-icons.h index f6220d9c9..9f8b86e0a 100644 --- a/lib/ephy-stock-icons.h +++ b/lib/ephy-stock-icons.h @@ -18,6 +18,10 @@ * $Id$ */ +#if !defined (__EPHY_EPIPHANY_H_INSIDE__) && !defined (EPIPHANY_COMPILATION) +#error "Only can be included directly." +#endif + #ifndef EPHY_STOCK_ICONS_H #define EPHY_STOCK_ICONS_H diff --git a/lib/ephy-string.h b/lib/ephy-string.h index de7ebe292..78ee97a09 100644 --- a/lib/ephy-string.h +++ b/lib/ephy-string.h @@ -18,6 +18,10 @@ * $Id$ */ +#if !defined (__EPHY_EPIPHANY_H_INSIDE__) && !defined (EPIPHANY_COMPILATION) +#error "Only can be included directly." +#endif + #ifndef EPHY_STRING_H #define EPHY_STRING_H diff --git a/lib/ephy-time-helpers.h b/lib/ephy-time-helpers.h index a91788479..8d6eddd98 100644 --- a/lib/ephy-time-helpers.h +++ b/lib/ephy-time-helpers.h @@ -23,6 +23,10 @@ #include +#if !defined (__EPHY_EPIPHANY_H_INSIDE__) && !defined (EPIPHANY_COMPILATION) +#error "Only can be included directly." +#endif + #ifndef EPHY_TIME_HELPERS_H #define EPHY_TIME_HELPERS_H diff --git a/lib/ephy-zoom.h b/lib/ephy-zoom.h index 4a007b6d6..1008d98ac 100644 --- a/lib/ephy-zoom.h +++ b/lib/ephy-zoom.h @@ -18,6 +18,10 @@ * $Id$ */ +#if !defined (__EPHY_EPIPHANY_H_INSIDE__) && !defined (EPIPHANY_COMPILATION) +#error "Only can be included directly." +#endif + #ifndef EPHY_ZOOM_H #define EPHY_ZOOM_H diff --git a/lib/widgets/ephy-icon-entry.h b/lib/widgets/ephy-icon-entry.h index d51671457..5e8008b76 100644 --- a/lib/widgets/ephy-icon-entry.h +++ b/lib/widgets/ephy-icon-entry.h @@ -27,6 +27,10 @@ * $Id$ */ +#if !defined (__EPHY_EPIPHANY_H_INSIDE__) && !defined (EPIPHANY_COMPILATION) +#error "Only can be included directly." +#endif + #ifndef EPHY_ICON_ENTRY_H #define EPHY_ICON_ENTRY_H diff --git a/lib/widgets/ephy-location-entry.h b/lib/widgets/ephy-location-entry.h index de6d35e57..73b7b8498 100644 --- a/lib/widgets/ephy-location-entry.h +++ b/lib/widgets/ephy-location-entry.h @@ -20,6 +20,10 @@ * $Id$ */ +#if !defined (__EPHY_EPIPHANY_H_INSIDE__) && !defined (EPIPHANY_COMPILATION) +#error "Only can be included directly." +#endif + #ifndef EPHY_LOCATION_ENTRY_H #define EPHY_LOCATION_ENTRY_H diff --git a/lib/widgets/ephy-node-view.h b/lib/widgets/ephy-node-view.h index 1d27a5e19..5a5453890 100644 --- a/lib/widgets/ephy-node-view.h +++ b/lib/widgets/ephy-node-view.h @@ -133,4 +133,8 @@ void ephy_node_view_popup (EphyNodeView *view, G_END_DECLS +#if !defined (__EPHY_EPIPHANY_H_INSIDE__) && !defined (EPIPHANY_COMPILATION) +#error "Only can be included directly." +#endif + #endif /* EPHY_NODE_VIEW_H */ diff --git a/lib/widgets/ephy-search-entry.h b/lib/widgets/ephy-search-entry.h index abb90cc47..72ae570bd 100644 --- a/lib/widgets/ephy-search-entry.h +++ b/lib/widgets/ephy-search-entry.h @@ -18,6 +18,10 @@ * $Id$ */ +#if !defined (__EPHY_EPIPHANY_H_INSIDE__) && !defined (EPIPHANY_COMPILATION) +#error "Only can be included directly." +#endif + #ifndef EPHY_SEARCH_ENTRY_H #define EPHY_SEARCH_ENTRY_H diff --git a/lib/widgets/ephy-spinner.h b/lib/widgets/ephy-spinner.h index 87fad63c5..d04e00d85 100644 --- a/lib/widgets/ephy-spinner.h +++ b/lib/widgets/ephy-spinner.h @@ -22,6 +22,10 @@ * $Id$ */ +#if !defined (__EPHY_EPIPHANY_H_INSIDE__) && !defined (EPIPHANY_COMPILATION) +#error "Only can be included directly." +#endif + #ifndef EPHY_SPINNER_H #define EPHY_SPINNER_H diff --git a/lib/widgets/ephy-tree-model-node.h b/lib/widgets/ephy-tree-model-node.h index 476301bef..a2567a3ef 100644 --- a/lib/widgets/ephy-tree-model-node.h +++ b/lib/widgets/ephy-tree-model-node.h @@ -73,4 +73,8 @@ void ephy_tree_model_node_iter_from_node (EphyTreeModelNode *mod G_END_DECLS +#if !defined (__EPHY_EPIPHANY_H_INSIDE__) && !defined (EPIPHANY_COMPILATION) +#error "Only can be included directly." +#endif + #endif /* EPHY_TREE_MODEL_NODE_H */ diff --git a/lib/widgets/ephy-tree-model-sort.h b/lib/widgets/ephy-tree-model-sort.h index 103c36fa6..5260d9f87 100644 --- a/lib/widgets/ephy-tree-model-sort.h +++ b/lib/widgets/ephy-tree-model-sort.h @@ -17,6 +17,10 @@ * $Id$ */ +#if !defined (__EPHY_EPIPHANY_H_INSIDE__) && !defined (EPIPHANY_COMPILATION) +#error "Only can be included directly." +#endif + #ifndef EPHY_TREE_MODEL_SORT_H #define EPHY_TREE_MODEL_SORT_H diff --git a/lib/widgets/ephy-zoom-action.h b/lib/widgets/ephy-zoom-action.h index 169c1e48d..2c91c7c59 100644 --- a/lib/widgets/ephy-zoom-action.h +++ b/lib/widgets/ephy-zoom-action.h @@ -19,6 +19,10 @@ * $Id$ */ +#if !defined (__EPHY_EPIPHANY_H_INSIDE__) && !defined (EPIPHANY_COMPILATION) +#error "Only can be included directly." +#endif + #ifndef EPHY_ZOOM_ACTION_H #define EPHY_ZOOM_ACTION_H diff --git a/lib/widgets/ephy-zoom-control.h b/lib/widgets/ephy-zoom-control.h index 0b7163258..381d8a7aa 100644 --- a/lib/widgets/ephy-zoom-control.h +++ b/lib/widgets/ephy-zoom-control.h @@ -18,6 +18,10 @@ * $Id$ */ +#if !defined (__EPHY_EPIPHANY_H_INSIDE__) && !defined (EPIPHANY_COMPILATION) +#error "Only can be included directly." +#endif + #ifndef EPHY_ZOOM_CONTROL_H #define EPHY_ZOOM_CONTROL_H -- cgit v1.2.3