Subversion Repositories tendra.SVN

Rev

Rev 5 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5 Rev 6
Line -... Line 1...
-
 
1
/*
-
 
2
 * Copyright (c) 2002-2006 The TenDRA Project <http://www.tendra.org/>.
-
 
3
 * All rights reserved.
-
 
4
 *
-
 
5
 * Redistribution and use in source and binary forms, with or without
-
 
6
 * modification, are permitted provided that the following conditions are met:
-
 
7
 *
-
 
8
 * 1. Redistributions of source code must retain the above copyright notice,
-
 
9
 *    this list of conditions and the following disclaimer.
-
 
10
 * 2. Redistributions in binary form must reproduce the above copyright notice,
-
 
11
 *    this list of conditions and the following disclaimer in the documentation
-
 
12
 *    and/or other materials provided with the distribution.
-
 
13
 * 3. Neither the name of The TenDRA Project nor the names of its contributors
-
 
14
 *    may be used to endorse or promote products derived from this software
-
 
15
 *    without specific, prior written permission.
-
 
16
 *
-
 
17
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS
-
 
18
 * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
-
 
19
 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-
 
20
 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR
-
 
21
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-
 
22
 * EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-
 
23
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
-
 
24
 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-
 
25
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-
 
26
 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-
 
27
 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
 
28
 *
-
 
29
 * $Id$
-
 
30
 */
1
/*
31
/*
2
    		 Crown Copyright (c) 1997
32
    		 Crown Copyright (c) 1997
3
    
33
 
4
    This TenDRA(r) Computer Program is subject to Copyright
34
    This TenDRA(r) Computer Program is subject to Copyright
5
    owned by the United Kingdom Secretary of State for Defence
35
    owned by the United Kingdom Secretary of State for Defence
6
    acting through the Defence Evaluation and Research Agency
36
    acting through the Defence Evaluation and Research Agency
7
    (DERA).  It is made available to Recipients with a
37
    (DERA).  It is made available to Recipients with a
8
    royalty-free licence for its use, reproduction, transfer
38
    royalty-free licence for its use, reproduction, transfer
9
    to other parties and amendment for any purpose not excluding
39
    to other parties and amendment for any purpose not excluding
10
    product development provided that any such use et cetera
40
    product development provided that any such use et cetera
11
    shall be deemed to be acceptance of the following conditions:-
41
    shall be deemed to be acceptance of the following conditions:-
12
    
42
 
13
        (1) Its Recipients shall ensure that this Notice is
43
        (1) Its Recipients shall ensure that this Notice is
14
        reproduced upon any copies or amended versions of it;
44
        reproduced upon any copies or amended versions of it;
15
    
45
 
16
        (2) Any amended version of it shall be clearly marked to
46
        (2) Any amended version of it shall be clearly marked to
17
        show both the nature of and the organisation responsible
47
        show both the nature of and the organisation responsible
18
        for the relevant amendment or amendments;
48
        for the relevant amendment or amendments;
19
    
49
 
20
        (3) Its onward transfer from a recipient to another
50
        (3) Its onward transfer from a recipient to another
21
        party shall be deemed to be that party's acceptance of
51
        party shall be deemed to be that party's acceptance of
22
        these conditions;
52
        these conditions;
23
    
53
 
24
        (4) DERA gives no warranty or assurance as to its
54
        (4) DERA gives no warranty or assurance as to its
25
        quality or suitability for any purpose and DERA accepts
55
        quality or suitability for any purpose and DERA accepts
26
        no liability whatsoever in relation to any use to which
56
        no liability whatsoever in relation to any use to which
27
        it may be put.
57
        it may be put.
28
*/
58
*/
Line 106... Line 136...
106
} NameKeyPairListT, *NameKeyPairListP;
136
} NameKeyPairListT, *NameKeyPairListP;
107
 
137
 
108
/*--------------------------------------------------------------------------*/
138
/*--------------------------------------------------------------------------*/
109
 
139
 
110
extern void			name_key_init_string
140
extern void			name_key_init_string
111
	PROTO_S ((NameKeyP, NStringP));
141
(NameKeyP, NStringP);
112
extern void			name_key_init_unique
142
extern void			name_key_init_unique
113
	PROTO_S ((NameKeyP, unsigned));
143
(NameKeyP, unsigned);
114
extern BoolT			name_key_parse_cstring
144
extern BoolT			name_key_parse_cstring
115
	PROTO_S ((NameKeyP, CStringP));
145
(NameKeyP, CStringP);
116
extern void			name_key_set_component
146
extern void			name_key_set_component
117
	PROTO_S ((NameKeyP, unsigned, NStringP));
147
(NameKeyP, unsigned, NStringP);
118
extern NameKeyTypeT		name_key_type
148
extern NameKeyTypeT		name_key_type
119
	PROTO_S ((NameKeyP));
149
(NameKeyP);
120
extern NStringP			name_key_string
150
extern NStringP			name_key_string
121
	PROTO_S ((NameKeyP));
151
(NameKeyP);
122
extern unsigned			name_key_components
152
extern unsigned			name_key_components
123
	PROTO_S ((NameKeyP));
153
(NameKeyP);
124
extern NStringP			name_key_get_component
154
extern NStringP			name_key_get_component
125
	PROTO_S ((NameKeyP, unsigned));
155
(NameKeyP, unsigned);
126
extern unsigned			name_key_hash_value
156
extern unsigned			name_key_hash_value
127
	PROTO_S ((NameKeyP));
157
(NameKeyP);
128
extern BoolT			name_key_equal
158
extern BoolT			name_key_equal
129
	PROTO_S ((NameKeyP, NameKeyP));
159
(NameKeyP, NameKeyP);
130
extern void			name_key_assign
160
extern void			name_key_assign
131
	PROTO_S ((NameKeyP, NameKeyP));
161
(NameKeyP, NameKeyP);
132
extern void			name_key_copy
162
extern void			name_key_copy
133
	PROTO_S ((NameKeyP, NameKeyP));
163
(NameKeyP, NameKeyP);
134
extern void			name_key_destroy
164
extern void			name_key_destroy
135
	PROTO_S ((NameKeyP));
165
(NameKeyP);
136
 
166
 
137
extern void			write_name_key
167
extern void			write_name_key
138
	PROTO_S ((OStreamP, NameKeyP));
168
(OStreamP, NameKeyP);
139
 
169
 
140
extern void			name_key_list_init
170
extern void			name_key_list_init
141
	PROTO_S ((NameKeyListP));
171
(NameKeyListP);
142
extern void			name_key_list_add
172
extern void			name_key_list_add
143
	PROTO_S ((NameKeyListP, NameKeyP));
173
(NameKeyListP, NameKeyP);
144
extern NameKeyListEntryP	name_key_list_head
174
extern NameKeyListEntryP	name_key_list_head
145
	PROTO_S ((NameKeyListP));
175
(NameKeyListP);
146
extern NameKeyP			name_key_list_entry_key
176
extern NameKeyP			name_key_list_entry_key
147
	PROTO_S ((NameKeyListEntryP));
177
(NameKeyListEntryP);
148
extern NameKeyListEntryP	name_key_list_entry_next
178
extern NameKeyListEntryP	name_key_list_entry_next
149
	PROTO_S ((NameKeyListEntryP));
179
(NameKeyListEntryP);
150
 
180
 
151
extern void			name_key_pair_list_init
181
extern void			name_key_pair_list_init
152
	PROTO_S ((NameKeyPairListP));
182
(NameKeyPairListP);
153
extern BoolT			name_key_pair_list_add
183
extern BoolT			name_key_pair_list_add
154
	PROTO_S ((NameKeyPairListP, NameKeyP, NameKeyP));
184
(NameKeyPairListP, NameKeyP, NameKeyP);
155
extern NameKeyPairListEntryP	name_key_pair_list_head
185
extern NameKeyPairListEntryP	name_key_pair_list_head
156
	PROTO_S ((NameKeyPairListP));
186
(NameKeyPairListP);
157
extern NameKeyP			name_key_pair_list_entry_from
187
extern NameKeyP			name_key_pair_list_entry_from
158
	PROTO_S ((NameKeyPairListEntryP));
188
(NameKeyPairListEntryP);
159
extern NameKeyP			name_key_pair_list_entry_to
189
extern NameKeyP			name_key_pair_list_entry_to
160
	PROTO_S ((NameKeyPairListEntryP));
190
(NameKeyPairListEntryP);
161
extern NameKeyPairListEntryP	name_key_pair_list_entry_next
191
extern NameKeyPairListEntryP	name_key_pair_list_entry_next
162
	PROTO_S ((NameKeyPairListEntryP));
192
(NameKeyPairListEntryP);
163
 
193
 
164
#endif /* !defined (H_NAME_KEY) */
194
#endif /* !defined (H_NAME_KEY) */
165

195

166
/*
196
/*
167
 * Local variables(smf):
197
 * Local variables(smf):