Event callback function with extra object as argument

Description
I am working on Spinbox widget make it generic for objects. But the problem is with callback of increment and decrement button i want to pass spinbox object as an argument for button callback. But not find any helpful material.

What MCU/Processor/Board and compiler are you using?

ESP32

What LVGL version are you using?

lv_arduino i think 7.11

What do you want to achieve?

Make generic function for objects

What have you tried so far?

nothing much

void lv_ex_spinbox_1(lv_obj_t *spinbox, lv_obj_t *scr, int min, int max, int x, int y)
{
    spinbox = lv_spinbox_create(scr, NULL);
    lv_spinbox_set_range(spinbox, x, y);
    lv_spinbox_set_digit_format(spinbox, 3, 0);
    lv_spinbox_step_prev(spinbox);
    lv_obj_set_width(spinbox, 100);
    lv_obj_set_pos(spinbox, x, y);

    lv_coord_t h = lv_obj_get_height(spinbox);
    lv_obj_t * btn = lv_btn_create(lv_scr_act(), NULL);
    lv_obj_set_size(btn, h, h);
    lv_obj_align(btn, spinbox, LV_ALIGN_OUT_RIGHT_MID, 5, 0);
    lv_theme_apply(btn, LV_THEME_SPINBOX_BTN);
    lv_obj_set_style_local_value_str(btn, LV_BTN_PART_MAIN, LV_STATE_DEFAULT, LV_SYMBOL_PLUS);
    lv_obj_set_event_cb(btn, lv_spinbox_increment_event_cb);

    btn = lv_btn_create(lv_scr_act(), btn);
    lv_obj_align(btn, spinbox, LV_ALIGN_OUT_LEFT_MID, -5, 0);
    lv_obj_set_event_cb(btn, lv_spinbox_decrement_event_cb);
    lv_obj_set_style_local_value_str(btn, LV_BTN_PART_MAIN, LV_STATE_DEFAULT, LV_SYMBOL_MINUS);
}

static void lv_spinbox_increment_event_cb(lv_obj_t * btn, lv_event_t e)
{
    if(e == LV_EVENT_SHORT_CLICKED || e == LV_EVENT_LONG_PRESSED_REPEAT) {
        lv_spinbox_increment(spinbox);
    }
}

static void lv_spinbox_decrement_event_cb(lv_obj_t * btn, lv_event_t e)
{
    if(e == LV_EVENT_SHORT_CLICKED || e == LV_EVENT_LONG_PRESSED_REPEAT) {
        lv_spinbox_decrement(spinbox);
    }
}

I want
callback:
lv_obj_set_event_cb(btn, lv_spinbox_decrement_event_cb(spinbox_to_be decrement));

event function:
lv_obj_set_event_cb(btn, lv_spinbox_decrement_event_cb, lv_object_t *spinbox);

Just want to use single btn to increment in spinbox by declare spinbox in a lv_ex_spinbox_1 function.