int vnc_job_add_rect(VncJob *job, int x, int y, int w, int h)

{

    VncRectEntry *entry = g_malloc0(sizeof(VncRectEntry));



    entry->rect.x = x;

    entry->rect.y = y;

    entry->rect.w = w;

    entry->rect.h = h;



    vnc_lock_queue(queue);

    QLIST_INSERT_HEAD(&job->rectangles, entry, next);

    vnc_unlock_queue(queue);

    return 1;

}

int vnc_job_add_rect(VncJob *job, int x, int y, int w, int h)

{

    VncRectEntry *entry = g_malloc0(sizeof(VncRectEntry));



    entry->rect.x = x;

    entry->rect.y = y;

    entry->rect.w = w;

    entry->rect.h = h;



    vnc_lock_queue(queue);

    QLIST_INSERT_HEAD(&job->rectangles, entry, next);

    vnc_unlock_queue(queue);

    return 1;

}

    VncRectEntry *entry = g_malloc0(sizeof(VncRectEntry));
int FUNC_0(VncJob *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4)

{

    VncRectEntry *entry = g_malloc0(sizeof(VncRectEntry));



    entry->rect.VAR_1 = VAR_1;

    entry->rect.VAR_2 = VAR_2;

    entry->rect.VAR_3 = VAR_3;

    entry->rect.VAR_4 = VAR_4;



    vnc_lock_queue(queue);

    QLIST_INSERT_HEAD(&VAR_0->rectangles, entry, next);

    vnc_unlock_queue(queue);

    return 1;

}

int FUNC_0(VncJob *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4)
{ VncRectEntry *entry = g_malloc0(sizeof(VncRectEntry)); entry->rect.VAR_1 = VAR_1; entry->rect.VAR_2 = VAR_2; entry->rect.VAR_3 = VAR_3; entry->rect.VAR_4 = VAR_4; vnc_lock_queue(queue); QLIST_INSERT_HEAD(&VAR_0->rectangles, entry, next); vnc_unlock_queue(queue); return 1; }