~ubuntu-branches/ubuntu/vivid/asn1c/vivid

« back to all changes in this revision

Viewing changes to skeletons/OBJECT_IDENTIFIER.h

  • Committer: Bazaar Package Importer
  • Author(s): W. Borgert
  • Date: 2006-09-23 13:50:05 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 dapper)
  • Revision ID: james.westby@ubuntu.com-20060923135005-rmay0d69e5vhunai
* New build, forgot to separate sources/diff.
* New release (closes: #327621).

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
#include <asn_application.h>
10
10
#include <asn_codecs_prim.h>
11
11
 
 
12
#ifdef __cplusplus
 
13
extern "C" {
 
14
#endif
 
15
 
12
16
typedef ASN__PRIMITIVE_TYPE_t OBJECT_IDENTIFIER_t;
13
17
 
14
18
extern asn_TYPE_descriptor_t asn_DEF_OBJECT_IDENTIFIER;
65
69
 * even if there is no sufficient (_arc_slots) provided.
66
70
 */
67
71
int OBJECT_IDENTIFIER_get_arcs(OBJECT_IDENTIFIER_t *_oid,
68
 
        void *_arcs,                    /* i.e., unsigned int arcs[N] */
69
 
        unsigned int _arc_type_size,    /* i.e., sizeof(arcs[0]) */
70
 
        unsigned int _arc_slots         /* i.e., N */);
 
72
        void *_arcs,                    /* e.g., unsigned int arcs[N] */
 
73
        unsigned int _arc_type_size,    /* e.g., sizeof(arcs[0]) */
 
74
        unsigned int _arc_slots         /* e.g., N */);
71
75
 
72
76
/*
73
77
 * This functions initializes the OBJECT IDENTIFIER object with
80
84
 * 0:           The object was initialized with new arcs.
81
85
 */
82
86
int OBJECT_IDENTIFIER_set_arcs(OBJECT_IDENTIFIER_t *_oid,
83
 
        void *_arcs,                    /* i.e., unsigned int arcs[N] */
84
 
        unsigned int _arc_type_size,    /* i.e., sizeof(arcs[0]) */
85
 
        unsigned int _arc_slots         /* i.e., N */);
 
87
        const void *_arcs,              /* e.g., unsigned int arcs[N] */
 
88
        unsigned int _arc_type_size,    /* e.g., sizeof(arcs[0]) */
 
89
        unsigned int _arc_slots         /* e.g., N */);
86
90
 
87
91
/*
88
92
 * Print the specified OBJECT IDENTIFIER arc.
126
130
int OBJECT_IDENTIFIER_get_single_arc(uint8_t *arcbuf, unsigned int arclen,
127
131
        signed int add, void *value, unsigned int value_size);
128
132
int OBJECT_IDENTIFIER_set_single_arc(uint8_t *arcbuf,
129
 
        void *arcval, unsigned int arcval_size, int _prepared_order);
 
133
        const void *arcval, unsigned int arcval_size, int _prepared_order);
 
134
 
 
135
#ifdef __cplusplus
 
136
}
 
137
#endif
130
138
 
131
139
#endif  /* _OBJECT_IDENTIFIER_H_ */