~ubuntu-branches/ubuntu/trusty/augeas/trusty-updates

« back to all changes in this revision

Viewing changes to src/augeas.h

  • Committer: Package Import Robot
  • Author(s): Nicolas Valcárcel Scerpella
  • Date: 2011-11-10 09:20:03 UTC
  • mfrom: (1.4.2)
  • Revision ID: package-import@ubuntu.com-20111110092003-532kypb6beba5gmk
Tags: 0.9.0-1
* New upstream release
* Added build-arch and build-indep targets to d/rules. (Closes: #648156)
  Thanks to Niels Thykier for the patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
298
298
 */
299
299
int aug_print(const augeas *aug, FILE *out, const char *path);
300
300
 
 
301
/*
 
302
 * Function: aug_srun
 
303
 *
 
304
 * Run one or more newline-separated commands. The output of the commands
 
305
 * will be printed to OUT. Running just 'help' will print what commands are
 
306
 * available. Commands accepted by this are identical to what augtool
 
307
 * accepts.
 
308
 *
 
309
 * Returns:
 
310
 * the number of executed commands on success, -1 on failure, and -2 if a
 
311
 * 'quit' command was encountered
 
312
 */
 
313
int aug_srun(augeas *aug, FILE *out, const char *text);
 
314
 
301
315
/* Function: aug_close
302
316
 *
303
317
 * Close this Augeas instance and free any storage associated with
320
334
    AUG_ESYNTAX,        /* Syntax error in lens file */
321
335
    AUG_ENOLENS,        /* Lens lookup failed */
322
336
    AUG_EMXFM,          /* Multiple transforms */
323
 
    AUG_ENOSPAN         /* No span for this node */
 
337
    AUG_ENOSPAN,        /* No span for this node */
 
338
    AUG_EMVDESC,        /* Cannot move node into its descendant */
 
339
    AUG_ECMDRUN         /* Failed to execute command */
324
340
} aug_errcode_t;
325
341
 
326
342
/* Return the error code from the last API call */