type stringclasses 5
values | content stringlengths 9 163k |
|---|---|
defines | #define StationMaxDeviceNameSize 16 /* max size of station's IP name */ |
defines | #define StationMaxSpeedDials 10 /* max number of speed dial numbers allowed on a station */ |
defines | #define StationMaxVersionSize 16 /* max chars in version string */ |
defines | #define StationMaxButtonTemplateSize 42 /* max button template size */ |
defines | #define StationMaxDisplayTextSize 33 /* max text size in DisplayText message */ |
defines | #define StationMaxPorts 10 /* max number of ports on one device */ |
defines | #define StationDateTemplateSize 6 /* date template in the form M/D/Y, D/M/Y, ... */ |
defines | #define StationMaxServerNameSize 48 /* max size of server name */ |
defines | #define StationMaxServers 5 /* max servers */ |
defines | #define StationMaxDeviceDirnums 1024 /* max dir numbers per SCM device */ |
defines | #define StationMaxDirnums 64 /* max dir numbers per physical station (also used in db request msg); */ |
defines | #define StationMaxSoftKeyLabelSize 16 /* max label size in the message */ |
defines | #define StationMaxSoftKeyDefinition 32 /* max number of soft key definition in the message */ |
defines | #define StationMaxSoftKeySetDefinition 16 /* max number of soft key set definition in the message */ |
defines | #define StationMaxSoftKeyIndex 16 /* max number of soft key indices in a station soft key set */ |
defines | #define StationMaxDisplayPromptStatusSize 32 /* max status text size in the display status message */ |
defines | #define StationMaxDisplayNotifySize 32 /* max prompt text size in the display prompt message */ |
defines | #define StationMaxAlarmMessageSize 80 /* max size for an alarm message */ |
defines | #define StationMaxUserDeviceDataSize 2000 /* max size of user data between application and device */ |
defines | #define StationMaxConference 32 |
defines | #define AppConferenceIDSize 32 |
defines | #define AppDataSize 24 |
defines | #define MAX_CUSTOM_PICTURES 6 |
defines | #define MAX_LAYOUT_WITH_SAME_SERVICE 5 |
defines | #define MAX_SERVICE_TYPE 4 |
defines | #define DeviceMaxCapabilities 18 /* max capabilities allowed in Cap response message */ |
defines | #define StationMaxCapabilities DeviceMaxCapabilities |
defines | #define StationMaxVideoCapabilities 10 |
defines | #define StationMaxDataCapabilities 5 |
defines | #define MAX_LEVEL_PREFERENCE 4 |
defines | #define MaxAnnouncementList 32 |
defines | #define StationMaxMonitorParties 16 /* Max Monitor Bridge whisper matrix parties, rm, M&R in Parche */ |
defines | #define StationMaxServiceURLSize 256 /* max number of service URLs length */ |
defines | #define MAX_PICTURE_FORMAT 5 |
defines | #define MAX_REFERENCE_PICTURE 4 |
defines | #define MAX_SKINNY_MESSAGES_IN_PACKET 10 |
functions | guint
get_skinny_pdu_len(packet_info *pinfo _U_, tvbuff_t *tvb, int offset)
{
guint32 hdr_data_length;
/*
* Get the length of the SCCP packet.
*/
hdr_data_length = tvb_get_letohl(tvb, offset);
/*
* That length doesn't include the length of the header itself;
* add that in.
*/
return hdr_data_... |
functions | void
dissect_skinny_xml(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, const gint start, gint length)
{
proto_item *item = NULL;
proto_tree *subtree = NULL;
tvbuff_t *next_tvb;
dissector_handle_t handle = NULL;
item = proto_tree_add_item(tree, hf_skinny_xmlData, tvb, start... |
functions | void
dissect_skinny_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
int offset = 0;
gboolean is_video = FALSE; /* FIX ME: need to indicate video or not */
/* Header fields */
guint32 hdr_data_length;
guint32 hdr_version;
guint32 data_messageid;
/* guint32 data_size; */
guint ... |
functions | else if (hdr_version == CM7_MSG_TYPE_A || hdr_version == CM7_MSG_TYPE_B || hdr_version == CM7_MSG_TYPE_C) {
proto_tree_add_item(skinny_tree, hf_skinny_ORCStatus, tvb, offset+12, 4, ENC_LITTLE_ENDIAN);
/*Assume the field of next 4 bytes is IP Version*/
ipversion = tvb_get_ntohl(tvb, offset+16);
... |
functions | else if (hdr_version == CM7_MSG_TYPE_A || hdr_version == CM7_MSG_TYPE_B || hdr_version == CM7_MSG_TYPE_C)
{
proto_tree_add_item(skinny_tree, hf_skinny_conferenceID, tvb, offset+12, 4, ENC_LITTLE_ENDIAN);
proto_tree_add_item(skinny_tree, hf_skinny_passThruPartyID, tvb, offset+16, 4, ... |
functions | else if(hdr_version == CM7_MSG_TYPE_B || hdr_version == CM7_MSG_TYPE_A)
{/* I'm not sure. Not enough examples. */
/* 8x party numbers */
count = tvb_strnlen(tvb, i, -1)+1;
proto_tree_add_item(skinny_tree, hf_skinny_callingPartyNumber, tvb, i, count, ENC_ASCII|ENC_NA);
i +... |
functions | gboolean
dissect_skinny(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
{
/* The general structure of a packet: {IP-Header|TCP-Header|n*SKINNY} |
functions | void
proto_register_skinny(void)
{
/* Setup list of header fields */
static hf_register_info hf[] = {
{ &hf_skinny_data_length,
{ "Data length", "skinny.data_length",
FT_UINT32, BASE_DEC, NULL, 0x0,
"Number of bytes in the data portion.",
HFILL } |
functions | void
proto_reg_handoff_skinny(void)
{
static gboolean skinny_prefs_initialized = FALSE;
dissector_handle_t skinny_handle;
if (!skinny_prefs_initialized) {
rtp_handle = find_dissector("rtp");
/* Skinny content type and internet media type used by other dissectors are the same */
#if !defined(LEAN_HTTP)... |
includes | #include <linux/videodev2.h> |
includes | #include <media/v4l2-common.h> |
includes | #include <media/saa7115.h> |
includes | #include <linux/errno.h> |
includes | #include <linux/slab.h> |
structs | struct pvr2_v4l_decoder {
struct pvr2_i2c_handler handler;
struct pvr2_decoder_ctrl ctrl;
struct pvr2_i2c_client *client;
struct pvr2_hdw *hdw;
unsigned long stale_mask;
}; |
structs | struct pvr2_v4l_decoder_ops {
void (*update)(struct pvr2_v4l_decoder *);
int (*check)(struct pvr2_v4l_decoder *);
}; |
functions | void set_input(struct pvr2_v4l_decoder *ctxt)
{
struct pvr2_hdw *hdw = ctxt->hdw;
struct v4l2_routing route;
pvr2_trace(PVR2_TRACE_CHIPS,"i2c v4l2 set_input(%d)",hdw->input_val);
switch(hdw->input_val) {
case PVR2_CVAL_INPUT_TV:
route.input = SAA7115_COMPOSITE4;
break;
case PVR2_CVAL_INPUT_COMPOSITE:
route... |
functions | int check_input(struct pvr2_v4l_decoder *ctxt)
{
struct pvr2_hdw *hdw = ctxt->hdw;
return hdw->input_dirty != 0;
} |
functions | void set_audio(struct pvr2_v4l_decoder *ctxt)
{
u32 val;
struct pvr2_hdw *hdw = ctxt->hdw;
pvr2_trace(PVR2_TRACE_CHIPS,"i2c v4l2 set_audio %d",
hdw->srate_val);
switch (hdw->srate_val) {
default:
case V4L2_MPEG_AUDIO_SAMPLING_FREQ_48000:
val = 48000;
break;
case V4L2_MPEG_AUDIO_SAMPLING_FREQ_44100:
v... |
functions | int check_audio(struct pvr2_v4l_decoder *ctxt)
{
struct pvr2_hdw *hdw = ctxt->hdw;
return hdw->srate_dirty != 0;
} |
functions | void decoder_detach(struct pvr2_v4l_decoder *ctxt)
{
ctxt->client->handler = NULL;
ctxt->hdw->decoder_ctrl = NULL;
kfree(ctxt);
} |
functions | int decoder_check(struct pvr2_v4l_decoder *ctxt)
{
unsigned long msk;
unsigned int idx;
for (idx = 0; idx < ARRAY_SIZE(decoder_ops); idx++) {
msk = 1 << idx;
if (ctxt->stale_mask & msk) continue;
if (decoder_ops[idx].check(ctxt)) {
ctxt->stale_mask |= msk;
} |
functions | void decoder_update(struct pvr2_v4l_decoder *ctxt)
{
unsigned long msk;
unsigned int idx;
for (idx = 0; idx < ARRAY_SIZE(decoder_ops); idx++) {
msk = 1 << idx;
if (!(ctxt->stale_mask & msk)) continue;
ctxt->stale_mask &= ~msk;
decoder_ops[idx].update(ctxt);
} |
functions | int decoder_detect(struct pvr2_i2c_client *cp)
{
/* Attempt to query the decoder - let's see if it will answer */
struct v4l2_tuner vt;
int ret;
memset(&vt,0,sizeof(vt));
ret = pvr2_i2c_client_cmd(cp,VIDIOC_G_TUNER,&vt);
return ret == 0; /* Return true if it answered */
} |
functions | void decoder_enable(struct pvr2_v4l_decoder *ctxt,int fl)
{
pvr2_trace(PVR2_TRACE_CHIPS,"i2c v4l2 decoder_enable(%d)",fl);
pvr2_v4l2_cmd_stream(ctxt->client,fl);
} |
functions | int decoder_describe(struct pvr2_v4l_decoder *ctxt,char *buf,unsigned int cnt)
{
return scnprintf(buf,cnt,"handler: pvrusb2-video-v4l");
} |
functions | int pvr2_i2c_decoder_v4l_setup(struct pvr2_hdw *hdw,
struct pvr2_i2c_client *cp)
{
struct pvr2_v4l_decoder *ctxt;
if (hdw->decoder_ctrl) return 0;
if (cp->handler) return 0;
if (!decoder_detect(cp)) return 0;
ctxt = kzalloc(sizeof(*ctxt),GFP_KERNEL);
if (!ctxt) return 0;
ctxt->handler.func_data = ct... |
includes |
#include <stdio.h> |
includes | #include <stdlib.h> |
includes | #include <unistd.h> |
includes | #include <sys/types.h> |
includes | #include <sys/stat.h> |
includes | #include <sys/ioctl.h> |
includes | #include <fcntl.h> |
includes | #include <errno.h> |
includes | #include <string.h> |
main | int main(void)
{
TEEC_Context context;
TEEC_Session session;
TEEC_Operation operation;
TEEC_Result result;
TEEC_UUID svc_id = OTZ_SVC_VIRTUAL_KEYBOARD;
uint32_t len;
char testData[256];
result = TEEC_InitializeContext(
NULL,
&context);
if(result != ... |
includes | #include <fc_config.h> |
includes |
#include <assert.h> |
includes | #include <stdarg.h> |
includes | #include <stdio.h> |
includes | #include <stdlib.h> |
includes | #include <string.h> |
includes | #include <signal.h> |
defines | #define HEADER "<html><head><link rel=\"stylesheet\" type=\"text/css\" "\ |
defines | #define SECTION_BEGIN "<h3>" |
defines | #define SECTION_END "</h3>" |
defines | #define IMAGE_BEGIN "<img src=\"" |
defines | #define IMAGE_END ".png\">" |
defines | #define SEPARATOR " " |
defines | #define TAIL "</body></html>" |
defines | #define HEADER " " |
defines | #define SECTION_BEGIN "===" |
defines | #define SECTION_END "===" |
defines | #define IMAGE_BEGIN "[[Image:" |
defines | #define IMAGE_END ".png]]" |
defines | #define SEPARATOR "----\n\n" |
defines | #define TAIL " " |
functions | void popup_help_dialog_string(const char *item)
{
/* Empty stub. */
} |
functions | void popdown_help_dialog(void)
{
/* Empty stub. */
} |
functions | bool manual_command(void)
{
FILE *doc;
char filename[40];
enum manuals manuals;
struct connection my_conn;
/* Default client access. */
connection_common_init(&my_conn);
my_conn.access_level = ALLOW_CTRL;
/* Reset aifill to zero */
game.info.aifill = 0;
if (!load_rulesets()) {
/* Failed to lo... |
functions | else if (pterrain->irrigation_result == T_NONE) {
fprintf(doc, "<tr><td>%s</td></tr>\n", _("impossible"));
} |
functions | else if (pterrain->mining_result == T_NONE) {
fprintf(doc, "<tr><td>%s</td></tr>\n", _("impossible"));
} |
functions | else if (showhelp) {
struct cmdhelp *help = cmdhelp_new(argv[0]);
#ifdef DEBUG
cmdhelp_add(help, "d",
/* TRANS: "debug" is exactly what user must type, do not translate. */
_("debug NUM"),
_("Set debug log level (%d to %d, or %d:file1,min,max:...)"),
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.