Products Support Documentation Download
rdmtfsapi.h
Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
2  * Raima Database Manager
3  *
4  * Copyright (c) 2014 Raima Inc., All rights reserved.
5  *
6  * Use of this software, whether in source code format, or in executable,
7  * binary object code form, is governed by the Raima LICENSE which
8  * is fully described in the LICENSE.TXT file, included within this
9  * distribution of files.
10  * ----------------------------------------------------------------------------
11  */
12 
17 #if !defined(RDMTFSAPI_H_INCLUDED_)
18 #define RDMTFSAPI_H_INCLUDED_
19 
20 #if defined(__cplusplus) && !defined(CPP_HEADER_INCLUDED)
21 #error rdmtfsapi.h is only for C applications. Do not include it directly in C++ applications. Use cpp-rdmtfsapi.h instead
22 #endif
23 
24 #include "rdmtfstypes.h"
25 #include "rdmtypes.h"
26 
59 #if !defined(RDM_NO_UNICODE)
60 #define rdm_tfsAllocEncrypt RDM_T_FUNC(rdm_tfsAllocEncrypt)
61 #define rdm_tfsDropDatabase RDM_T_FUNC(rdm_tfsDropDatabase)
62 #define rdm_tfsGetConnections RDM_T_FUNC(rdm_tfsGetConnections)
63 #define rdm_tfsGetOption RDM_T_FUNC(rdm_tfsGetOption)
64 #define rdm_tfsGetOptions RDM_T_FUNC(rdm_tfsGetOptions)
65 #define rdm_tfsKillAllRemoteConnections RDM_T_FUNC(rdm_tfsKillAllRemoteConnections)
66 #define rdm_tfsKillRemoteConnection RDM_T_FUNC(rdm_tfsKillRemoteConnection)
67 #define rdm_tfsPing RDM_T_FUNC(rdm_tfsPing)
68 #define rdm_tfsSetIniValue RDM_T_FUNC(rdm_tfsSetIniValue)
69 #define rdm_tfsSetOption RDM_T_FUNC(rdm_tfsSetOption)
70 #define rdm_tfsSetOptions RDM_T_FUNC(rdm_tfsSetOptions)
71 #endif
72 
89 RDM_EXPORT RDM_RETCODE EXTERNAL_FCN rdm_tfsAllocDatabase (
90  RDM_TFS tfs,
91  RDM_DB *pDb
92  );
93 
154 RDM_EXPORT RDM_RETCODE EXTERNAL_FCN rdm_tfsAllocEncrypt (
155  RDM_TFS hTFS,
156  const RDM_TCHAR_T *passcode,
157  RDM_ENCRYPT *pEnc
158  );
159 
160 
175 RDM_EXPORT RDM_RETCODE EXTERNAL_FCN rdm_tfsDisableListener (
176  RDM_TFS hTFS
177  )
178 ;
179 
205 RDM_EXPORT RDM_RETCODE EXTERNAL_FCN rdm_tfsDropDatabase (
206  RDM_TFS tfs,
207  const RDM_TCHAR_T *dbNameSpec
209  );
210 
211 
226 RDM_EXPORT RDM_RETCODE EXTERNAL_FCN rdm_tfsEnableListener (
227  RDM_TFS hTFS
228  )
229 ;
230 
239 RDM_EXPORT RDM_RETCODE EXTERNAL_FCN rdm_tfsFree (
240  RDM_TFS hTFS
241  )
242 ;
243 
260 RDM_EXPORT RDM_RETCODE EXTERNAL_FCN rdm_tfsGetMemUsage (
261  RDM_TFS tfs,
262  size_t *curr_usage,
263  size_t *max_usage
264  )
265 ;
266 
280 RDM_EXPORT RDM_RETCODE EXTERNAL_FCN rdm_tfsGetConnections (
281  RDM_TFS hTFS,
282  const RDM_TCHAR_T *uri,
283  const RDM_TCHAR_T *const **ppszUserIDs,
284  uint32_t *puUserCount
285  )
286 ;
287 
288 
299 RDM_EXPORT RDM_RETCODE EXTERNAL_FCN rdm_tfsGetEncrypt (
300  RDM_TFS hTFS,
301  RDM_ENCRYPT *pEncCtx
302  )
303 ;
304 
327 RDM_EXPORT RDM_RETCODE EXTERNAL_FCN rdm_tfsGetOption (
328  RDM_TFS tfs,
329  const RDM_TCHAR_T *keyword,
330  RDM_TCHAR_T *optValue,
331  size_t bytesIn,
332  size_t *bytesOut
333  )
334 ;
335 
358 RDM_EXPORT RDM_RETCODE EXTERNAL_FCN rdm_tfsGetOptions (
359  RDM_TFS tfs,
360  RDM_TCHAR_T *optString,
361  size_t bytesIn,
362  size_t *bytesOut
363  )
364 ;
365 
366 
378 RDM_EXPORT RDM_RETCODE EXTERNAL_FCN rdm_tfsGetVersion (
379  RDM_TFS hTFS,
380  uint16_t *pMajorV,
381  uint16_t *pMinorV,
382  TFS_TYPE *pTfsType
383  )
384 ;
385 
398 RDM_EXPORT RDM_RETCODE EXTERNAL_FCN rdm_tfsKillAllRemoteConnections (
399  RDM_TFS tfs,
400  const RDM_TCHAR_T *uri
401  )
402 ;
403 
413 RDM_EXPORT RDM_RETCODE EXTERNAL_FCN rdm_tfsKillRemoteConnection (
414  RDM_TFS hTFS,
415  const RDM_TCHAR_T *uri,
416  const RDM_TCHAR_T *dbUserID
417  )
418 ;
419 
432 RDM_EXPORT RDM_RETCODE EXTERNAL_FCN rdm_tfsPing (
433  RDM_TFS hTFS,
434  const RDM_TCHAR_T *uri
435  )
436 ;
437 
456 RDM_EXPORT RDM_RETCODE EXTERNAL_FCN rdm_tfsSetOption (
457  RDM_TFS tfs,
458  const RDM_TCHAR_T *keyword,
459  const RDM_TCHAR_T *strValue
460  )
461 ;
462 
481 RDM_EXPORT RDM_RETCODE EXTERNAL_FCN rdm_tfsSetOptions (
482  RDM_TFS tfs,
483  const RDM_TCHAR_T *optString
484  )
485 ;
486 
487 #endif /* RDMTFSAPI_H_INCLUDED_ */
488 
RDM_RETCODE rdm_tfsGetConnections(RDM_TFS hTFS, const RDM_TCHAR_T *uri, const RDM_TCHAR_T *const **ppszUserIDs, uint32_t *puUserCount)
Get the list of users connected to the TFS.
RDM_RETCODE rdm_tfsGetMemUsage(RDM_TFS tfs, size_t *curr_usage, size_t *max_usage)
Get memory usage associated with the TFS.
Header for the native RDM Runtime types.
RDM_RETCODE rdm_tfsEnableListener(RDM_TFS hTFS)
Starts the listener process for the TFS.
RDM_RETCODE rdm_tfsKillRemoteConnection(RDM_TFS hTFS, const RDM_TCHAR_T *uri, const RDM_TCHAR_T *dbUserID)
Kill the TFS connection associated with a user.
RDM_RETCODE rdm_tfsDropDatabase(RDM_TFS tfs, const RDM_TCHAR_T *dbNameSpec)
Drop the specified database.
struct RDM_TFS_S * RDM_TFS
RDM TFS Handle.
Definition: rdmtfstypes.h:21
RDM_RETCODE rdm_tfsFree(RDM_TFS hTFS)
Terminate a TFS service.
RDM_RETCODE rdm_tfsGetOption(RDM_TFS tfs, const RDM_TCHAR_T *keyword, RDM_TCHAR_T *optValue, size_t bytesIn, size_t *bytesOut)
Get a single TFS option into a string.
RDM_RETCODE
RDM status and error return codes.
RDM_RETCODE rdm_tfsSetOptions(RDM_TFS tfs, const RDM_TCHAR_T *optString)
Set TFS options.
RDM_RETCODE rdm_tfsKillAllRemoteConnections(RDM_TFS tfs, const RDM_TCHAR_T *uri)
Kill all the TFS connections.
RDM_RETCODE rdm_tfsPing(RDM_TFS hTFS, const RDM_TCHAR_T *uri)
Ping a remote TFS.
RDM_RETCODE rdm_tfsGetVersion(RDM_TFS hTFS, uint16_t *pMajorV, uint16_t *pMinorV, TFS_TYPE *pTfsType)
Get the TFS type and version.
RDM_RETCODE rdm_tfsGetEncrypt(RDM_TFS hTFS, RDM_ENCRYPT *pEncCtx)
Get the encryption context from a TFS.
RDM_RETCODE rdm_tfsSetOption(RDM_TFS tfs, const RDM_TCHAR_T *keyword, const RDM_TCHAR_T *strValue)
Set a single TFS option from a string.
RDM_RETCODE rdm_tfsDisableListener(RDM_TFS hTFS)
Stop the listener process for the TFS.
struct RDM_DB_S * RDM_DB
Definition: rdmtypes.h:240
RDM_RETCODE rdm_tfsAllocEncrypt(RDM_TFS hTFS, const RDM_TCHAR_T *passcode, RDM_ENCRYPT *pEnc)
Allocate an encryption context.
TFS_TYPE
Definition: rdmtfstypes.h:24
RDM_RETCODE rdm_tfsAllocDatabase(RDM_TFS tfs, RDM_DB *pDb)
Allocate memory for a new RDM db.
Header for the Transactional File Server (TFS) types.
RDM_RETCODE rdm_tfsGetOptions(RDM_TFS tfs, RDM_TCHAR_T *optString, size_t bytesIn, size_t *bytesOut)
Get TFS options.
#define RDM_TCHAR_T
Definition: psptypes.h:134
struct RDM_ENCRYPT_S * RDM_ENCRYPT
Definition: psptypes.h:77