![]() |
![]() |
![]() |
Anjuta Developers Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
#include <libanjuta/interfaces/ianjuta-builder.h> #define IANJUTA_BUILDER_ROOT_URI #define IANJUTA_BUILDER_CONFIGURATION_DEBUG #define IANJUTA_BUILDER_CONFIGURATION_OPTIMIZED #define IANJUTA_BUILDER_CONFIGURATION_PROFILING enum IAnjutaBuilderError; typedef IAnjutaBuilderHandle; void (*IAnjutaBuilderCallback) (GObject *sender
,IAnjutaBuilderHandle command
,GError *err
,gpointer user_data
); struct IAnjutaBuilderIface; GQuark ianjuta_builder_error_quark (void
); IAnjutaBuilderHandle ianjuta_builder_build (IAnjutaBuilder *obj
,const gchar *uri
,IAnjutaBuilderCallback callback
,gpointer user_data
,GError **err
); void ianjuta_builder_cancel (IAnjutaBuilder *obj
,IAnjutaBuilderHandle handle
,GError **err
); const gchar * ianjuta_builder_get_uri_configuration (IAnjutaBuilder *obj
,const gchar *uri
,GError **err
); IAnjutaBuilderHandle ianjuta_builder_is_built (IAnjutaBuilder *obj
,const gchar *uri
,IAnjutaBuilderCallback callback
,gpointer user_data
,GError **err
); GList * ianjuta_builder_list_configuration (IAnjutaBuilder *obj
,GError **err
);
#define IANJUTA_BUILDER_ROOT_URI "build_root_uri"
Build directory uri. It is the same than the project_root_uri for in source build.
#define IANJUTA_BUILDER_CONFIGURATION_DEBUG "Debug"
Name of debugging configutation.
#define IANJUTA_BUILDER_CONFIGURATION_OPTIMIZED "Optimized"
Name of optimized configutation.
#define IANJUTA_BUILDER_CONFIGURATION_PROFILING "Profiling"
Name of profiling configutation.
typedef enum { IANJUTA_BUILDER_SUCCEED = 0, IANJUTA_BUILDER_FAILED, IANJUTA_BUILDER_CANCELED = 256, IANJUTA_BUILDER_ABORTED, IANJUTA_BUILDER_INTERRUPTED, IANJUTA_BUILDER_TERMINATED, IANJUTA_BUILDER_UNKNOWN_TARGET, IANJUTA_BUILDER_UNKNOWN_ERROR, IANJUTA_BUILDER_OTHER_ERROR } IAnjutaBuilderError;
Possible build errors
Build succeeded | |
Build failed | |
Build was canceld | |
Build aborted | |
Build interruped | |
Build interruped | |
The specified target is unknown | |
Unknown Error | |
Other Error (no unknown ;-)) |
void (*IAnjutaBuilderCallback) (GObject *sender
,IAnjutaBuilderHandle command
,GError *err
,gpointer user_data
);
struct IAnjutaBuilderIface { GTypeInterface g_iface; IAnjutaBuilderHandle (*build) (IAnjutaBuilder *obj, const gchar *uri, IAnjutaBuilderCallback callback, gpointer user_data, GError **err); void (*cancel) (IAnjutaBuilder *obj, IAnjutaBuilderHandle handle, GError **err); const gchar* (*get_uri_configuration) (IAnjutaBuilder *obj, const gchar *uri, GError **err); IAnjutaBuilderHandle (*is_built) (IAnjutaBuilder *obj, const gchar *uri, IAnjutaBuilderCallback callback, gpointer user_data, GError **err); GList* (*list_configuration) (IAnjutaBuilder *obj, GError **err); };
IAnjutaBuilderHandle ianjuta_builder_build (IAnjutaBuilder *obj
,const gchar *uri
,IAnjutaBuilderCallback callback
,gpointer user_data
,GError **err
);
Build the specified target. When the command if finished, the callback function is called if defined.
|
Self |
|
target uri |
|
callback called when command is finished |
|
data passed to the callback |
|
Error propagation and reporting. |
Returns : |
non null command handle if succeed |
void ianjuta_builder_cancel (IAnjutaBuilder *obj
,IAnjutaBuilderHandle handle
,GError **err
);
Cancel specified command. The callback function will not be called.
|
Self |
|
handle of the command to cancel |
|
Error propagation and reporting. |
const gchar * ianjuta_builder_get_uri_configuration (IAnjutaBuilder *obj
,const gchar *uri
,GError **err
);
Get the configuration corresponding to the target uri.
|
Self |
|
target uri |
|
Error propagation and reporting. |
Returns : |
The configuration name or NULL if the corresponding configuration cannot be found. |
IAnjutaBuilderHandle ianjuta_builder_is_built (IAnjutaBuilder *obj
,const gchar *uri
,IAnjutaBuilderCallback callback
,gpointer user_data
,GError **err
);
Check if the corresponding target is up to date or not. This command doesn't display anything. If this command cannot be implemented, it is possible to return always TRUE. When the command is finished, the callback function is called if defined.
|
Self |
|
target uri |
|
callback called when command is finished |
|
data passed to the callback |
|
Error propagation and reporting. |
Returns : |
non null command handle if succeed |
GList * ianjuta_builder_list_configuration (IAnjutaBuilder *obj
,GError **err
);
List all defined configuration. These names returned are the internal non localized names for the following predefined configuration: Debug, Profiling, Optimized. The default configuration has no name and is not returned.
|
Self |
|
Error propagation and reporting. |
Returns : |
a list configuration name. The names are owned by the plugin, so only the list has to be free using g_list_free. [element-type utf8][transfer container] |