blob: 855391c9a3a8d9fcea8afe40d51dc0a3fcc0a761 [file] [log] [blame]
Lev Walkinf15320b2004-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
Lev Walkinf15320b2004-06-03 03:38:44 +00008#include <OBJECT_IDENTIFIER.h>
9
Lev Walkin11c3e172004-09-24 21:00:50 +000010/* Implemented via OBJECT IDENTIFIER */
Lev Walkinf15320b2004-06-03 03:38:44 +000011typedef OBJECT_IDENTIFIER_t RELATIVE_OID_t;
12
13extern asn1_TYPE_descriptor_t asn1_DEF_RELATIVE_OID;
14
15asn_struct_print_f RELATIVE_OID_print;
Lev Walkina9cc46e2004-09-22 16:06:28 +000016xer_type_encoder_f RELATIVE_OID_encode_xer;
Lev Walkinf15320b2004-06-03 03:38:44 +000017
18/**********************************
19 * Some handy conversion routines *
20 **********************************/
21
Lev Walkin29a044b2004-06-14 07:24:36 +000022/* See OBJECT_IDENTIFIER_get_arcs() function in OBJECT_IDENTIFIER.h */
23int RELATIVE_OID_get_arcs(RELATIVE_OID_t *_roid,
24 void *arcs, unsigned int arc_type_size, unsigned int arc_slots);
Lev Walkinf15320b2004-06-03 03:38:44 +000025
Lev Walkin0787ff02004-06-17 23:43:39 +000026/* See OBJECT_IDENTIFIER_set_arcs() function in OBJECT_IDENTIFIER.h */
27int RELATIVE_OID_set_arcs(RELATIVE_OID_t *_roid,
28 void *arcs, unsigned int arc_type_size, unsigned int arcs_slots);
29
Lev Walkinf15320b2004-06-03 03:38:44 +000030#endif /* _RELATIVE_OID_H_ */