ASN1C C/C++ Common Runtime  ASN1C v7.4.x
rtPrintToString.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 1997-2020 Objective Systems, Inc.
3  *
4  * This software is furnished under a license and may be used and copied
5  * only in accordance with the terms of such license and with the
6  * inclusion of the above copyright notice. This software or any other
7  * copies thereof may not be provided or otherwise made available to any
8  * other person. No title to and ownership of the software is hereby
9  * transferred.
10  *
11  * The information in this software is subject to change without notice
12  * and should not be construed as a commitment by Objective Systems, Inc.
13  *
14  * PROPRIETARY NOTICE
15  *
16  * This software is an unpublished work subject to a confidentiality agreement
17  * and is protected by copyright and trade secret law. Unauthorized copying,
18  * redistribution or other use of this work is prohibited.
19  *
20  * The above notice of copyright on this source code product does not indicate
21  * any actual or intended publication of such source code.
22  *
23  *****************************************************************************/
27 #ifndef _RTPRINTTOSTRING_H_
28 #define _RTPRINTTOSTRING_H_
29 #include <stdio.h>
30 #include "rtsrc/asn1type.h"
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
55 EXTERNRT int rtPrintToStringBoolean (const char* name, OSBOOL value,
56  char* buffer, OSSIZE bufferSize);
57 
68 EXTERNRT int rtPrintToStringInteger (const char* name, OSINT32 value,
69  char* buffer, OSSIZE bufferSize);
70 
81 EXTERNRT int rtPrintToStringInt64 (const char* name, OSINT64 value,
82  char* buffer, OSSIZE bufferSize);
83 
91 EXTERNRT int rtPrintToStringIpv4Addr(const char* name,
92  OSSIZE numocts, const OSOCTET* data,
93  char* buffer, OSSIZE bufferSize);
94 
102 EXTERNRT int rtPrintToStringIpv6Addr(const char* name,
103  OSSIZE numocts, const OSOCTET* data,
104  char* buffer, OSSIZE bufferSize);
105 
113 EXTERNRT int rtPrintToStringTBCDStr(const char* name,
114  OSSIZE numocts, const OSOCTET* data,
115  char* buffer, OSSIZE bufferSize);
116 
123 EXTERNRT int rtPrintToStringDateTime(const char* name,
124  OSNumDateTime *pDateTime,
125  char* buffer, OSSIZE bufferSize);
126 
134 EXTERNRT int rtPrintToStringText(const char* name,
135  OSSIZE numocts, const OSOCTET* data,
136  char* buffer, OSSIZE bufferSize);
137 
148 EXTERNRT int rtPrintToStringUnsigned (const char* name, OSUINT32 value,
149  char* buffer, OSSIZE bufferSize);
150 
161 EXTERNRT int rtPrintToStringUInt64 (const char* name, OSUINT64 value,
162  char* buffer, OSSIZE bufferSize);
163 
173 EXTERNRT int rtPrintToStringBitStr (const char* name,
174  OSSIZE numbits, const OSOCTET* data, const char* conn,
175  char* buffer, OSSIZE bufferSize);
176 
191 EXTERNRT int rtPrintToStringBitStrExt(const char* name, OSSIZE numbits,
192  const OSOCTET* data, OSSIZE dataSize, const OSOCTET* extdata,
193  const char* conn, char* buffer, OSSIZE bufferSize);
194 
206 (const char* name, OSSIZE numbits, const OSOCTET* data,
207  char* buffer, OSSIZE bufferSize);
208 
221 EXTERNRT int rtPrintToStringBitStrBraceTextExt(const char* name,
222  OSSIZE numbits, const OSOCTET* data, OSSIZE dataSize,
223  const OSOCTET* extdata, char* buffer, OSSIZE bufferSize);
224 
234 EXTERNRT int rtPrintToStringOctStr (const char* name,
235  OSSIZE numocts, const OSOCTET* data, const char* conn,
236  char* buffer, OSSIZE bufferSize);
237 
244 EXTERNRT int rtPrintToStringCharStr (const char* name,
245  const char* cstring, char* buffer, OSSIZE bufferSize);
246 
253 EXTERNRT int rtPrintToStringUTF8Str (const char *name,
254  const OSUTF8CHAR *ustring, char *buffer, OSSIZE bufferSize);
255 
264 EXTERNRT int rtPrintToString16BitCharStr (const char* name,
265  const Asn116BitCharString* bstring, const char* conn,
266  char* buffer, OSSIZE bufferSize);
267 
276 EXTERNRT int rtPrintToString32BitCharStr (const char* name,
277  const Asn132BitCharString* bstring, const char* conn,
278  char* buffer, OSSIZE bufferSize);
279 
290 EXTERNRT int rtPrintToStringReal (const char* name, OSREAL value,
291  char* buffer, OSSIZE bufferSize);
292 
299 EXTERNRT int rtPrintToStringOID (const char* name, const ASN1OBJID* pOID,
300  char* buffer, OSSIZE bufferSize);
301 
308 EXTERNRT int rtPrintToStringOID64 (const char* name, const ASN1OID64* pOID,
309  char* buffer, OSSIZE bufferSize);
310 
316 EXTERNRT int rtPrintToStringOIDValue (const ASN1OBJID* pOID,
317  char* buffer, OSSIZE bufferSize);
318 
324 EXTERNRT int rtPrintToStringOID64Value (const ASN1OID64* pOID,
325  char* buffer, OSSIZE bufferSize);
326 
336 EXTERNRT int rtPrintToStringOpenType (const char* name,
337  OSSIZE numocts, const OSOCTET* data, const char* conn,
338  char* buffer, OSSIZE bufferSize);
339 
346 EXTERNRT int rtPrintToStringOpenTypeExt (const char* name,
347  const OSRTDList* pElemList, char* buffer, OSSIZE bufferSize);
348 
354 EXTERNRT int rtPrintToString
355  (const char* namebuf, char* buffer, OSSIZE bufSize);
356 
369 EXTERNRT int rtPrintToStringHexStr
370 (const char* name, OSSIZE numocts, const OSOCTET* data, char* buffer,
371  OSSIZE bufSize);
372 
385 (const char* name, const Asn116BitCharString* bstring, char* buffer,
386  OSSIZE bufSize);
387 
399 EXTERNRT int rtPrintToStringUnivCharStr (const char* name,
400  const Asn132BitCharString* bstring, char* buffer, OSSIZE bufSize);
401 
402 #ifndef __SYMBIAN32__
403 
413 (const char* name, const OSRTDList* pElemList, char* buffer, OSSIZE bufSize);
414 
420 EXTERNRT int rtPrintToStringIndent (char* buffer, OSSIZE bufSize);
421 
425 EXTERNRT void rtPrintToStringResetIndent(OSVOIDARG);
426 
430 EXTERNRT void rtPrintToStringIncrIndent(OSVOIDARG);
431 
435 EXTERNRT void rtPrintToStringDecrIndent (OSVOIDARG);
436 
443 EXTERNRT int rtPrintToStringCloseBrace (char* buffer, OSSIZE bufSize);
444 
451 EXTERNRT int rtPrintToStringOpenBrace
452 (const char*, char* buffer, OSSIZE bufSize);
453 
454 #endif
455 
459 #ifdef __cplusplus
460 }
461 #endif
462 #endif
int rtPrintToString(const char *namebuf, char *buffer, OSSIZE bufSize)
void rtPrintToStringResetIndent(OSVOIDARG)
int rtPrintToStringText(const char *name, OSSIZE numocts, const OSOCTET *data, char *buffer, OSSIZE bufferSize)
Definition: asn1type.h:946
int rtPrintToStringOID64Value(const ASN1OID64 *pOID, char *buffer, OSSIZE bufferSize)
int rtPrintToStringHexStr(const char *name, OSSIZE numocts, const OSOCTET *data, char *buffer, OSSIZE bufSize)
int rtPrintToStringIndent(char *buffer, OSSIZE bufSize)
void rtPrintToStringDecrIndent(OSVOIDARG)
int rtPrintToStringOpenTypeExt(const char *name, const OSRTDList *pElemList, char *buffer, OSSIZE bufferSize)
int rtPrintToStringTBCDStr(const char *name, OSSIZE numocts, const OSOCTET *data, char *buffer, OSSIZE bufferSize)
int rtPrintToStringOID(const char *name, const ASN1OBJID *pOID, char *buffer, OSSIZE bufferSize)
Definition: rtxDList.h:64
Definition: asn1type.h:275
int rtPrintToStringBitStrExt(const char *name, OSSIZE numbits, const OSOCTET *data, OSSIZE dataSize, const OSOCTET *extdata, const char *conn, char *buffer, OSSIZE bufferSize)
Definition: asn1type.h:285
int rtPrintToStringOctStr(const char *name, OSSIZE numocts, const OSOCTET *data, const char *conn, char *buffer, OSSIZE bufferSize)
int rtPrintToStringCloseBrace(char *buffer, OSSIZE bufSize)
int rtPrintToStringBitStrBraceTextExt(const char *name, OSSIZE numbits, const OSOCTET *data, OSSIZE dataSize, const OSOCTET *extdata, char *buffer, OSSIZE bufferSize)
int rtPrintToStringDateTime(const char *name, OSNumDateTime *pDateTime, char *buffer, OSSIZE bufferSize)
int rtPrintToStringInteger(const char *name, OSINT32 value, char *buffer, OSSIZE bufferSize)
int rtPrintToStringBoolean(const char *name, OSBOOL value, char *buffer, OSSIZE bufferSize)
int rtPrintToStringUnivCharStr(const char *name, const Asn132BitCharString *bstring, char *buffer, OSSIZE bufSize)
int rtPrintToStringOpenBrace(const char *, char *buffer, OSSIZE bufSize)
int rtPrintToStringInt64(const char *name, OSINT64 value, char *buffer, OSSIZE bufferSize)
int rtPrintToStringCharStr(const char *name, const char *cstring, char *buffer, OSSIZE bufferSize)
int rtPrintToStringOpenType(const char *name, OSSIZE numocts, const OSOCTET *data, const char *conn, char *buffer, OSSIZE bufferSize)
int rtPrintToString16BitCharStr(const char *name, const Asn116BitCharString *bstring, const char *conn, char *buffer, OSSIZE bufferSize)
int rtPrintToStringReal(const char *name, OSREAL value, char *buffer, OSSIZE bufferSize)
int rtPrintToStringBitStr(const char *name, OSSIZE numbits, const OSOCTET *data, const char *conn, char *buffer, OSSIZE bufferSize)
Definition: asn1type.h:958
int rtPrintToStringOpenTypeExtBraceText(const char *name, const OSRTDList *pElemList, char *buffer, OSSIZE bufSize)
int rtPrintToStringIpv6Addr(const char *name, OSSIZE numocts, const OSOCTET *data, char *buffer, OSSIZE bufferSize)
int rtPrintToStringUInt64(const char *name, OSUINT64 value, char *buffer, OSSIZE bufferSize)
void rtPrintToStringIncrIndent(OSVOIDARG)
int rtPrintToStringOIDValue(const ASN1OBJID *pOID, char *buffer, OSSIZE bufferSize)
int rtPrintToStringUTF8Str(const char *name, const OSUTF8CHAR *ustring, char *buffer, OSSIZE bufferSize)
int rtPrintToStringUnsigned(const char *name, OSUINT32 value, char *buffer, OSSIZE bufferSize)
int rtPrintToStringOID64(const char *name, const ASN1OID64 *pOID, char *buffer, OSSIZE bufferSize)
int rtPrintToString32BitCharStr(const char *name, const Asn132BitCharString *bstring, const char *conn, char *buffer, OSSIZE bufferSize)
int rtPrintToStringUnicodeCharStr(const char *name, const Asn116BitCharString *bstring, char *buffer, OSSIZE bufSize)
int rtPrintToStringBitStrBraceText(const char *name, OSSIZE numbits, const OSOCTET *data, char *buffer, OSSIZE bufferSize)
int rtPrintToStringIpv4Addr(const char *name, OSSIZE numocts, const OSOCTET *data, char *buffer, OSSIZE bufferSize)