00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00027 #ifndef _RTPRINTTOSTRING_H_
00028 #define _RTPRINTTOSTRING_H_
00029 #include <stdio.h>
00030 #include "rtsrc/asn1type.h"
00031
00032 #ifdef __cplusplus
00033 extern "C" {
00034 #endif
00035
00055 EXTERNRT int rtPrintToStringBoolean (const char* name, OSBOOL value,
00056 char* buffer, OSSIZE bufferSize);
00057
00068 EXTERNRT int rtPrintToStringInteger (const char* name, OSINT32 value,
00069 char* buffer, OSSIZE bufferSize);
00070
00081 EXTERNRT int rtPrintToStringInt64 (const char* name, OSINT64 value,
00082 char* buffer, OSSIZE bufferSize);
00083
00094 EXTERNRT int rtPrintToStringUnsigned (const char* name, OSUINT32 value,
00095 char* buffer, OSSIZE bufferSize);
00096
00107 EXTERNRT int rtPrintToStringUInt64 (const char* name, OSUINT64 value,
00108 char* buffer, OSSIZE bufferSize);
00109
00119 EXTERNRT int rtPrintToStringBitStr (const char* name,
00120 OSSIZE numbits, const OSOCTET* data, const char* conn,
00121 char* buffer, OSSIZE bufferSize);
00122
00133 EXTERNRT int rtPrintToStringBitStrBraceText
00134 (const char* name, OSSIZE numbits, const OSOCTET* data,
00135 char* buffer, OSSIZE bufferSize);
00136
00146 EXTERNRT int rtPrintToStringOctStr (const char* name,
00147 OSSIZE numocts, const OSOCTET* data, const char* conn,
00148 char* buffer, OSSIZE bufferSize);
00149
00156 EXTERNRT int rtPrintToStringCharStr (const char* name,
00157 const char* cstring, char* buffer, OSSIZE bufferSize);
00158
00165 EXTERNRT int rtPrintToStringUTF8Str (const char *name,
00166 const OSUTF8CHAR *ustring, char *buffer, OSSIZE bufferSize);
00167
00176 EXTERNRT int rtPrintToString16BitCharStr (const char* name,
00177 const Asn116BitCharString* bstring, const char* conn,
00178 char* buffer, OSSIZE bufferSize);
00179
00188 EXTERNRT int rtPrintToString32BitCharStr (const char* name,
00189 const Asn132BitCharString* bstring, const char* conn,
00190 char* buffer, OSSIZE bufferSize);
00191
00202 EXTERNRT int rtPrintToStringReal (const char* name, OSREAL value,
00203 char* buffer, OSSIZE bufferSize);
00204
00211 EXTERNRT int rtPrintToStringOID (const char* name, const ASN1OBJID* pOID,
00212 char* buffer, OSSIZE bufferSize);
00213
00220 EXTERNRT int rtPrintToStringOID64 (const char* name, const ASN1OID64* pOID,
00221 char* buffer, OSSIZE bufferSize);
00222
00229 EXTERNRT int rtPrintToStringOIDValue (const ASN1OBJID* pOID,
00230 char* buffer, OSSIZE bufferSize);
00231
00238 EXTERNRT int rtPrintToStringOID64Value (const ASN1OID64* pOID,
00239 char* buffer, OSSIZE bufferSize);
00240
00250 EXTERNRT int rtPrintToStringOpenType (const char* name,
00251 OSSIZE numocts, const OSOCTET* data, const char* conn,
00252 char* buffer, OSSIZE bufferSize);
00253
00260 EXTERNRT int rtPrintToStringOpenTypeExt (const char* name,
00261 const OSRTDList* pElemList, char* buffer, OSSIZE bufferSize);
00262
00268 EXTERNRT int rtPrintToString
00269 (const char* namebuf, char* buffer, OSSIZE bufSize);
00270
00283 EXTERNRT int rtPrintToStringHexStr
00284 (const char* name, OSSIZE numocts, const OSOCTET* data, char* buffer,
00285 OSSIZE bufSize);
00286
00298 EXTERNRT int rtPrintToStringUnicodeCharStr
00299 (const char* name, const Asn116BitCharString* bstring, char* buffer,
00300 OSSIZE bufSize);
00301
00313 EXTERNRT int rtPrintToStringUnivCharStr (const char* name,
00314 const Asn132BitCharString* bstring, char* buffer, OSSIZE bufSize);
00315
00316 #ifndef __SYMBIAN32__
00317
00326 EXTERNRT int rtPrintToStringOpenTypeExtBraceText
00327 (const char* name, const OSRTDList* pElemList, char* buffer, OSSIZE bufSize);
00328
00334 EXTERNRT int rtPrintToStringIndent (char* buffer, OSSIZE bufSize);
00335
00339 EXTERNRT void rtPrintToStringIncrIndent(void);
00340
00344 EXTERNRT void rtPrintToStringDecrIndent (void);
00345
00352 EXTERNRT int rtPrintToStringCloseBrace (char* buffer, OSSIZE bufSize);
00353
00360 EXTERNRT int rtPrintToStringOpenBrace
00361 (const char*, char* buffer, OSSIZE bufSize);
00362
00363 #endif
00364
00368 #ifdef __cplusplus
00369 }
00370 #endif
00371 #endif