1
0

variable.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. char *clish_variable__get_value(const char *name, const char *viewid,
  30. const clish_command_t * cmd, clish_pargv_t * pargv);
  31. /*-----------------
  32. * attributes
  33. *----------------- */
  34. #endif /* _clish_variable_h */
  35. /** @} clish_variable */