Anyone worked with Tizen’s clipboard on native side? (C/C++)
I wasted over 6 hours trying to figure out how i can get text from clipboard (cbhm) without crashes and no idea, So i came here to ask about this because docs didn’t explained…
I get stuck when working with the callback of getting text as buffer…
cbhm_selection_get which is function used to get data, but i need to get it from the callback with type of
int cbhm_selection_get(cbhm_h cbhm_handle, cbhm_sel_type_e type, cbhm_selection_data_cb callback, void* user_data);
And here is the problem, How i can use this properly? And is this an array or dyanmically allocated string?
typedef int (*cbhm_selection_data_cb)(cbhm_h cbhm_handle, const char *buf, size_t len, void *user_data)
Also, If anyone can give me full info on both (The callback and the function) along with example i would be thankful!