Subversion Repositories shark

Rev

Rev 7 | Rev 80 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 pj 1
/*
2
 * Project: S.Ha.R.K.
3
 *
4
 * Coordinators:
5
 *   Giorgio Buttazzo    <giorgio@sssup.it>
6
 *   Paolo Gai           <pj@gandalf.sssup.it>
7
 *
8
 * Authors     :
9
 *   Paolo Gai           <pj@gandalf.sssup.it>
10
 *   Massimiliano Giorgi <massy@gandalf.sssup.it>
11
 *   Luca Abeni          <luca@gandalf.sssup.it>
12
 *   (see the web pages for full authors list)
13
 *
14
 * ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy)
15
 *
16
 * http://www.sssup.it
17
 * http://retis.sssup.it
18
 * http://shark.sssup.it
19
 */
20
 
21
/*
22
 * Copyright (C) 1999 Massimiliano Giorgi
23
 *
24
 * This program is free software; you can redistribute it and/or modify
25
 * it under the terms of the GNU General Public License as published by
26
 * the Free Software Foundation; either version 2 of the License, or
27
 * (at your option) any later version.
28
 *
29
 * This program is distributed in the hope that it will be useful,
30
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
31
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
32
 * GNU General Public License for more details.
33
 *
34
 * You should have received a copy of the GNU General Public License
35
 * along with this program; if not, write to the Free Software
36
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
37
 *
38
 */
39
 
40
/*
10 pj 41
 * CVS :        $Id: queues.h,v 1.3 2002-10-28 07:53:40 pj Exp $
2 pj 42
 *
43
 * File:        $File$
10 pj 44
 * Revision:    $Revision: 1.3 $
45
 * Last update: $Date: 2002-10-28 07:53:40 $
2 pj 46
 */
47
 
48
#ifndef __TRACE_QUEUES_H
49
#define __TRACE_QUEUES_H
50
 
51
#include <ll/sys/types.h>
52
#include <trace/types.h>
53
 
54
typedef struct TAGtrc_queue_t {
55
  int type;
56
  trc_event_t *(*get)(void *);
57
  int (*post)(void *);
58
  void *data;
59
} trc_queue_t;
60
 
7 pj 61
#define TRC_DUMMY_QUEUE       0
2 pj 62
#include <trace/qdummy.h>
63
 
7 pj 64
#define TRC_FIXED_QUEUE       1
65
#define TRC_DOSFS_FIXED_QUEUE 2
2 pj 66
#include <trace/qfixed.h>
67
 
7 pj 68
#define TRC_CIRCULAR_QUEUE    3
2 pj 69
#include <trace/qcirc.h>
70
 
7 pj 71
#define TRC_UDP_QUEUE         4
2 pj 72
#include <trace/qudp.h>
73
 
10 pj 74
#define TRC_QUEUETYPESNUMBER  5
2 pj 75
 
76
/* uniq!=0 append a this unique number to name */
77
void trc_create_name(char *basename, int uniq, char *pathname);
78
 
79
/*--*/
80
 
81
int trc_register_queuetype(int queuetype,
82
                           int(*create)(trc_queue_t *,void *),
83
                           int(*activate)(void *,int),
84
                           int(*terminate)(void *));
85
 
86
int trc_create_queue(int queuetype, void *arg);                            
87
 
88
#endif