ps_title.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. +----------------------------------------------------------------------+
  3. | Copyright (c) The PHP Group |
  4. +----------------------------------------------------------------------+
  5. | This source file is subject to version 3.01 of the PHP license, |
  6. | that is bundled with this package in the file LICENSE, and is |
  7. | available through the world-wide-web at the following url: |
  8. | https://www.php.net/license/3_01.txt |
  9. | If you did not receive a copy of the PHP license and are unable to |
  10. | obtain it through the world-wide-web, please send a note to |
  11. | license@php.net so we can mail you a copy immediately. |
  12. +----------------------------------------------------------------------+
  13. | Authors: Keyur Govande <kgovande@gmail.com> |
  14. +----------------------------------------------------------------------+
  15. */
  16. #ifndef PS_TITLE_HEADER
  17. #define PS_TITLE_HEADER
  18. #define PS_TITLE_SUCCESS 0
  19. #define PS_TITLE_NOT_AVAILABLE 1
  20. #define PS_TITLE_NOT_INITIALIZED 2
  21. #define PS_TITLE_BUFFER_NOT_AVAILABLE 3
  22. #define PS_TITLE_WINDOWS_ERROR 4
  23. extern char** save_ps_args(int argc, char** argv);
  24. extern int set_ps_title(const char* new_str);
  25. extern int get_ps_title(int* displen, const char** string);
  26. extern const char* ps_title_errno(int rc);
  27. extern int is_ps_title_available(void);
  28. extern void cleanup_ps_args(char **argv);
  29. #endif // PS_TITLE_HEADER