diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-12 17:20:08 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-12 17:20:08 +0200 |
| commit | 1160cdb21e0b667269299853cb47a4aa88948dc3 (patch) | |
| tree | b6828fc587bf0f868d9eb7a54518a46a9afc1a32 /src/json.h | |
| parent | dependabot: fix a typo (diff) | |
| download | cimple-1160cdb21e0b667269299853cb47a4aa88948dc3.tar.gz cimple-1160cdb21e0b667269299853cb47a4aa88948dc3.zip | |
unify my .clang-format files
Diffstat (limited to 'src/json.h')
| -rw-r--r-- | src/json.h | 40 |
1 files changed, 20 insertions, 20 deletions
@@ -12,34 +12,34 @@ #include <stdint.h> -void libjson_free(struct json_object *); +void libjson_free(struct json_object*); -const char *libjson_to_string(struct json_object *); -const char *libjson_to_string_pretty(struct json_object *); -struct json_object *libjson_from_string(const char *); +const char* libjson_to_string(struct json_object*); +const char* libjson_to_string_pretty(struct json_object*); +struct json_object* libjson_from_string(const char*); -int libjson_clone(const struct json_object *, const char *key, struct json_object **value); +int libjson_clone(const struct json_object*, const char* key, struct json_object** value); -int libjson_send(struct json_object *, int fd); -struct json_object *libjson_recv(int fd); +int libjson_send(struct json_object*, int fd); +struct json_object* libjson_recv(int fd); -int libjson_new_object(struct json_object **); -int libjson_new_array(struct json_object **); +int libjson_new_object(struct json_object**); +int libjson_new_array(struct json_object**); -int libjson_has(const struct json_object *, const char *key); +int libjson_has(const struct json_object*, const char* key); -int libjson_get(const struct json_object *, const char *key, struct json_object **value); -int libjson_get_string(const struct json_object *, const char *key, const char **value); -int libjson_get_int(const struct json_object *, const char *key, int64_t *value); +int libjson_get(const struct json_object*, const char* key, struct json_object** value); +int libjson_get_string(const struct json_object*, const char* key, const char** value); +int libjson_get_int(const struct json_object*, const char* key, int64_t* value); -int libjson_set(struct json_object *, const char *key, struct json_object *value); -int libjson_set_string(struct json_object *, const char *key, const char *value); -int libjson_set_int(struct json_object *, const char *key, int64_t value); +int libjson_set(struct json_object*, const char* key, struct json_object* value); +int libjson_set_string(struct json_object*, const char* key, const char* value); +int libjson_set_int(struct json_object*, const char* key, int64_t value); -int libjson_set_const_key(struct json_object *, const char *, struct json_object *value); -int libjson_set_string_const_key(struct json_object *, const char *, const char *value); -int libjson_set_int_const_key(struct json_object *, const char *, int64_t value); +int libjson_set_const_key(struct json_object*, const char*, struct json_object* value); +int libjson_set_string_const_key(struct json_object*, const char*, const char* value); +int libjson_set_int_const_key(struct json_object*, const char*, int64_t value); -int libjson_append(struct json_object *arr, struct json_object *elem); +int libjson_append(struct json_object* arr, struct json_object* elem); #endif |
