AlterOffice
AlterOffice 3.4 SDK C/C++ API Reference
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
random.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 
3 
4 #ifndef INCLUDED_RTL_RANDOM_H
5 #define INCLUDED_RTL_RANDOM_H
6 
7 #include "sal/config.h"
8 
9 #include "sal/saldllapi.h"
10 #include "sal/types.h"
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
18 typedef void* rtlRandomPool;
19 
20 
24 {
30 };
31 
35 
36 
40 SAL_DLLPUBLIC rtlRandomPool SAL_CALL rtl_random_createPool (void) SAL_THROW_EXTERN_C();
41 
42 
47  rtlRandomPool Pool
48 ) SAL_THROW_EXTERN_C();
49 
50 
57 SAL_DLLPUBLIC rtlRandomError SAL_CALL rtl_random_addBytes (
58  rtlRandomPool Pool,
59  const void *Buffer,
60  sal_Size Bytes
61 ) SAL_THROW_EXTERN_C();
62 
63 
70 SAL_DLLPUBLIC rtlRandomError SAL_CALL rtl_random_getBytes (
71  rtlRandomPool Pool,
72  void *Buffer,
73  sal_Size Bytes
74 ) SAL_THROW_EXTERN_C();
75 
76 #ifdef __cplusplus
77 }
78 #endif
79 
80 #endif // INCLUDED_RTL_RANDOM_H
81 
82 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SAL_DLLPUBLIC rtlRandomError rtl_random_getBytes(rtlRandomPool Pool, void *Buffer, sal_Size Bytes) SAL_THROW_EXTERN_C()
Retrieve bytes from a Random Pool.
void * rtlRandomPool
Random Pool opaque type.
Definition: random.h:18
SAL_DLLPUBLIC rtlRandomPool rtl_random_createPool(void) SAL_THROW_EXTERN_C()
Create a Random Pool.
Definition: random.h:26
SAL_DLLPUBLIC rtlRandomError rtl_random_addBytes(rtlRandomPool Pool, const void *Buffer, sal_Size Bytes) SAL_THROW_EXTERN_C()
Add bytes to a Random Pool.
Definition: random.h:27
CPPU_DLLPUBLIC void SAL_THROW_EXTERN_C()
This method is called to wait for a reply of a previously sent request.
Definition: random.h:25
Definition: random.h:29
#define SAL_MAX_ENUM
Definition: types.h:185
SAL_DLLPUBLIC void rtl_random_destroyPool(rtlRandomPool Pool) SAL_THROW_EXTERN_C()
Destroy a Random Pool.
enum __rtl_RandomError rtlRandomError
Error Code type.
Definition: random.h:34
__rtl_RandomError
Error Code enumeration.
Definition: random.h:23
Definition: random.h:28
#define SAL_DLLPUBLIC
Definition: saldllapi.h:14