cctools
taskvine_json.h
Go to the documentation of this file.
1 /*
2 Copyright (C) 2022- The University of Notre Dame
3 This software is distributed under the GNU General Public License.
4 See the file COPYING for details.
5 */
6 
7 #ifndef TASKVINE_JSON_H
8 #define TASKVINE_JSON_H
9 
23 struct vine_manager;
24 
29 struct vine_manager *vine_json_create(const char *str);
30 
68 int vine_json_submit(struct vine_manager *m, const char *str);
69 
84 char *vine_json_wait(struct vine_manager *m, int timeout);
85 
97 int vine_json_empty( struct vine_manager *m );
98 
106 int vine_json_hungry( struct vine_manager *m );
107 
108 
114 char *vine_json_remove(struct vine_manager *m, int id );
115 
120 char *vine_json_get_status(struct vine_manager *m );
121 
126 void vine_json_delete( struct vine_manager *m );
127 
128 #endif
int vine_json_submit(struct vine_manager *m, const char *str)
Submit a task to a manager.
int vine_json_hungry(struct vine_manager *m)
Determine whether the manager is empty.
void vine_json_delete(struct vine_manager *m)
Delete a vine_manager object.
char * vine_json_remove(struct vine_manager *m, int id)
Remove a task from the manager.
int vine_json_empty(struct vine_manager *m)
Determine whether the manager is 'hungry' for more tasks.
struct vine_manager * vine_json_create(const char *str)
Create a new manager object.
char * vine_json_wait(struct vine_manager *m, int timeout)
Wait for a task to complete.
char * vine_json_get_status(struct vine_manager *m)
Get the status for a given manager.