summaryrefslogtreecommitdiffstats
path: root/cvp/3rd_party
AgeCommit message (Expand)AuthorFilesLines
2017-11-09[cvp-web] Bugfix: use '_id' as the primary key of the data rather than the 'T...grakiss2-62/+67
2017-11-08[cvp-web] Allow accounts with role 'reviewer' to submit resutsgrakiss1-2/+2
2017-11-02Bugfix: remove redundancy linegrakiss1-1/+0
2017-11-01Remove approve / no approve options for reviewersgrakiss1-0/+6
2017-11-01[cvp-web] Show some SUT hardware info in 'My Results'grakiss6-4/+105
2017-10-19[web-cvp]Additional columns in ‘My Results’grakiss9-9/+2987
2017-10-20[web-cvp]share result by emailgrakiss2-2/+2
2017-10-19[web-cvp]Direct drill-down for failed testsgrakiss2-1/+15
2017-10-09[web-cvp]missing files in web sitesgrakiss3-0/+612
2017-10-09Merge "[web-cvp]osinteros is counted as optional test case"Leo wang1-1/+1
2017-09-30[web-cvp]osinteros is counted as optional test casegrakiss1-1/+1
2017-09-30[web-cvp]failed to expand test resultsgrakiss1-2/+2
2017-09-28[cvp-web]remove workflow on homepagegrakiss3-71/+3
2017-09-28add api&web services for cvpgrakiss380-0/+105343
{ color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ }
/*
 * QEMU VNC display driver
 *
 * From libvncserver/rfb/rfbproto.h
 * Copyright (C) 2005 Rohit Kumar, Johannes E. Schindelin
 * Copyright (C) 2000-2002 Constantin Kaplinsky.  All Rights Reserved.
 * Copyright (C) 2000 Tridia Corporation.  All Rights Reserved.
 * Copyright (C) 1999 AT&T Laboratories Cambridge.  All Rights Reserved.
 *
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */

#ifndef VNC_JOBS_H
#define VNC_JOBS_H

/* Jobs */
VncJob *vnc_job_new(VncState *vs);
int vnc_job_add_rect(VncJob *job, int x, int y, int w, int h);
void vnc_job_push(VncJob *job);
bool vnc_has_job(VncState *vs);
void vnc_jobs_clear(VncState *vs);
void vnc_jobs_join(VncState *vs);

void vnc_jobs_consume_buffer(VncState *vs);
void vnc_start_worker_thread(void);

/* Locks */
static inline int vnc_trylock_display(VncDisplay *vd)
{
    return qemu_mutex_trylock(&vd->mutex);
}

static inline void vnc_lock_display(VncDisplay *vd)
{
    qemu_mutex_lock(&vd->mutex);
}

static inline void vnc_unlock_display(VncDisplay *vd)
{
    qemu_mutex_unlock(&vd->mutex);
}

static inline void vnc_lock_output(VncState *vs)
{
    qemu_mutex_lock(&vs->output_mutex);
}

static inline void vnc_unlock_output(VncState *vs)
{
    qemu_mutex_unlock(&vs->output_mutex);
}

#endif /* VNC_JOBS_H */