Debian Codegraph @

c-lib/inc/asn-relative-oid.h

raw symbols SCIP
1 /*
2 * asn_relative_RELATIVE_RELATIVE_OID.h
3 *
4 * this file depends on asn_octs.h
5 *
6 * Joseph Grone
7 * 15/01/2004
8 *
9 * This library is free software; you can redistribute it and/or
10 * modify it provided that this copyright/license information is retained
11 * in original form.
12 *
13 * If you modify this file, you must clearly indicate your changes.
14 *
15 * This source code is distributed in the hope that it will be
16 * useful, but WITHOUT ANY WARRANTY; without even the implied warranty
17 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18 *
19 * $Header: /baseline/SNACC/c-lib/inc/asn-relative-oid.h,v 1.2 2004/01/22 20:03:07 nicholar Exp $
20 */
21
22 #ifndef _asn_relative_oid_h_
23 #define _asn_relative_oid_h_
24
25 #include "asn-octs.h"
26
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30
31
32 typedef AsnOcts AsnRelativeOid; /* standard oid type */
33
34
35 #define ASNRELATIVE_OID_PRESENT( aoid) ASNOCTS_PRESENT (aoid)
36
37 AsnLen BEncAsnRelativeOid PROTO ((GenBuf *b, AsnRelativeOid *data));
38
39 void BDecAsnRelativeOid PROTO ((GenBuf *b, AsnRelativeOid *result, AsnLen *bytesDecoded, ENV_TYPE env));
40
41 #define BEncAsnRelativeOidContent( b, oid) BEncAsnOctsContent (b, oid)
42
43
44 void BDecAsnRelativeOidContent PROTO ((GenBuf *b, AsnTag tag, AsnLen len, AsnRelativeOid *result, AsnLen *bytesDecoded, ENV_TYPE env));
45
46
47 #define FreeAsnRelativeOid FreeAsnOcts
48
49 void PrintAsnRelativeOid PROTO ((FILE *f, AsnRelativeOid *b, unsigned int indent));
50
51 #define AsnRelativeOidsEquiv( o1, o2) AsnOctsEquiv (o1, o2)
52
53 /* linked oid type that may be easier to use in some circumstances */
54 #define NULL_RELATIVE_OID_ARCNUM -1
55 typedef struct RELATIVE_OID
56 {
57 struct RELATIVE_OID *next;
58 long arcNum;
59 #if COMPILER || TTBL
60 struct Value *valueRef;
61 #endif
62 } RELATIVE_OID;
63
64 AsnLen EncodedRelativeOidLen PROTO ((RELATIVE_OID *oid));
65
66 void BuildEncodedRelativeOid PROTO ((RELATIVE_OID *oid, AsnRelativeOid *result));
67
68 void UnbuildEncodedRelativeOid PROTO ((AsnRelativeOid *eoid, RELATIVE_OID **result));
69
70 #ifdef __cplusplus
71 }
72 #endif /* __cplusplus */
73 #endif /* conditional include */
74