aboutsummaryrefslogtreecommitdiff
path: root/src/ping903q.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2020-02-23 23:31:26 +0200
committerSergey Poznyakoff <gray@gnu.org>2020-02-23 23:31:26 +0200
commitb42866f337ced2942eca3d02a23813536c108452 (patch)
tree94f11eded557ee16fa20b8bf359d468e10ef8b44 /src/ping903q.c
parentd9dfecfa5f1d8e217f1f8a05a261afa5b5f4d6cd (diff)
downloadping903-b42866f337ced2942eca3d02a23813536c108452.tar.gz
ping903-b42866f337ced2942eca3d02a23813536c108452.tar.bz2
Save local additions in a local ip list file. Read it at startup.
* src/config.c (file_read_ip_list): New function. * src/defs.h (LOCAL_IP_LIST_FILE): New definition. * src/ping903.h (file_read_ip_list): New proto. * src/pinger.c (conf_hostping_count) (hostping_updated): New static variables. (hostping_add,hostping_delete): Raise the hostping_updated flag. (p903_init): Read in the local ip-list file, if it exists. Clear hostping_updated. (p903_scheduler): Save changes to the local ip-list file, if hostping_updated is set.
Diffstat (limited to 'src/ping903q.c')
0 files changed, 0 insertions, 0 deletions

Return to:

Send suggestions and report system problems to the System administrator.