1
0

variable.h 836 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * variable.h
  3. */
  4. /**
  5. \ingroup clish
  6. \defgroup clish_variable variable
  7. @{
  8. \brief This utility is used to expand variables within a string.
  9. */
  10. #ifndef _clish_variable_h
  11. #define _clish_variable_h
  12. #include "clish/shell.h"
  13. #include "clish/command.h"
  14. #include "clish/pargv.h"
  15. /*=====================================
  16. * VARIABLE INTERFACE
  17. *===================================== */
  18. /*-----------------
  19. * meta functions
  20. *----------------- */
  21. char *clish_variable_expand(const char *string,
  22. const char *viewid,
  23. const clish_command_t * cmd, clish_pargv_t * pargv);
  24. /*-----------------
  25. * methods
  26. *----------------- */
  27. char *clish_variable__get_line(const clish_command_t * cmd, clish_pargv_t * pargv);
  28. /*-----------------
  29. * attributes
  30. *----------------- */
  31. #endif /* _clish_variable_h */
  32. /** @} clish_variable */