Close this Augeas instance and free any storage associated with it.
void aug_close( augeas * aug )
Copy the node SRC to DST.
int aug_cp( augeas * aug, const char * src, const char * dst )
Define a variable NAME whose value is the result of evaluating EXPR, which must be non-NULL and evaluate to a nodeset.
int aug_defnode( augeas * aug, const char * name, const char * expr, const char * value, int * created )
Define a variable NAME whose value is the result of evaluating EXPR.
int aug_defvar( augeas * aug, const char * name, const char * expr )
Escape special characters in a string such that it can be used as part of a path expressions and only matches a node named exactly IN.
int aug_escape_name( augeas * aug, const char * in, char ** out )
Lookup the value associated with PATH.
int aug_get( const augeas * aug, const char * path, const char ** value )
Initialize the library.
augeas *aug_init( const char * root, const char * loadpath, unsigned int flags )
Create a new sibling LABEL for PATH by inserting into the tree just before PATH if BEFORE == 1 or just after PATH if BEFORE == 0.
int aug_insert( augeas * aug, const char * path, const char * label, int before )
Lookup the label associated with PATH.
int aug_label( const augeas * aug, const char * path, const char ** label )
Load files into the tree.
int aug_load( augeas * aug )
Load a FILE using the lens that would ordinarily be used by aug_load, i.e.
int aug_load_file( augeas * aug, const char * file )
the number of matches of the path expression PATH in AUG.
int aug_match( const augeas * aug, const char * path, char *** matches )
Move the node SRC to DST.
int aug_mv( augeas * aug, const char * src, const char * dst )
Look up the ith node in the variable VAR and retrieve information about it.
int aug_ns_attr( const augeas * aug, const char * var, int i, const char ** value, const char ** label, char ** file_path )
Return the number of nodes in variable VAR.
int aug_ns_count( const augeas * aug, const char * var )
Look up the LABEL and its INDEX amongst its siblings for the ith node in variable VAR.
int aug_ns_label( const augeas * aug, const char * var, int i, const char ** label, int * index )
Look up the VALUE of the ith node in variable VAR.
int aug_ns_value( const augeas * aug, const char * var, int i, const char ** value )
Print each node matching PATH and its descendants to OUT.
int aug_print( const augeas * aug, FILE * out, const char * path )
Rename the label of all nodes matching SRC to LBL.
int aug_rename( augeas * aug, const char * src, const char * lbl )
Remove path and all its children.
int aug_rm( augeas * aug, const char * path )
Write all pending changes to disk.
int aug_save( augeas * aug )
Set the value associated with PATH to VALUE.
int aug_set( augeas * aug, const char * path, const char * value )
Set the value of multiple nodes in one operation.
int aug_setm( augeas * aug, const char * base, const char * sub, const char * value )
For the node matching PATH, return the path to the node representing the file to which PATH belongs.
int aug_source( const augeas * aug, const char * path, char ** file_path )
Get the span according to input file of the node associated with PATH.
int aug_span( augeas * aug, const char * path, char ** filename, unsigned int * label_start, unsigned int * label_end, unsigned int * value_start, unsigned int * value_end, unsigned int * span_start, unsigned int * span_end )
Run one or more newline-separated commands.
int aug_srun( augeas * aug, FILE * out, const char * text )
Transform the tree at PATH into a string using lens LENS and store it in the node NODE_OUT, assuming the tree was initially generated using the value of node NODE_IN.
int aug_text_retrieve( struct augeas * aug, const char * lens, const char * node_in, const char * path, const char * node_out )
Use the value of node NODE as a string and transform it into a tree using the lens LENS and store it in the tree at PATH, which will be overwritten.
int aug_text_store( augeas * aug, const char * lens, const char * node, const char * path )
Turn the Augeas tree(s) matching PATH into an XML tree XMLDOC.
int aug_to_xml( const augeas * aug, const char * path, xmlNode ** xmldoc, unsigned int flags )
Add a transform for FILE using LENS.
int aug_transform( augeas * aug, const char * lens, const char * file, int excl )
The data structure representing a connection to Augeas.
struct augeas
Close a memstream.
int __aug_close_memstream( struct memstream * ms )
Escape nonprintable characters within TEXT, similar to how it’s done in C string literals.
char *escape( const char * text, int cnt, const char * extra )