Example #1
0
static struct json *exit_server(struct jrpc_context * ctx, struct json *params,
				 struct json *id)
{
	jrpc_server_stop(&my_server);
	return json_create_string("Bye!");
}
Example #2
0
cJSON * exit_server(jrpc_context * ctx, cJSON * params, cJSON *id) {
	jrpc_server_stop(&my_server);
	return cJSON_CreateString("Bye!");
}
Example #3
0
json_t* exit_server(jrpc_context *ctx, json_t *params, json_t *id) {
  jrpc_server_stop(&my_server);
  return json_string("Bye!");
}