variable.h 922 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. char *clish_variable__get_params(const clish_command_t * cmd, clish_pargv_t * pargv);
  29. /*-----------------
  30. * attributes
  31. *----------------- */
  32. #endif /* _clish_variable_h */
  33. /** @} clish_variable */