blob: 926aca3ab260763ed8811c0981d0a6f38192d882 [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
8#include <constr_TYPE.h>
9#include <OBJECT_IDENTIFIER.h>
10
11/* Implemented in terms of OBJECT IDENTIFIER */
12typedef OBJECT_IDENTIFIER_t RELATIVE_OID_t;
13
14extern asn1_TYPE_descriptor_t asn1_DEF_RELATIVE_OID;
15
16asn_struct_print_f RELATIVE_OID_print;
17
18/**********************************
19 * Some handy conversion routines *
20 **********************************/
21
22/* See OBJECT_IDENTIFIER_set_arcs_l() function in OBJECT_IDENTIFIER.h */
23int RELATIVE_OID_set_arcs_l(RELATIVE_OID_t *_roid,
24 unsigned long *arcs, int arcs_slots);
25
vlm2e3dd3b2004-06-14 07:24:36 +000026/* See OBJECT_IDENTIFIER_get_arcs() function in OBJECT_IDENTIFIER.h */
27int RELATIVE_OID_get_arcs(RELATIVE_OID_t *_roid,
28 void *arcs, unsigned int arc_type_size, unsigned int arc_slots);
vlmfa67ddc2004-06-03 03:38:44 +000029
30#endif /* _RELATIVE_OID_H_ */