placeholder_manager.h
Go to the documentation of this file.
/*
* $Id$
*
* Copyright (c) 2002-2014, Universite catholique de Louvain (UCL), Belgium
* Copyright (c) 2002-2014, Professor Benoit Macq
* Copyright (c) 2010-2011, Kaori Hagihara
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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 COPYRIGHT OWNER 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 PLACEHOLDER_MANAGER_H_
# define PLACEHOLDER_MANAGER_H_
#include "byte_manager.h"
#include "box_manager.h"
typedef struct placeholder_param {
Byte4_t LBox;
char TBox[4];
Byte4_t Flags;
Byte8_t OrigID;
Byte_t *OrigBH;
Byte_t OrigBHlen;
#ifdef AAA
Byte8_t EquivID;
Byte_t *EquivBH;
Byte_t EquivBHlen;
Byte8_t CSID;
Byte4_t NCS;
#endif /*AAA*/
struct placeholder_param *next;
} placeholder_param_t;
typedef struct placeholderlist_param {
placeholder_param_t *first;
placeholder_param_t *last;
} placeholderlist_param_t;
placeholderlist_param_t * gene_placeholderlist(void);
void delete_placeholderlist(placeholderlist_param_t **list);
placeholder_param_t * gene_placeholder(box_param_t *box, Byte8_t origID);
void delete_placeholder(placeholder_param_t **placeholder);
void insert_placeholder_into_list(placeholder_param_t *phld,
placeholderlist_param_t *phldlist);
void print_placeholder(placeholder_param_t *phld);
void print_allplaceholder(placeholderlist_param_t *list);
#endif /* !PLACEHOLDER_MANAGER_H_ */
box_manager.h
box_param_t
struct box_param box_param_t
box parameters
byte_manager.h
Byte8_t
uint64_t Byte8_t
Definition byte_manager.h:40
Byte4_t
uint32_t Byte4_t
Definition byte_manager.h:39
Byte_t
uint8_t Byte_t
Definition byte_manager.h:37
insert_placeholder_into_list
void insert_placeholder_into_list(placeholder_param_t *phld, placeholderlist_param_t *phldlist)
Definition placeholder_manager.c:104
placeholderlist_param_t
struct placeholderlist_param placeholderlist_param_t
placeholder box list parameters
print_allplaceholder
void print_allplaceholder(placeholderlist_param_t *list)
print all placeholder parameters
Definition placeholder_manager.c:137
delete_placeholder
void delete_placeholder(placeholder_param_t **placeholder)
delete a placeholder
Definition placeholder_manager.c:96
gene_placeholderlist
placeholderlist_param_t * gene_placeholderlist(void)
generate a placeholder list
Definition placeholder_manager.c:48
placeholder_param_t
struct placeholder_param placeholder_param_t
A.3.6.3 Placeholder box format.
print_placeholder
void print_placeholder(placeholder_param_t *phld)
print placeholder parameters
Definition placeholder_manager.c:115
gene_placeholder
placeholder_param_t * gene_placeholder(box_param_t *box, Byte8_t origID)
generate a placeholder of a box
Definition placeholder_manager.c:78
delete_placeholderlist
void delete_placeholderlist(placeholderlist_param_t **list)
delete placeholder list
Definition placeholder_manager.c:60
placeholder_param
A.3.6.3 Placeholder box format.
Definition placeholder_manager.h:39
placeholder_param::Flags
Byte4_t Flags
Definition placeholder_manager.h:42
placeholder_param::TBox
char TBox[4]
Definition placeholder_manager.h:41
placeholder_param::OrigBHlen
Byte_t OrigBHlen
length of OrigBH
Definition placeholder_manager.h:45
placeholder_param::OrigBH
Byte_t * OrigBH
dynamic memory pointer
Definition placeholder_manager.h:44
placeholder_param::LBox
Byte4_t LBox
Definition placeholder_manager.h:40
placeholder_param::next
struct placeholder_param * next
pointer to the next placeholder
Definition placeholder_manager.h:53
placeholder_param::OrigID
Byte8_t OrigID
Definition placeholder_manager.h:43
placeholderlist_param
placeholder box list parameters
Definition placeholder_manager.h:58
placeholderlist_param::last
placeholder_param_t * last
last placeholder pointer of the list
Definition placeholder_manager.h:60
placeholderlist_param::first
placeholder_param_t * first
first placeholder pointer of the list
Definition placeholder_manager.h:59