Fawkes API
Fawkes Development Version
interface_mem_header.h
1
2
/***************************************************************************
3
* interface_mem_header.h - BlackBoard interface memory header
4
*
5
* Generated: Fri Oct 20 13:41:29 2006
6
* Copyright 2006 Tim Niemueller [www.niemueller.de]
7
*
8
****************************************************************************/
9
10
/* This program is free software; you can redistribute it and/or modify
11
* it under the terms of the GNU General Public License as published by
12
* the Free Software Foundation; either version 2 of the License, or
13
* (at your option) any later version. A runtime exception applies to
14
* this software (see LICENSE.GPL_WRE file mentioned below for details).
15
*
16
* This program is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
* GNU Library General Public License for more details.
20
*
21
* Read the full text in the LICENSE.GPL_WRE file in the doc directory.
22
*/
23
24
#ifndef _BLACKBOARD_INTERFACE_MEM_HEADER_H_
25
#define _BLACKBOARD_INTERFACE_MEM_HEADER_H_
26
27
#include <interface/interface.h>
28
29
#include <stdint.h>
30
31
namespace
fawkes
{
32
33
/** This struct is used as header for interfaces in memory chunks.
34
* This header is stored at the beginning of each allocated memory chunk.
35
*/
36
typedef
struct
37
{
38
char
type[INTERFACE_TYPE_SIZE_];
/**< interface type */
39
char
id
[INTERFACE_ID_SIZE_];
/**< interface identifier */
40
unsigned
char
hash[INTERFACE_HASH_SIZE_];
/**< interface type version hash */
41
uint16_t
flag_writer_active
: 1;
/**< 1 if there is a writer, 0 otherwise */
42
uint16_t
flag_reserved
: 15;
/**< reserved for future use */
43
uint16_t
num_readers
;
/**< number of active readers */
44
uint32_t
refcount
;
/**< reference count */
45
uint32_t
serial
;
/**< memory serial */
46
}
interface_header_t
;
47
48
}
// end namespace fawkes
49
50
#endif
fawkes
Fawkes library namespace.
fawkes::interface_header_t
This struct is used as header for interfaces in memory chunks.
Definition:
interface_mem_header.h:37
fawkes::interface_header_t::refcount
uint32_t refcount
reference count
Definition:
interface_mem_header.h:44
fawkes::interface_header_t::num_readers
uint16_t num_readers
number of active readers
Definition:
interface_mem_header.h:43
fawkes::interface_header_t::flag_reserved
uint16_t flag_reserved
reserved for future use
Definition:
interface_mem_header.h:42
fawkes::interface_header_t::flag_writer_active
uint16_t flag_writer_active
1 if there is a writer, 0 otherwise
Definition:
interface_mem_header.h:41
fawkes::interface_header_t::serial
uint32_t serial
memory serial
Definition:
interface_mem_header.h:45
src
libs
blackboard
internal
interface_mem_header.h
Generated by
1.9.4