Virtru SDK for C++  2.8.0
Virtru C++ SDK library - Create, Read, and Manage TDF3 Files
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
virtru_policy_c.h
Go to the documentation of this file.
1 /*
2 * Copyright © 2018 - 2019 Virtru Corporation
3 *
4 * SPDX - License - Identifier: MIT
5 *
6 */
7 //
8 // Virtru TDF3 SDK
9 //
10 // Created by Sujan Reddy on 2019/10/24.
11 //
12 
13 #ifndef VIRTRU_TDF3_SRC_VIRTRU_POLICY_C_H
14 #define VIRTRU_TDF3_SRC_VIRTRU_POLICY_C_H
15 
16 #include "virtru_constants_c.h"
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
26 
29 DLL_PUBLIC void VPolicyDestroy(VPolicyPtr vPolicyPtr);
30 
37 DLL_PUBLIC VSTATUS VSetOwner(VPolicyPtr vPolicyPtr, const char* owner);
38 
44 DLL_PUBLIC VSTATUS VGetOwner(VPolicyPtr vPolicyPtr, char** owner);
45 
51 DLL_PUBLIC VSTATUS VShareWithUsers(VPolicyPtr vPolicyPtr, const char ** users, unsigned int usersCount);
52 
58 DLL_PUBLIC VSTATUS VRemoveUsers(VPolicyPtr vPolicyPtr, const char ** users, unsigned int usersCount);
59 
66 DLL_PUBLIC VSTATUS VGetSharedUsers(VPolicyPtr vPolicyPtr, char*** users, unsigned int* usersCount);
67 
72 
77 
82 DLL_PUBLIC VSTATUS VIsReshareEnabled(VPolicyPtr vPolicyPtr, bool* flag);
83 
88 
93 
98 DLL_PUBLIC VSTATUS VIsWatermarkingEnabled(VPolicyPtr vPolicyPtr, bool* flag);
99 
104 
109 
114 DLL_PUBLIC VSTATUS VIsPrintEnabled(VPolicyPtr vPolicyPtr, bool* flag);
115 
120 
125 
130 DLL_PUBLIC VSTATUS VIsCopyEnabled(VPolicyPtr vPolicyPtr, bool* flag);
131 
136 
141 
146 DLL_PUBLIC VSTATUS VIsPersistentProtection(VPolicyPtr vPolicyPtr, bool* flag);
147 
152 
157 
163 
169 DLL_PUBLIC VSTATUS VExpireInMins(VPolicyPtr vPolicyPtr, unsigned int mins);
170 
176 DLL_PUBLIC VSTATUS VExpireInDays(VPolicyPtr vPolicyPtr, unsigned int days);
177 
183 DLL_PUBLIC VSTATUS VAddExpiration(VPolicyPtr vPolicyPtr, const char* expirationDate);
184 
189 
195 DLL_PUBLIC VSTATUS VGetExpiration(VPolicyPtr vPolicyPtr, char** expirationTimeStamp);
196 
197 #ifdef __cplusplus
198 }
199 #endif
200 
201 #endif //VIRTRU_TDF3_SRC_VIRTRU_POLICY_C_H
DLL_PUBLIC VSTATUS VEnablePreventDownload(VPolicyPtr vPolicyPtr)
DLL_PUBLIC VSTATUS VEnableCopy(VPolicyPtr vPolicyPtr)
DLL_PUBLIC VSTATUS VEnablePrint(VPolicyPtr vPolicyPtr)
DLL_PUBLIC VSTATUS VDisablePersistentProtection(VPolicyPtr vPolicyPtr)
DLL_PUBLIC VSTATUS VEnableWatermarking(VPolicyPtr vPolicyPtr)
DLL_PUBLIC VSTATUS VIsCopyEnabled(VPolicyPtr vPolicyPtr, bool *flag)
DLL_PUBLIC VSTATUS VRemoveExpiration(VPolicyPtr vPolicyPtr)
DLL_PUBLIC VSTATUS VDisableCopy(VPolicyPtr vPolicyPtr)
VSTATUS
Definition: virtru_constants_c.h:48
DLL_PUBLIC VSTATUS VRemoveUsers(VPolicyPtr vPolicyPtr, const char **users, unsigned int usersCount)
DLL_PUBLIC VSTATUS VExpireInDays(VPolicyPtr vPolicyPtr, unsigned int days)
DLL_PUBLIC VSTATUS VEnablePersistentProtection(VPolicyPtr vPolicyPtr)
DLL_PUBLIC VSTATUS VDisableReshare(VPolicyPtr vPolicyPtr)
DLL_PUBLIC VSTATUS VGetOwner(VPolicyPtr vPolicyPtr, char **owner)
DLL_PUBLIC VSTATUS VIsReshareEnabled(VPolicyPtr vPolicyPtr, bool *flag)
DLL_PUBLIC VSTATUS VDisablePrint(VPolicyPtr vPolicyPtr)
DLL_PUBLIC void VPolicyDestroy(VPolicyPtr vPolicyPtr)
DLL_PUBLIC VSTATUS VIsWatermarkingEnabled(VPolicyPtr vPolicyPtr, bool *flag)
DLL_PUBLIC VSTATUS VSetOwner(VPolicyPtr vPolicyPtr, const char *owner)
void * VPolicyPtr
Definition: virtru_constants_c.h:80
DLL_PUBLIC VSTATUS VDisablePreventDownload(VPolicyPtr vPolicyPtr)
DLL_PUBLIC VSTATUS VGetExpiration(VPolicyPtr vPolicyPtr, char **expirationTimeStamp)
DLL_PUBLIC VSTATUS VIsPersistentProtection(VPolicyPtr vPolicyPtr, bool *flag)
DLL_PUBLIC VSTATUS VDisableWatermarking(VPolicyPtr vPolicyPtr)
#define DLL_PUBLIC
Definition: virtru_constants_c.h:38
DLL_PUBLIC VSTATUS VAddExpiration(VPolicyPtr vPolicyPtr, const char *expirationDate)
DLL_PUBLIC VSTATUS VExpireInMins(VPolicyPtr vPolicyPtr, unsigned int mins)
DLL_PUBLIC VPolicyPtr VPolicyCreate()
DLL_PUBLIC VSTATUS VIsPrintEnabled(VPolicyPtr vPolicyPtr, bool *flag)
DLL_PUBLIC VSTATUS VShareWithUsers(VPolicyPtr vPolicyPtr, const char **users, unsigned int usersCount)
DLL_PUBLIC VSTATUS VIsPreventDownloadEnabled(VPolicyPtr vPolicyPtr, bool *flag)
DLL_PUBLIC VSTATUS VGetSharedUsers(VPolicyPtr vPolicyPtr, char ***users, unsigned int *usersCount)
DLL_PUBLIC VSTATUS VEnableReshare(VPolicyPtr vPolicyPtr)