Move get_display_num_from_display to string_calls module

This commit is contained in:
matt335672
2021-04-13 12:11:19 +01:00
parent e7cb5bd64a
commit 86c87b6f15
7 changed files with 58 additions and 148 deletions
+10
View File
@@ -103,6 +103,16 @@ g_text2bool(const char *s);
char *
g_bytes_to_hexdump(const char *src, int len);
/**
* Extracts the display number from an X11 display string
*
* @param Display string (i.e. g_getenv("DISPLAY"))
*
* @result <0 if the string could not be parsed, or >=0 for a display number
*/
int
g_get_display_num_from_display(const char *display_text);
int g_strlen(const char *text);
const char *g_strchr(const char *text, int c);
char *g_strcpy(char *dest, const char *src);