ps_title.h 1.6 KB

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