ASN1C C/C++ Common Runtime  ASN1C v7.3.x
rtPrintToString.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 1997-2019 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 
94 EXTERNRT int rtPrintToStringUnsigned (const char* name, OSUINT32 value,
95  char* buffer, OSSIZE bufferSize);
96 
107 EXTERNRT int rtPrintToStringUInt64 (const char* name, OSUINT64 value,
108  char* buffer, OSSIZE bufferSize);
109 
119 EXTERNRT int rtPrintToStringBitStr (const char* name,
120  OSSIZE numbits, const OSOCTET* data, const char* conn,
121  char* buffer, OSSIZE bufferSize);
122 
137 EXTERNRT int rtPrintToStringBitStrExt(const char* name, OSSIZE numbits,
138  const OSOCTET* data, OSSIZE dataSize, const OSOCTET* extdata,
139  const char* conn, char* buffer, OSSIZE bufferSize);
140 
152 (const char* name, OSSIZE numbits, const OSOCTET* data,
153  char* buffer, OSSIZE bufferSize);
154 
167 EXTERNRT int rtPrintToStringBitStrBraceTextExt(const char* name,
168  OSSIZE numbits, const OSOCTET* data, OSSIZE dataSize,
169  const OSOCTET* extdata, char* buffer, OSSIZE bufferSize);
170 
180 EXTERNRT int rtPrintToStringOctStr (const char* name,
181  OSSIZE numocts, const OSOCTET* data, const char* conn,
182  char* buffer, OSSIZE bufferSize);
183 
190 EXTERNRT int rtPrintToStringCharStr (const char* name,
191  const char* cstring, char* buffer, OSSIZE bufferSize);
192 
199 EXTERNRT int rtPrintToStringUTF8Str (const char *name,
200  const OSUTF8CHAR *ustring, char *buffer, OSSIZE bufferSize);
201 
210 EXTERNRT int rtPrintToString16BitCharStr (const char* name,
211  const Asn116BitCharString* bstring, const char* conn,
212  char* buffer, OSSIZE bufferSize);
213 
222 EXTERNRT int rtPrintToString32BitCharStr (const char* name,
223  const Asn132BitCharString* bstring, const char* conn,
224  char* buffer, OSSIZE bufferSize);
225 
236 EXTERNRT int rtPrintToStringReal (const char* name, OSREAL value,
237  char* buffer, OSSIZE bufferSize);
238 
245 EXTERNRT int rtPrintToStringOID (const char* name, const ASN1OBJID* pOID,
246  char* buffer, OSSIZE bufferSize);
247 
254 EXTERNRT int rtPrintToStringOID64 (const char* name, const ASN1OID64* pOID,
255  char* buffer, OSSIZE bufferSize);
256 
262 EXTERNRT int rtPrintToStringOIDValue (const ASN1OBJID* pOID,
263  char* buffer, OSSIZE bufferSize);
264 
270 EXTERNRT int rtPrintToStringOID64Value (const ASN1OID64* pOID,
271  char* buffer, OSSIZE bufferSize);
272 
282 EXTERNRT int rtPrintToStringOpenType (const char* name,
283  OSSIZE numocts, const OSOCTET* data, const char* conn,
284  char* buffer, OSSIZE bufferSize);
285 
292 EXTERNRT int rtPrintToStringOpenTypeExt (const char* name,
293  const OSRTDList* pElemList, char* buffer, OSSIZE bufferSize);
294 
300 EXTERNRT int rtPrintToString
301  (const char* namebuf, char* buffer, OSSIZE bufSize);
302 
315 EXTERNRT int rtPrintToStringHexStr
316 (const char* name, OSSIZE numocts, const OSOCTET* data, char* buffer,
317  OSSIZE bufSize);
318 
331 (const char* name, const Asn116BitCharString* bstring, char* buffer,
332  OSSIZE bufSize);
333 
345 EXTERNRT int rtPrintToStringUnivCharStr (const char* name,
346  const Asn132BitCharString* bstring, char* buffer, OSSIZE bufSize);
347 
348 #ifndef __SYMBIAN32__
349 
359 (const char* name, const OSRTDList* pElemList, char* buffer, OSSIZE bufSize);
360 
366 EXTERNRT int rtPrintToStringIndent (char* buffer, OSSIZE bufSize);
367 
371 EXTERNRT void rtPrintToStringResetIndent(OSVOIDARG);
372 
376 EXTERNRT void rtPrintToStringIncrIndent(OSVOIDARG);
377 
381 EXTERNRT void rtPrintToStringDecrIndent (OSVOIDARG);
382 
389 EXTERNRT int rtPrintToStringCloseBrace (char* buffer, OSSIZE bufSize);
390 
397 EXTERNRT int rtPrintToStringOpenBrace
398 (const char*, char* buffer, OSSIZE bufSize);
399 
400 #endif
401 
405 #ifdef __cplusplus
406 }
407 #endif
408 #endif
int rtPrintToString(const char *namebuf, char *buffer, OSSIZE bufSize)
void rtPrintToStringResetIndent(OSVOIDARG)
Definition: asn1type.h:686
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 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 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:698
int rtPrintToStringOpenTypeExtBraceText(const char *name, const OSRTDList *pElemList, char *buffer, OSSIZE bufSize)
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)