int pakfire_json_add_string(struct pakfire* pakfire,
struct json_object* json, const char* name, const char* value);
int pakfire_json_add_integer(struct pakfire* pakfire,
- struct json_object* json, const char* name, int value);
+ struct json_object* json, const char* name, int64_t value);
int pakfire_json_add_string_array(struct pakfire* pakfire,
struct json_object* json, const char* name, char** array);
}
int pakfire_json_add_integer(struct pakfire* pakfire, struct json_object* json,
- const char* name, int value) {
+ const char* name, int64_t value) {
// Convert integer to JSON object
struct json_object* object = json_object_new_int64(value);
if (!object)