Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1 | /*- |
| 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 Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 8 | #include <OBJECT_IDENTIFIER.h> |
| 9 | |
Lev Walkin | 21b41ac | 2005-07-24 09:03:44 +0000 | [diff] [blame] | 10 | #ifdef __cplusplus |
| 11 | extern "C" { |
| 12 | #endif |
| 13 | |
Lev Walkin | 11c3e17 | 2004-09-24 21:00:50 +0000 | [diff] [blame] | 14 | /* Implemented via OBJECT IDENTIFIER */ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15 | typedef OBJECT_IDENTIFIER_t RELATIVE_OID_t; |
| 16 | |
Lev Walkin | 5e03376 | 2004-09-29 13:26:15 +0000 | [diff] [blame] | 17 | extern asn_TYPE_descriptor_t asn_DEF_RELATIVE_OID; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 18 | |
| 19 | asn_struct_print_f RELATIVE_OID_print; |
Lev Walkin | 9230225 | 2004-10-23 10:16:51 +0000 | [diff] [blame] | 20 | xer_type_decoder_f RELATIVE_OID_decode_xer; |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 21 | xer_type_encoder_f RELATIVE_OID_encode_xer; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22 | |
| 23 | /********************************** |
| 24 | * Some handy conversion routines * |
| 25 | **********************************/ |
| 26 | |
Lev Walkin | 29a044b | 2004-06-14 07:24:36 +0000 | [diff] [blame] | 27 | /* See OBJECT_IDENTIFIER_get_arcs() function in OBJECT_IDENTIFIER.h */ |
| 28 | int RELATIVE_OID_get_arcs(RELATIVE_OID_t *_roid, |
| 29 | void *arcs, unsigned int arc_type_size, unsigned int arc_slots); |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 30 | |
Lev Walkin | 0787ff0 | 2004-06-17 23:43:39 +0000 | [diff] [blame] | 31 | /* See OBJECT_IDENTIFIER_set_arcs() function in OBJECT_IDENTIFIER.h */ |
| 32 | int RELATIVE_OID_set_arcs(RELATIVE_OID_t *_roid, |
| 33 | void *arcs, unsigned int arc_type_size, unsigned int arcs_slots); |
| 34 | |
Lev Walkin | 21b41ac | 2005-07-24 09:03:44 +0000 | [diff] [blame] | 35 | #ifdef __cplusplus |
| 36 | } |
| 37 | #endif |
| 38 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 39 | #endif /* _RELATIVE_OID_H_ */ |