emview_device.h from EmStar at Krugle
Show emview_device.h syntax highlighted
/*
*
* Copyright (c) 2003 The Regents of the University of California. All
* rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* - Neither the name of the University nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS''
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
#ifndef __EMVIEW_DEVICE_H__
#define __EMVIEW_DEVICE_H__
typedef struct emview_dev_node_ext {
emview_dev_node_t super;
node_id_t node_id;
QUEUE_ELEMENT_DECL(ptrs, struct emview_dev_node_ext);
} emview_dev_node_ext_t;
struct emview_device {
emview_device_opts_t opts;
int data_id;
int active:1;
/* per-node data */
GHashTable *node_data;
QUEUE_DECL(nodes, emview_dev_node_ext_t);
QUEUE_ELEMENT_DECL(ptrs, struct emview_device);
};
typedef struct emview_device_list {
QUEUE_DECL(devices, emview_device_t);
emproxy_multi_context_t *emproxy_event; /* the event that gets data from emproxy */
g_event_t *device_recompute_timer;
int session_nonce;
status_context_t *stat;
} emview_device_list_t;
#define EMVIEW_SIMCONFIG_DATA_ID 1
#endif
See more files for this project here