diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2014-11-27 17:48:38 -0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2014-11-27 17:48:38 -0200 |
commit | cda6bdd56b54f4ab9da15e559edce9591ef12ce1 (patch) | |
tree | 1f420c7910e3d6acbef594a7391e8fe91545eb63 /unsupported | |
parent | ff4d1b466fba116d0750a815a1d517dbc24b4b43 (diff) |
Add ProcessList_delete to the variable interface.
Diffstat (limited to 'unsupported')
-rw-r--r-- | unsupported/UnsupportedProcessList.c | 5 | ||||
-rw-r--r-- | unsupported/UnsupportedProcessList.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/unsupported/UnsupportedProcessList.c b/unsupported/UnsupportedProcessList.c index 6fdca53f..fca9a760 100644 --- a/unsupported/UnsupportedProcessList.c +++ b/unsupported/UnsupportedProcessList.c @@ -26,6 +26,11 @@ ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidWhiteList) { return this; } +void ProcessList_delete(ProcessList* this) { + ProcessList_done(this); + free(this); +} + void ProcessList_scan(ProcessList* this) { (void) this; // stub! diff --git a/unsupported/UnsupportedProcessList.h b/unsupported/UnsupportedProcessList.h index d95c8e5c..ac9d99fe 100644 --- a/unsupported/UnsupportedProcessList.h +++ b/unsupported/UnsupportedProcessList.h @@ -13,6 +13,8 @@ in the source distribution for its full text. ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidWhiteList); +void ProcessList_delete(ProcessList* this); + void ProcessList_scan(ProcessList* this); #endif |