|  |  |  | Anjuta Developers Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
#include <libanjuta/interfaces/ianjuta-environment.h> #define IANJUTA_TYPE_ENVIRONMENT_ERROR #define IANJUTA_ENVIRONMENT_ERROR enum IAnjutaEnvironmentError; struct IAnjutaEnvironmentIface; GQuark ianjuta_environment_error_quark (void); GType ianjuta_environment_get_type (void); gchar * ianjuta_environment_get_real_directory (IAnjutaEnvironment *obj,gchar *dir,GError **err); gboolean ianjuta_environment_override (IAnjutaEnvironment *obj,gchar **dirp,gchar ***argvp,gchar ***envp,GError **err);
#define IANJUTA_TYPE_ENVIRONMENT_ERROR (ianjuta_environment_error_get_type())
typedef enum {
	IANJUTA_ENVIRONMENT_CONFIG,
	IANJUTA_ENVIRONMENT_OTHER_ERROR
} IAnjutaEnvironmentError;
Possible build errors
struct IAnjutaEnvironmentIface {
	GTypeInterface g_iface;
	
	gchar* (*get_real_directory) (IAnjutaEnvironment *obj, gchar *dir, GError **err);
	gboolean (*override) (IAnjutaEnvironment *obj, gchar **dirp,  gchar ***argvp,  gchar ***envp, GError **err);
};
gchar * ianjuta_environment_get_real_directory (IAnjutaEnvironment *obj,gchar *dir,GError **err);
Convert a directory in the environment to a directory outside. It is useful when the environment use chroot. Take care that the input directory string is freed using g_free but and you need to free the output string when not needed.
| 
 | Self | 
| 
 | A directory path in the environment | 
| 
 | Error propagation and reporting. | 
| Returns : | The directory path outside the environment | 
gboolean ianjuta_environment_override (IAnjutaEnvironment *obj,gchar **dirp,gchar ***argvp,gchar ***envp,GError **err);
Override a command to work in another build environment
| 
 | Self | 
| 
 | a pointer on the working directory | 
| 
 | a pointer on a NULL terminated string array containing the command name in argv[0] and all its argument | 
| 
 | a pointer on a NULL terminated string array containing all additional environment variable used by the command | 
| 
 | Error propagation and reporting. | 
| Returns : | FALSE if there is an error. |