ISSUE ID:- RICAPP-216
[ric-app/bouncer.git] / Bouncer / e2sm_kpm / headers / RELATIVE-OID.h
1 /*-
2  * Copyright (c) 2003-2017 Lev Walkin <vlm@lionet.info>. All rights reserved.
3  * Redistribution and modifications are permitted subject to BSD license.
4  */
5 #ifndef _RELATIVE_OID_H_
6 #define _RELATIVE_OID_H_
7
8 #include <OBJECT_IDENTIFIER.h>
9
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13
14 /* Implemented via OBJECT IDENTIFIER */
15 typedef OBJECT_IDENTIFIER_t RELATIVE_OID_t;
16
17 extern asn_TYPE_descriptor_t asn_DEF_RELATIVE_OID;
18 extern asn_TYPE_operation_t asn_OP_RELATIVE_OID;
19
20 asn_struct_print_f RELATIVE_OID_print;
21 xer_type_decoder_f RELATIVE_OID_decode_xer;
22 xer_type_encoder_f RELATIVE_OID_encode_xer;
23 asn_random_fill_f  RELATIVE_OID_random_fill;
24
25 #define RELATIVE_OID_free         ASN__PRIMITIVE_TYPE_free
26 #define RELATIVE_OID_compare      OCTET_STRING_compare
27 #define RELATIVE_OID_constraint   asn_generic_no_constraint
28 #define RELATIVE_OID_decode_ber   ber_decode_primitive
29 #define RELATIVE_OID_encode_der   der_encode_primitive
30 #define RELATIVE_OID_decode_oer   oer_decode_primitive
31 #define RELATIVE_OID_encode_oer   oer_encode_primitive
32 #define RELATIVE_OID_decode_uper  OCTET_STRING_decode_uper
33 #define RELATIVE_OID_encode_uper  OCTET_STRING_encode_uper
34 #define RELATIVE_OID_decode_aper  OCTET_STRING_decode_aper
35 #define RELATIVE_OID_encode_aper  OCTET_STRING_encode_aper
36
37 /**********************************
38  * Some handy conversion routines *
39  **********************************/
40
41 /* See OBJECT_IDENTIFIER_get_arcs() function in OBJECT_IDENTIFIER.h */
42 ssize_t RELATIVE_OID_get_arcs(const RELATIVE_OID_t *, asn_oid_arc_t *arcs,
43                               size_t arcs_count);
44
45 /* See OBJECT_IDENTIFIER_set_arcs() function in OBJECT_IDENTIFIER.h */
46 int RELATIVE_OID_set_arcs(RELATIVE_OID_t *, const asn_oid_arc_t *arcs,
47                           size_t arcs_count);
48
49 #ifdef __cplusplus
50 }
51 #endif
52
53 #endif  /* _RELATIVE_OID_H_ */