Add symbols_get_context_separator() to plugin API (patch by Colomban
Wendling, thanks). git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4876 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
c3383930eb
commit
fdfbd2efb4
@ -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>
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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 @@ typedef struct GeanyFunctions
|
||||
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 @@ typedef struct StashFuncs
|
||||
StashFuncs;
|
||||
|
||||
|
||||
/* See symbols.h */
|
||||
typedef struct SymbolsFuncs
|
||||
{
|
||||
const gchar* (*symbols_get_context_separator)(gint ft_id);
|
||||
}
|
||||
SymbolsFuncs;
|
||||
|
||||
|
||||
/* Deprecated aliases */
|
||||
#ifndef GEANY_DISABLE_DEPRECATED
|
||||
|
||||
|
||||
@ -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 @@ static StashFuncs stash_funcs = {
|
||||
&stash_group_update
|
||||
};
|
||||
|
||||
static SymbolsFuncs symbols_funcs = {
|
||||
&symbols_get_context_separator
|
||||
};
|
||||
|
||||
static GeanyFunctions geany_functions = {
|
||||
&doc_funcs,
|
||||
&sci_funcs,
|
||||
@ -347,7 +352,8 @@ static GeanyFunctions geany_functions = {
|
||||
&plugin_funcs,
|
||||
&scintilla_funcs,
|
||||
&msgwin_funcs,
|
||||
&stash_funcs
|
||||
&stash_funcs,
|
||||
&symbols_funcs
|
||||
};
|
||||
|
||||
static GeanyData geany_data;
|
||||
|
||||
@ -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 @@ GString *symbols_find_tags_as_string(GPtrArray *tags_array, guint tag_types, gin
|
||||
}
|
||||
|
||||
|
||||
/** 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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user