-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
169 additions
and
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#include "jsonrpc.h" | ||
|
||
#include <stddef.h> | ||
|
||
struct jsonrpc_request jsonrpc_request_create(struct json_value id, | ||
struct s8 method, | ||
struct json_object *params) { | ||
return (struct jsonrpc_request){ | ||
.id = id, | ||
.method = method, | ||
.params = params, | ||
}; | ||
} | ||
|
||
struct jsonrpc_response jsonrpc_parse_response(const uint8_t *buf, | ||
uint64_t size) { | ||
(void)buf; | ||
(void)size; | ||
return (struct jsonrpc_response){}; | ||
} | ||
|
||
struct s8 jsonrpc_request_to_string(const struct jsonrpc_request *request) { | ||
(void)request; | ||
return (struct s8){.l = 0, .s = NULL}; | ||
} |
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