Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
ps_status.h48 linesDownload Raw Back to utils
1/*-------------------------------------------------------------------------2 *3 * ps_status.h4 *5 * Declarations for backend/utils/misc/ps_status.c6 *7 * src/include/utils/ps_status.h8 *9 *-------------------------------------------------------------------------10 */11 12#ifndef PS_STATUS_H13#define PS_STATUS_H14 15/* disabled on Windows as the performance overhead can be significant */16#ifdef WIN3217#define DEFAULT_UPDATE_PROCESS_TITLE false18#else19#define DEFAULT_UPDATE_PROCESS_TITLE true20#endif21 22extern PGDLLIMPORT bool update_process_title;23 24extern char **save_ps_display_args(int argc, char **argv);25 26extern void init_ps_display(const char *fixed_part);27 28extern void set_ps_display_suffix(const char *suffix);29 30extern void set_ps_display_remove_suffix(void);31 32extern void set_ps_display_with_len(const char *activity, size_t len);33 34/*35 * set_ps_display36 *		inlined to allow strlen to be evaluated during compilation when37 *		passing string constants.38 */39static inline void40set_ps_display(const char *activity)41{42	set_ps_display_with_len(activity, strlen(activity));43}44 45extern const char *get_ps_display(int *displen);46 47#endif							/* PS_STATUS_H */48 
codekingpro/portable-devtools · Team Ai