mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-15 17:47:09 +00:00
move extract_object_args_to_sub() to a more convenient place
This commit is contained in:
parent
0d2770ab33
commit
46bd87b05e
@ -317,6 +317,8 @@ void set_update_interval(double interval);
|
||||
|
||||
void parse_conky_vars(struct text_object *, const char *, char *, int);
|
||||
|
||||
void extract_object_args_to_sub(struct text_object *, const char *);
|
||||
|
||||
void generate_text_internal(char *, int, struct text_object);
|
||||
|
||||
int percent_print(char *, int, unsigned);
|
||||
|
@ -1798,6 +1798,13 @@ int extract_variable_text_internal(struct text_object *retval, const char *const
|
||||
return 0;
|
||||
}
|
||||
|
||||
void extract_object_args_to_sub(struct text_object *obj, const char *args)
|
||||
{
|
||||
obj->sub = (struct text_object *)malloc(sizeof(struct text_object));
|
||||
memset(obj->sub, 0, sizeof(struct text_object));
|
||||
extract_variable_text_internal(obj->sub, args);
|
||||
}
|
||||
|
||||
/* Frees the list of text objects root points to. */
|
||||
void free_text_objects(struct text_object *root)
|
||||
{
|
||||
|
@ -103,13 +103,6 @@ int inlist(struct ll_string* front, char* string) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
void extract_object_args_to_sub(struct text_object *obj, const char *args)
|
||||
{
|
||||
obj->sub = malloc(sizeof(struct text_object));
|
||||
memset(obj->sub, 0, sizeof(struct text_object));
|
||||
extract_variable_text_internal(obj->sub, args);
|
||||
}
|
||||
|
||||
void print_pid_chroot(struct text_object *obj, char *p, int p_max_size) {
|
||||
char pathbuf[64];
|
||||
char buf[max_user_text];
|
||||
|
@ -36,9 +36,6 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* XXX: this should go global */
|
||||
void extract_object_args_to_sub(struct text_object *, const char *);
|
||||
|
||||
void print_pid_chroot(struct text_object *obj, char *p, int p_max_size);
|
||||
void print_pid_cmdline(struct text_object *obj, char *p, int p_max_size);
|
||||
void print_pid_cwd(struct text_object *obj, char *p, int p_max_size);
|
||||
|
Loading…
Reference in New Issue
Block a user