/usr/include/libgoffice-0.8/goffice/app/module-plugin-defs.h is in libgoffice-0.8-dev 0.8.17-8.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | #ifndef GOFFICE_MODULE_PLUGIN_DEFS_H
#define GOFFICE_MODULE_PLUGIN_DEFS_H
#include <goffice/app/go-plugin.h>
#include <goffice/app/goffice-app.h>
#include <gmodule.h>
G_BEGIN_DECLS
typedef struct {
char const *key; /* object being versioned */
char const *version; /* version id (strict equality is required) */
} GOPluginModuleDepend;
typedef struct {
guint32 const magic_number;
guint32 const num_depends;
} GOPluginModuleHeader;
/* Cheesy api versioning
* bump this when external api changes. eventually we will just push this out
* into the module's link dependencies */
#define GOFFICE_API_VERSION "0.0"
#define GOFFICE_MODULE_PLUGIN_MAGIC_NUMBER 0x476e756d
/* convenience header for goffice plugins */
#define GOFFICE_PLUGIN_MODULE_HEADER \
G_MODULE_EXPORT GOPluginModuleDepend const go_plugin_depends [] = { \
{ "goffice", GOFFICE_API_VERSION } \
}; \
G_MODULE_EXPORT GOPluginModuleHeader const go_plugin_header = \
{ GOFFICE_MODULE_PLUGIN_MAGIC_NUMBER, G_N_ELEMENTS (go_plugin_depends) }
/* the folowwing two functions are declared here, but are not
* implemented in libgoffice. Each plugin must implement one
* instance of both. */
void go_plugin_init (GOPlugin *plugin, GOCmdContext *cc);
void go_plugin_shutdown (GOPlugin *plugin, GOCmdContext *cc);
G_END_DECLS
#endif /* GOFFICE_MODULE_PLUGIN_DEFS_H */
|