Add writeback call to objdb
[openais.git] / include / mar_evt.h
blob1896926c177b6c46083461895fa848b738eedf33
1 /*
2 * Copyright (c) 2004-2005 Mark Haverkamp
3 * Copyright (c) 2004-2005 Open Source Development Lab
5 * All rights reserved.
7 * This software licensed under BSD license, the text of which follows:
8 *
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions are met:
12 * - Redistributions of source code must retain the above copyright notice,
13 * this list of conditions and the following disclaimer.
14 * - Redistributions in binary form must reproduce the above copyright notice,
15 * this list of conditions and the following disclaimer in the documentation
16 * and/or other materials provided with the distribution.
17 * - Neither the name of the Open Source Developement Lab nor the names of its
18 * contributors may be used to endorse or promote products derived from this
19 * software without specific prior written permission.
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
25 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
31 * THE POSSIBILITY OF SUCH DAMAGE.
33 #ifndef MAR_EVT_H_DEFINED
34 #define MAR_EVT_H_DEFINED
36 #include "mar_gen.h"
38 typedef mar_uint64_t mar_evtchannelhandle_t;
40 typedef mar_uint64_t mar_evtsubscriptionid_t;
42 typedef mar_uint8_t mar_evteventpriority_t;
44 typedef mar_uint64_t mar_evteventid_t;
46 typedef mar_uint8_t mar_evtchannelopenflags_t;
48 typedef struct {
49 mar_size_t allocated_size __attribute__((aligned(8)));
50 mar_size_t pattern_size __attribute__((aligned(8)));
51 mar_uint8_t *pattern __attribute__((aligned(8)));
52 } mar_evt_event_pattern_t;
55 typedef struct {
56 mar_size_t allocated_number __attribute__((aligned(8)));
57 mar_size_t patterns_number __attribute__((aligned(8)));
58 mar_evt_event_pattern_t *patterns __attribute__((aligned(8)));
59 } mar_evt_event_pattern_array_t;
61 typedef enum {
62 MAR_EVT_PREFIX_FILTER = 1,
63 MAR_EVT_SUFFIX_FILTER = 2,
64 MAR_EVT_EXACT_FILTER = 3,
65 MAR_EVT_PASS_ALL_FILTER = 4
66 } mar_evt_event_filter_type_t;
68 typedef struct {
69 mar_evt_event_filter_type_t filter_type __attribute__((aligned(8)));
70 mar_evt_event_pattern_t filter __attribute__((aligned(8)));
71 } mar_evt_event_filter_t;
73 typedef struct {
74 mar_size_t filters_number __attribute__((aligned(8)));
75 mar_evt_event_filter_t *filters __attribute__((aligned(8)));
76 } mar_evt_event_filter_array_t;
78 #endif /* MAR_EVT_H_DEFINED */