sway/include/swaygrab/json.h
Björn Esser c08c805ecd Adaptions for API change in json-c v0.13
Lift restriction on json-c <= 0.12.1

ipc-server: Acquire ownership of referenced json_object properly

When adding a referenced json_object with an unknown lifetime to
another json_object, it must be done with a wrapped call to
json_object_get() to acquire the ownership of that json_object.
2017-12-17 15:53:22 -05:00

10 lines
366 B
C

#include "sway_json_helper.h"
#include "wlc/wlc.h"
void init_json_tree(int socketfd);
void free_json_tree();
char *get_focused_output();
char *create_payload(const char *output, struct wlc_geometry *g);
struct wlc_geometry *get_container_geometry(json_object *container);
json_object *get_focused_container();
json_object *get_output_container(const char *output);