Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
queue.h
Package: unicap-0.2.19.tar.gz [view]
Upload User: shyika
Upload Date: 2017-11-25
Package Size: 1227k
Code Size: 2k
Category:
Video Capture
Development Platform:
Unix_Linux
- /*
- unicap
- Copyright (C) 2004 Arne Caspari
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
- #ifndef __QUEUE_H__
- #define __QUEUE_H__
- #include <sys/time.h>
- #include <semaphore.h>
- struct _unicap_queue
- {
- sem_t sema;
- sem_t *psema;
- void * data;
- struct _unicap_queue *next;
- } unicap_queue;
- typedef struct _unicap_queue unicap_queue_t;
- void __attribute__ ((visibility("hidden")))
- _insert_back_queue( struct _unicap_queue *queue, struct _unicap_queue *entry );
- void __attribute__ ((visibility("hidden")))
- _insert_front_queue( struct _unicap_queue *queue, struct _unicap_queue *entry );
- __attribute__ ((visibility("hidden"))) struct _unicap_queue *
- _get_front_queue( struct _unicap_queue *queue );
- void __attribute__ ((visibility("hidden")))
- _move_to_queue( struct _unicap_queue *from_queue, struct _unicap_queue *to_queue );
- void __attribute__ ((visibility("hidden")))
- _init_queue( struct _unicap_queue *queue );
- int __attribute__ ((visibility("hidden")))
- _queue_get_size( struct _unicap_queue *queue );
- #endif//__QUEUE_H__