-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modules/kvs: deprecate json-c interfaces
Rename the kvs setter callbacks to RFC 7 approved names, and add pointer to typedef. Internally in libkvs, avoid some unnecessary type casting for KVS watch handling with different types of setters by making the generic callback pointer a (void *) instead of kvs_set_obj_f. Define kvsdir_t and kvsitr_t as structs rather than pointers to structs per RFC 7. Rename the KVS functions that take (json_object *) to have a _obj suffix and set the deprecated attribtue on them. kvs_get() -> kvs_get_obj() kvs_put() -> kvs_put_obj() kvs_watch() -> kvs_watch_obj() kvs_watch_once() -> kvs_watch_once_obj() kvsdir_get() -> kvsdir_get_obj() kvsdir_put() -> kvsdir_put_obj() Add back versions of the above that take a json string argument under the original names Update users.
- Loading branch information
Showing
19 changed files
with
358 additions
and
226 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.