Revision: 4876 http://geany.svn.sourceforge.net/geany/?rev=4876&view=rev Author: ntrel Date: 2010-05-05 16:26:25 +0000 (Wed, 05 May 2010)
Log Message: ----------- Add symbols_get_context_separator() to plugin API (patch by Colomban Wendling, thanks).
Modified Paths: -------------- trunk/ChangeLog trunk/plugins/geanyfunctions.h trunk/src/plugindata.h trunk/src/plugins.c trunk/src/symbols.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2010-05-05 15:05:57 UTC (rev 4875) +++ trunk/ChangeLog 2010-05-05 16:26:25 UTC (rev 4876) @@ -9,6 +9,10 @@ Add {project}, {description} template wildcards (#2954737). * doc/geany.txt, doc/geany.html: Divide template wildcards into groups. + * src/plugindata.h, src/plugins.c, src/symbols.c, + plugins/geanyfunctions.h: + Add symbols_get_context_separator() to plugin API (patch by Colomban + Wendling, thanks).
2010-05-03 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/plugins/geanyfunctions.h =================================================================== --- trunk/plugins/geanyfunctions.h 2010-05-05 15:05:57 UTC (rev 4875) +++ trunk/plugins/geanyfunctions.h 2010-05-05 16:26:25 UTC (rev 4876) @@ -372,5 +372,7 @@ geany_functions->p_stash->stash_group_display #define stash_group_update \ geany_functions->p_stash->stash_group_update +#define symbols_get_context_separator \ + geany_functions->p_symbols->symbols_get_context_separator
#endif
Modified: trunk/src/plugindata.h =================================================================== --- trunk/src/plugindata.h 2010-05-05 15:05:57 UTC (rev 4875) +++ trunk/src/plugindata.h 2010-05-05 16:26:25 UTC (rev 4876) @@ -50,7 +50,7 @@ enum { /** The Application Programming Interface (API) version, incremented * whenever any plugin data types are modified or appended to. */ - GEANY_API_VERSION = 184, + GEANY_API_VERSION = 185,
/** The Application Binary Interface (ABI) version, incremented whenever * existing fields in the plugin data types have to be changed or reordered. */ @@ -239,6 +239,7 @@ struct ScintillaFuncs *p_scintilla; /**< See ScintillaFuncs */ struct MsgWinFuncs *p_msgwin; /**< See msgwindow.h */ struct StashFuncs *p_stash; /**< See stash.h */ + struct SymbolsFuncs *p_symbols; /**< See symbols.h */ } GeanyFunctions;
@@ -637,6 +638,14 @@ StashFuncs;
+/* See symbols.h */ +typedef struct SymbolsFuncs +{ + const gchar* (*symbols_get_context_separator)(gint ft_id); +} +SymbolsFuncs; + + /* Deprecated aliases */ #ifndef GEANY_DISABLE_DEPRECATED
Modified: trunk/src/plugins.c =================================================================== --- trunk/src/plugins.c 2010-05-05 15:05:57 UTC (rev 4875) +++ trunk/src/plugins.c 2010-05-05 16:26:25 UTC (rev 4876) @@ -57,6 +57,7 @@ #include "main.h" #include "toolbar.h" #include "stash.h" +#include "symbols.h" #include "keyfile.h" #include "win32.h" #include "pluginutils.h" @@ -326,6 +327,10 @@ &stash_group_update };
+static SymbolsFuncs symbols_funcs = { + &symbols_get_context_separator +}; + static GeanyFunctions geany_functions = { &doc_funcs, &sci_funcs, @@ -347,7 +352,8 @@ &plugin_funcs, &scintilla_funcs, &msgwin_funcs, - &stash_funcs + &stash_funcs, + &symbols_funcs };
static GeanyData geany_data;
Modified: trunk/src/symbols.c =================================================================== --- trunk/src/symbols.c 2010-05-05 15:05:57 UTC (rev 4875) +++ trunk/src/symbols.c 2010-05-05 16:26:25 UTC (rev 4876) @@ -21,6 +21,11 @@ * $Id$ */
+/** + * @file symbols.h + * Tag-related functions. + **/ + /* * Symbol Tree and TagManager-related convenience functions. * TagManager parses tags for each document, and also adds them to the workspace (session). @@ -269,6 +274,13 @@ }
+/** Gets the context separator used by the tag manager for a particular file + * type. + * @param ft_id File type identifier. + * @return The context separator string. + * + * @since 0.19 + */ const gchar *symbols_get_context_separator(gint ft_id) { switch (ft_id)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.