![]() |
![]() |
![]() |
Anjuta Developers Reference Manual | ![]() |
---|---|---|---|---|
#include <libanjuta/interfaces/ianjuta-plugin-factory.h> #define IANJUTA_TYPE_PLUGIN_FACTORY_ERROR enum IAnjutaPluginFactoryError; #define IANJUTA_PLUGIN_FACTORY_ERROR IAnjutaPluginFactory; IAnjutaPluginFactoryIface;
This interface is used to create all Anjuta plugin objects. It is already implemented inside Anjuta by an object able to load plugins written in C. In order to load plugins in other languages (or in a different way), a loader plugin implementing this interface must be written first, probably in C.
#define IANJUTA_TYPE_PLUGIN_FACTORY_ERROR (ianjuta_plugin_factory_error_get_type())
typedef enum { IANJUTA_PLUGIN_FACTORY_OK = 0, IANJUTA_PLUGIN_FACTORY_MISSING_LOCATION, IANJUTA_PLUGIN_FACTORY_MISSING_TYPE, IANJUTA_PLUGIN_FACTORY_MISSING_MODULE, IANJUTA_PLUGIN_FACTORY_INVALID_MODULE, IANJUTA_PLUGIN_FACTORY_MISSING_FUNCTION, IANJUTA_PLUGIN_FACTORY_INVALID_TYPE, IANJUTA_PLUGIN_FACTORY_UNKNOWN_ERROR, } IAnjutaPluginFactoryError;
These enumeration is used to specify errors.
Module file location is missing in .plugin file | |
Plugin type (just after double colon following location) is missing in .plugin file | |
Module file name not found, plugin module is probably not installed | |
Module does not contain registration function, library is not an anjuta plugin or is not for the right version | |
Module has not registered plugin type, library is not an anjuta plugin or not for the right version | |
Another error |
#define IANJUTA_PLUGIN_FACTORY_ERROR ianjuta_plugin_factory_error_quark()