blob: 2235cfddfaf1de08ee5fc8f34401d1c911b410a3 [file] [log] [blame]
vlmfa67ddc2004-06-03 03:38:44 +00001/*-
2 * Copyright (c) 2003, 2004 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
vlmfa67ddc2004-06-03 03:38:44 +00008#include <OBJECT_IDENTIFIER.h>
9
vlm3a417582005-07-24 09:03:44 +000010#ifdef __cplusplus
11extern "C" {
12#endif
13
vlmd1579582004-09-24 21:00:50 +000014/* Implemented via OBJECT IDENTIFIER */
vlmfa67ddc2004-06-03 03:38:44 +000015typedef OBJECT_IDENTIFIER_t RELATIVE_OID_t;
16
vlmef6355b2004-09-29 13:26:15 +000017extern asn_TYPE_descriptor_t asn_DEF_RELATIVE_OID;
vlmfa67ddc2004-06-03 03:38:44 +000018
19asn_struct_print_f RELATIVE_OID_print;
vlm1f73df22004-10-23 10:16:51 +000020xer_type_decoder_f RELATIVE_OID_decode_xer;
vlm39ba4c42004-09-22 16:06:28 +000021xer_type_encoder_f RELATIVE_OID_encode_xer;
vlmfa67ddc2004-06-03 03:38:44 +000022
23/**********************************
24 * Some handy conversion routines *
25 **********************************/
26
vlm2e3dd3b2004-06-14 07:24:36 +000027/* See OBJECT_IDENTIFIER_get_arcs() function in OBJECT_IDENTIFIER.h */
28int RELATIVE_OID_get_arcs(RELATIVE_OID_t *_roid,
29 void *arcs, unsigned int arc_type_size, unsigned int arc_slots);
vlmfa67ddc2004-06-03 03:38:44 +000030
vlm12557712004-06-17 23:43:39 +000031/* See OBJECT_IDENTIFIER_set_arcs() function in OBJECT_IDENTIFIER.h */
32int RELATIVE_OID_set_arcs(RELATIVE_OID_t *_roid,
33 void *arcs, unsigned int arc_type_size, unsigned int arcs_slots);
34
vlm3a417582005-07-24 09:03:44 +000035#ifdef __cplusplus
36}
37#endif
38
vlmfa67ddc2004-06-03 03:38:44 +000039#endif /* _RELATIVE_OID_H_ */