Constructor
GgitConfignew_from_file
Declaration [src]
GgitConfig*
ggit_config_new_from_file (
GFile* file,
GError** error
)
Description [src]
Create a new config from a single on disk file. This is a convenience
API and is exactly the same as creating an empty GgitConfig
using
ggit_config_new and adding the file with #ggit_config_add_file. The
level will be set to #GGIT_CONFIG_LEVEL_LOCAL. If the config could not be
loaded this function returns NULL
and error
will be set accordingly.
Parameters
file |
GFile |
The file to load. |
|
The data is owned by the caller of the function. | |
error |
GError ** |
The return location for a GError* , or NULL . |
Return value
Returns: | GgitConfig |
A |
|
The caller of the function takes ownership of the data, and is responsible for freeing it. |