Index

A |
| aug_close
| aug_cp
| aug_defnode
| aug_defvar
| aug_escape_name
| aug_flags
| aug_get
| aug_init
| aug_insert
| aug_label
| aug_load
| aug_load_file
| aug_match
| aug_mv
| aug_ns_attr
| aug_ns_count
| aug_ns_label
| aug_ns_value
| aug_print
| aug_rename
| aug_rm
| aug_save
| aug_set
| aug_setm
| aug_source
| aug_span
| aug_srun
| aug_text_retrieve
| aug_text_store
| aug_to_xml
| aug_transform
| augeas
| augeas.h
| AUGEAS_CLONE_IF_RENAME_FAILS
| AUGEAS_CONTEXT
| AUGEAS_FILES_TREE
| AUGEAS_LENS_DIR
| AUGEAS_LENS_ENV
| AUGEAS_META_FILES
| AUGEAS_META_ROOT
| AUGEAS_META_SAVE_MODE
| AUGEAS_META_TEXT
| AUGEAS_META_TREE
| AUGEAS_ROOT_ENV
| AUGEAS_SPAN_OPTION
C |
| close_memstream, memstream
E |
| Enumerations
| escape

> void aug_close( | augeas | * | aug | )

Close this Augeas instance and free any storage associated with it.

> int aug_cp( |  | augeas | * | aug,
> | const | char | * | src,
> | const | char | * | dst | )

Copy the node SRC to DST.

> 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, which must be non-NULL and evaluate to a nodeset.

> int aug_defvar( |  | augeas | * | aug,
> | const | char | * | name,
> | const | char | * | expr | )

Define a variable NAME whose value is the result of evaluating EXPR.

> int aug_escape_name( |  | augeas | * | aug,
> | const | char | * | in,
> |  | char | ** | out | )

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.
Flags to influence the behavior of Augeas.

> int aug_get( | const | augeas | * | aug,
> | const | char | * | path,
> | const | char | ** | value | )

Lookup the value associated with PATH.

> augeas *aug_init( | const | char | * | root,
> | const | char | * | loadpath,
> | unsigned | int |  | flags | )

Initialize the library.

> int aug_insert( |  | augeas | * | aug,
> | const | char | * | path,
> | const | char | * | label,
> |  | int |  | before | )

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_label( | const | augeas | * | aug,
> | const | char | * | path,
> | const | char | ** | label | )

Lookup the label associated with PATH.

> int aug_load( | augeas | * | aug | )

Load files into the tree.

> int aug_load_file( |  | augeas | * | aug,
> | const | char | * | file | )

Load a FILE using the lens that would ordinarily be used by aug_load, i.e.

> int aug_match( | const | augeas | * | aug,
> | const | char | * | path,
> |  | char | *** | matches | )

the number of matches of the path expression PATH in AUG.

> int aug_mv( |  | augeas | * | aug,
> | const | char | * | src,
> | const | char | * | dst | )

Move the node SRC to DST.

> int aug_ns_attr( | const | augeas | * | aug,
> | const | char | * | var,
> |  | int |  | i,
> | const | char | ** | value,
> | const | char | ** | label,
> |  | char | ** | file_path | )

Look up the ith node in the variable VAR and retrieve information about it.

> int aug_ns_count( | const | augeas | * | aug,
> | const | char | * | var | )

Return the number of nodes in variable VAR.

> int aug_ns_label( | const | augeas | * | aug,
> | const | char | * | var,
> |  | int |  | i,
> | const | char | ** | label,
> |  | int | * | index | )

Look up the LABEL and its INDEX amongst its siblings for the ith node in variable VAR.

> int aug_ns_value( | const | augeas | * | aug,
> | const | char | * | var,
> |  | int |  | i,
> | const | char | ** | value | )

Look up the VALUE of the ith node in variable VAR.

> int aug_print( | const | augeas | * | aug,
> |  | FILE | * | out,
> | const | char | * | path | )

Print each node matching PATH and its descendants to OUT.

> int aug_rename( |  | augeas | * | aug,
> | const | char | * | src,
> | const | char | * | lbl | )

Rename the label of all nodes matching SRC to LBL.

> int aug_rm( |  | augeas | * | aug,
> | const | char | * | path | )

Remove path and all its children.

> int aug_save( | augeas | * | aug | )

Write all pending changes to disk.

> int aug_set( |  | augeas | * | aug,
> | const | char | * | path,
> | const | char | * | value | )

Set the value associated with PATH to VALUE.

> int aug_setm( |  | augeas | * | aug,
> | const | char | * | base,
> | const | char | * | sub,
> | const | char | * | value | )

Set the value of multiple nodes in one operation.

> int aug_source( | const | augeas | * | aug,
> | const | char | * | path,
> |  | char | ** | file_path | )

For the node matching PATH, return the path to the node representing the file to which PATH belongs.

> 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 | )

Get the span according to input file of the node associated with PATH.

> int aug_srun( |  | augeas | * | aug,
> |  | FILE | * | out,
> | const | char | * | text | )

Run one or more newline-separated commands.

> int aug_text_retrieve( | struct | augeas | * | aug,
> | const | char | * | lens,
> | const | char | * | node_in,
> | const | char | * | path,
> | const | char | * | node_out | )

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_store( |  | augeas | * | aug,
> | const | char | * | lens,
> | const | char | * | node,
> | const | char | * | path | )

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_to_xml( | const | augeas | * | aug,
> | const | char | * | path,
> |  | xmlNode | ** | xmldoc,
> | unsigned | int |  | flags | )

Turn the Augeas tree(s) matching PATH into an XML tree XMLDOC.

> int aug_transform( |  | augeas | * | aug,
> | const | char | * | lens,
> | const | char | * | file,
> |  | int |  | excl | )

Add a transform for FILE using LENS.

> struct augeas

The data structure representing a connection to Augeas.
Control what save does when renaming the temporary file to its final destination fails with EXDEV or EBUSY: when this tree node exists, copy the file contents.
Context prepended to all non-absolute paths
The root for actual file contents
The default location for lens definitions
Information about files
The root directory
How we save files.
Information about text (see aug_text_store and aug_text_retrieve)
Augeas reports some information in this subtree
The env var that points to the chroot holding files we may modify.
Enable or disable node indexes

> int __aug_close_memstream( | struct | memstream | * | ms | )

Close a memstream.

> char *escape( | const | char | * | text,
> |  | int |  | cnt,
> | const | char | * | extra | )

Escape nonprintable characters within TEXT, similar to how it’s done in C string literals.
Close