Kaydet (Commit) 0f364710 authored tarafından Nick Treleaven's avatar Nick Treleaven

Apply patch from blackdog to add build_info and

msgwindow->compiler_add() to the plugin API (thanks).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1884 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst a7ce66e7
2007-09-17 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/build.h, src/plugindata.h, src/plugins.c:
Apply patch from blackdog to add build_info and
msgwindow->compiler_add() to the plugin API (thanks).
2007-09-13 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/callbacks.c:
......
......@@ -34,7 +34,7 @@ typedef enum // Geany Build Options
GBO_MAKE_OBJECT
} build_type;
typedef struct
typedef struct BuildInfo
{
build_type type; // current action(one of the above enumeration)
GPid pid; // process id of the spawned process
......@@ -45,7 +45,8 @@ typedef struct
extern BuildInfo build_info;
typedef struct
typedef struct BuildMenuItems
{
GtkWidget *menu;
GtkWidget *item_compile;
......
......@@ -71,12 +71,12 @@
/* The API version should be incremented whenever any plugin data types below are
* modified. */
static const gint api_version = 18;
static const gint api_version = 19;
/* The ABI version should be incremented whenever existing fields in the plugin
* data types below have to be changed or reordered. It should stay the same if fields
* are only appended, as this doesn't affect existing fields. */
static const gint abi_version = 9;
static const gint abi_version = 10;
/* This performs runtime checks that try to ensure:
* 1. Geany ABI data types are compatible with this plugin.
......@@ -148,6 +148,7 @@ typedef struct GeanyData
struct filetype **filetypes;
struct GeanyPrefs *prefs;
struct EditorPrefs *editor_prefs;
struct BuildInfo *build_info;
struct DocumentFuncs *document;
struct ScintillaFuncs *sci;
......@@ -226,7 +227,7 @@ ScintillaFuncs;
typedef struct TemplateFuncs
{
gchar* (*get_template_fileheader) (gint filetype_idx, const gchar *fname);
gchar* (*get_template_fileheader) (gint filetype_idx, const gchar *fname);
}
TemplateFuncs;
......@@ -267,6 +268,7 @@ SupportFuncs;
typedef struct MsgWinFuncs
{
void (*status_add) (const gchar *format, ...);
void (*compiler_add) (gint msg_color, const gchar *format, ...) G_GNUC_PRINTF (2, 3);
}
MsgWinFuncs;
......
......@@ -47,6 +47,8 @@
#include "msgwindow.h"
#include "prefs.h"
#include "geanyobject.h"
#include "build.h"
#ifdef G_OS_WIN32
# define PLUGIN_EXT "dll"
......@@ -147,7 +149,8 @@ static SupportFuncs support_funcs = {
};
static MsgWinFuncs msgwin_funcs = {
&msgwin_status_add
&msgwin_status_add,
&msgwin_compiler_add_fmt
};
......@@ -158,6 +161,7 @@ static GeanyData geany_data = {
NULL,
NULL,
NULL,
NULL,
&doc_funcs,
&sci_funcs,
......@@ -179,6 +183,7 @@ geany_data_init()
geany_data.filetypes = filetypes;
geany_data.prefs = &prefs;
geany_data.editor_prefs = &editor_prefs;
geany_data.build_info = &build_info;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment