diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2016-02-24 13:29:15 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2016-02-24 13:32:57 +0200 |
commit | 9912557fa9b4c8596c6e9f69857e9a616b4f4f33 (patch) | |
tree | 348bcb58c3af3c5138abe6e3bdfda5232fc1e54c /src/ctl.c | |
parent | 4049c8b3ba918949106ef8e96ac5e767f4b9406b (diff) | |
download | pies-9912557fa9b4c8596c6e9f69857e9a616b4f4f33.tar.gz pies-9912557fa9b4c8596c6e9f69857e9a616b4f4f33.tar.bz2 |
Changes in prog structure
* src/prog.h (prog): Remove .facility. Use facility from
the component.
(active,wait,stop): Move from union into the main struct.
All uses changed.
Diffstat (limited to 'src/ctl.c')
-rw-r--r-- | src/ctl.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1836,3 +1836,3 @@ prog_active (struct prog *prog) | |||
1836 | { | 1836 | { |
1837 | if (prog->v.p.active) | 1837 | if (prog->active) |
1838 | { | 1838 | { |
@@ -1841,6 +1841,6 @@ prog_active (struct prog *prog) | |||
1841 | prog = progman_locate (prog->v.p.comp->tcpmux); | 1841 | prog = progman_locate (prog->v.p.comp->tcpmux); |
1842 | return prog && prog->v.p.active; | 1842 | return prog && prog->active; |
1843 | } | 1843 | } |
1844 | } | 1844 | } |
1845 | return prog->v.p.active; | 1845 | return prog->active; |
1846 | } | 1846 | } |
@@ -1914,3 +1914,3 @@ fun_stop (struct json_value *result, struct prog *prog) | |||
1914 | { | 1914 | { |
1915 | if (!prog->v.p.active) | 1915 | if (!prog->active) |
1916 | { | 1916 | { |
@@ -1921,3 +1921,3 @@ fun_stop (struct json_value *result, struct prog *prog) | |||
1921 | 1921 | ||
1922 | prog->v.p.active = 0; | 1922 | prog->active = 0; |
1923 | progman_stop_component (&prog); | 1923 | progman_stop_component (&prog); |
@@ -1974,3 +1974,3 @@ fun_start (struct json_value *result, struct prog *prog) | |||
1974 | } | 1974 | } |
1975 | prog->v.p.active = 1; | 1975 | prog->active = 1; |
1976 | return 0; | 1976 | return 0; |