ASN1C C/C++ Common Runtime  ASN1C v7.5.x
rtPrintToString.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 1997-2021 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 
189 EXTERNRT int rtPrintToStringBitStrBin(const char *name, OSSIZE numbits,
190  const OSOCTET *data, const char *conn,
191  char *buffer, OSSIZE bufferSize);
192 
207 EXTERNRT int rtPrintToStringBitStrExt(const char* name, OSSIZE numbits,
208  const OSOCTET* data, OSSIZE dataSize, const OSOCTET* extdata,
209  const char* conn, char* buffer, OSSIZE bufferSize);
210 
222 (const char* name, OSSIZE numbits, const OSOCTET* data,
223  char* buffer, OSSIZE bufferSize);
224 
237 EXTERNRT int rtPrintToStringBitStrBraceTextExt(const char* name,
238  OSSIZE numbits, const OSOCTET* data, OSSIZE dataSize,
239  const OSOCTET* extdata, char* buffer, OSSIZE bufferSize);
240 
250 EXTERNRT int rtPrintToStringOctStr (const char* name,
251  OSSIZE numocts, const OSOCTET* data, const char* conn,
252  char* buffer, OSSIZE bufferSize);
253 
260 EXTERNRT int rtPrintToStringCharStr (const char* name,
261  const char* cstring, char* buffer, OSSIZE bufferSize);
262 
269 EXTERNRT int rtPrintToStringUTF8Str (const char *name,
270  const OSUTF8CHAR *ustring, char *buffer, OSSIZE bufferSize);
271 
280 EXTERNRT int rtPrintToString16BitCharStr (const char* name,
281  const Asn116BitCharString* bstring, const char* conn,
282  char* buffer, OSSIZE bufferSize);
283 
292 EXTERNRT int rtPrintToString32BitCharStr (const char* name,
293  const Asn132BitCharString* bstring, const char* conn,
294  char* buffer, OSSIZE bufferSize);
295 
306 EXTERNRT int rtPrintToStringReal (const char* name, OSREAL value,
307  char* buffer, OSSIZE bufferSize);
308 
315 EXTERNRT int rtPrintToStringOID (const char* name, const ASN1OBJID* pOID,
316  char* buffer, OSSIZE bufferSize);
317 
324 EXTERNRT int rtPrintToStringOID64 (const char* name, const ASN1OID64* pOID,
325  char* buffer, OSSIZE bufferSize);
326 
332 EXTERNRT int rtPrintToStringOIDValue (const ASN1OBJID* pOID,
333  char* buffer, OSSIZE bufferSize);
334 
340 EXTERNRT int rtPrintToStringOID64Value (const ASN1OID64* pOID,
341  char* buffer, OSSIZE bufferSize);
342 
352 EXTERNRT int rtPrintToStringOpenType (const char* name,
353  OSSIZE numocts, const OSOCTET* data, const char* conn,
354  char* buffer, OSSIZE bufferSize);
355 
362 EXTERNRT int rtPrintToStringOpenTypeExt (const char* name,
363  const OSRTDList* pElemList, char* buffer, OSSIZE bufferSize);
364 
370 EXTERNRT int rtPrintToString
371  (const char* namebuf, char* buffer, OSSIZE bufSize);
372 
385 EXTERNRT int rtPrintToStringHexStr
386 (const char* name, OSSIZE numocts, const OSOCTET* data, char* buffer,
387  OSSIZE bufSize);
388 
401 (const char* name, const Asn116BitCharString* bstring, char* buffer,
402  OSSIZE bufSize);
403 
415 EXTERNRT int rtPrintToStringUnivCharStr (const char* name,
416  const Asn132BitCharString* bstring, char* buffer, OSSIZE bufSize);
417 
418 #ifndef __SYMBIAN32__
419 
429 (const char* name, const OSRTDList* pElemList, char* buffer, OSSIZE bufSize);
430 
436 EXTERNRT int rtPrintToStringIndent (char* buffer, OSSIZE bufSize);
437 
441 EXTERNRT void rtPrintToStringResetIndent(OSVOIDARG);
442 
446 EXTERNRT void rtPrintToStringIncrIndent(OSVOIDARG);
447 
451 EXTERNRT void rtPrintToStringDecrIndent (OSVOIDARG);
452 
459 EXTERNRT int rtPrintToStringCloseBrace (char* buffer, OSSIZE bufSize);
460 
467 EXTERNRT int rtPrintToStringOpenBrace
468 (const char*, char* buffer, OSSIZE bufSize);
469 
470 #endif
471 
475 #ifdef __cplusplus
476 }
477 #endif
478 #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:979
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
int rtPrintToStringBitStrBin(const char *name, OSSIZE numbits, const OSOCTET *data, const char *conn, char *buffer, OSSIZE bufferSize)
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:991
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)