From d4aab06f9ba8bc0534303ce4b59b837a687be848 Mon Sep 17 00:00:00 2001 From: Matthew Brush Date: Mon, 14 Mar 2016 14:21:57 -0700 Subject: [PATCH] Move some documentation to show up in API docs. The Doxygen comments were on the non-public global filetypes_array and filetypes_by_title variables instead of the GeanyData members which are exposed to the plugin API and reference manual. --- src/filetypes.c | 14 -------------- src/plugindata.h | 16 ++++++++++++++-- 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/src/filetypes.c b/src/filetypes.c index 4606c99f8..1fa986eaa 100644 --- a/src/filetypes.c +++ b/src/filetypes.c @@ -55,22 +55,8 @@ #define GEANY_FILETYPE_SEARCH_LINES 2 /* lines of file to search for filetype */ -/** Dynamic array of filetype pointers - * - * List the list is dynamically expanded for custom filetypes filetypes so don't expect - * the list of known filetypes to be a constant. - * - * @elementtype{GeanyFiletype} - * */ GPtrArray *filetypes_array = NULL; - static GHashTable *filetypes_hash = NULL; /* Hash of filetype pointers based on name keys */ - -/** List of filetype pointers sorted by name, but with @c filetypes_index(GEANY_FILETYPES_NONE) - * first, as this is usually treated specially. - * The list does not change (after filetypes have been initialized), so you can use - * @code g_slist_nth_data(filetypes_by_title, n) @endcode and expect the same result at different times. - * @see filetypes_get_sorted_by_name(). */ GSList *filetypes_by_title = NULL; diff --git a/src/plugindata.h b/src/plugindata.h index 0c30bb1d4..50f49c6ea 100644 --- a/src/plugindata.h +++ b/src/plugindata.h @@ -188,7 +188,14 @@ typedef struct GeanyData * * @see documents. */ GPtrArray *documents_array; - GPtrArray *filetypes_array; /**< Dynamic array of GeanyFiletype pointers. @elementtype{GeanyFiletype} */ + /** Dynamic array of filetype pointers + * + * List the list is dynamically expanded for custom filetypes filetypes so don't expect + * the list of known filetypes to be a constant. + * + * @elementtype{GeanyFiletype} + */ + GPtrArray *filetypes_array; struct GeanyPrefs *prefs; /**< General settings */ struct GeanyInterfacePrefs *interface_prefs; /**< Interface settings */ struct GeanyToolbarPrefs *toolbar_prefs; /**< Toolbar settings */ @@ -198,7 +205,12 @@ typedef struct GeanyData struct GeanyToolPrefs *tool_prefs; /**< Tool settings */ struct GeanyTemplatePrefs *template_prefs; /**< Template settings */ gpointer *_compat; /* Remove field on next ABI break (abi-todo) */ - GSList *filetypes_by_title; /**< See filetypes.h#filetypes_by_title. */ + /** List of filetype pointers sorted by name, but with @c filetypes_index(GEANY_FILETYPES_NONE) + * first, as this is usually treated specially. + * The list does not change (after filetypes have been initialized), so you can use + * @code g_slist_nth_data(filetypes_by_title, n) @endcode and expect the same result at different times. + * @see filetypes_get_sorted_by_name(). */ + GSList *filetypes_by_title; } GeanyData; -- 2.11.4.GIT