ADL (AMD Display Library) Public APIs  Version 17.1
appprofiles.h
Go to the documentation of this file.
1 
7 
15 
16 #ifndef APPPROFILES_H_
17 #define APPPROFILES_H_
18 
19 #include "adl_structures.h"
20 
21 #ifndef ADL_EXTERNC
22 #ifdef __cplusplus
23 #define ADL_EXTERNC extern "C"
24 #else
25 #define ADL_EXTERNC
26 #endif
27 #endif
28 
29 #ifndef EXPOSED
30 #define EXPOSED
31 #endif /* EXPOSED */
32 
36 
39 
40 int HIDDEN GetAMDAdapterIndex(LPADLContext myContext);
41 
52 
61 
72 
81 
92 
101 
102 
103 
104 /* TODO++ NOT FINALIZED IN ADL
105 
115 ADL_EXTERNC int EXPOSED ADL2_ApplicationProfiles_StatusInfo_Get(ADL_CONTEXT_HANDLE context);
116 
124 ADL_EXTERNC int EXPOSED ADL_ApplicationProfiles_StatusInfo_Get();
125 
126 
127 ADL_EXTERNC int EXPOSED ADL_ApplicationProfiles_Get();
128 ADL_EXTERNC int EXPOSED ADL_ApplicationProfiles_Select();
129 
130 */
131 
150 ADL_EXTERNC int EXPOSED ADL2_ApplicationProfiles_ProfileOfAnApplication_Search(ADL_CONTEXT_HANDLE context,const char* FileName, const char* Path,
151  const char* Version, const char* AppProfileArea, ADLApplicationProfile** lppProfile);
152 
169 ADL_EXTERNC int EXPOSED ADL_ApplicationProfiles_ProfileOfAnApplication_Search(const char* FileName, const char* Path,
170  const char* Version, const char* AppProfileArea, ADLApplicationProfile** lppProfile);
171 
172 
189 ADL_EXTERNC int EXPOSED ADL2_ApplicationProfiles_HitLists_Get(ADL_CONTEXT_HANDLE context, int iListType, int * lpNumApps, ADLApplicationData ** lppAppList);
190 
205 ADL_EXTERNC int EXPOSED ADL_ApplicationProfiles_HitLists_Get( int iListType, int * lpNumApps, ADLApplicationData ** lppAppList);
206 
207 
224 ADL_EXTERNC int EXPOSED ADL2_ApplicationProfiles_HitListsX3_Get(ADL_CONTEXT_HANDLE context, int iListType, int * lpNumApps, ADLApplicationDataX3 ** lppAppList);
225 
242 ADL_EXTERNC int EXPOSED ADL2_ApplicationProfiles_HitListsX2_Get(ADL_CONTEXT_HANDLE context, int iListType, int * lpNumApps, ADLApplicationDataX2 ** lppAppList);
243 
258 ADL_EXTERNC int EXPOSED ADL_ApplicationProfiles_HitListsX2_Get( int iListType, int * lpNumApps, ADLApplicationDataX2 ** lppAppList);
259 
271 ADL_EXTERNC int EXPOSED ADL2_ApplicationProfiles_AppInterception_Set(ADL_CONTEXT_HANDLE context, int iAppType, unsigned int iProcId, int iEnabled);
272 
284 ADL_EXTERNC int EXPOSED ADL2_ApplicationProfiles_AppInterceptionList_Set(ADL_CONTEXT_HANDLE context, int iAppType, int iNumberOfApps, ADLAppInterceptionInfo* lpAppInfo);
285 
302 ADL_EXTERNC int EXPOSED ADL2_ApplicationProfiles_Applications_Get(ADL_CONTEXT_HANDLE context, const wchar_t * driverArea, int * numApps, ADLApplicationRecord ** adlApplications);
303 
318 ADL_EXTERNC int EXPOSED ADL_ApplicationProfiles_Applications_Get(const wchar_t * driverArea, int * numApps, ADLApplicationRecord ** adlApplications);
319 
330 ADL_EXTERNC int EXPOSED ADL2_ApplicationProfiles_AppStartStop_Resume(ADL_CONTEXT_HANDLE context, int iAppType, unsigned int ProcessId);
331 
344 
359 ADL_EXTERNC int EXPOSED ADL2_ApplicationProfiles_ConvertToCompact(ADL_CONTEXT_HANDLE context, CUSTOMISATIONS * pCustomisation, BINFILE * outCompact, int * outSize);
360 
373 ADL_EXTERNC int EXPOSED ADL_ApplicationProfiles_ConvertToCompact(CUSTOMISATIONS * pCustomisation, BINFILE * outCompact, int * outSize);
374 
388 ADL_EXTERNC int EXPOSED ADL2_ApplicationProfiles_DriverAreaPrivacy_Get(ADL_CONTEXT_HANDLE context, const wchar_t * DriverArea, PRIVACYTYPES * outDriverAreaPrivacy);
389 
401 ADL_EXTERNC int EXPOSED ADL_ApplicationProfiles_DriverAreaPrivacy_Get(const wchar_t * DriverArea, PRIVACYTYPES * outDriverAreaPrivacy);
402 
417 
430 
446 ADL_EXTERNC int EXPOSED ADL2_ApplicationProfiles_Profile_Create(ADL_CONTEXT_HANDLE context, const wchar_t * driverArea, const wchar_t * profileName, int numProperties, const ADLPropertyRecordCreate * propertyRecords);
447 
461 ADL_EXTERNC int EXPOSED ADL_ApplicationProfiles_Profile_Create(const wchar_t * driverArea, const wchar_t * profileName, int numProperties, const ADLPropertyRecordCreate * propertyRecords);
462 
477 ADL_EXTERNC int EXPOSED ADL2_ApplicationProfiles_Profile_Exist(ADL_CONTEXT_HANDLE context, const wchar_t * DriverArea, const wchar_t * ProfileName, BOOL * outExists);
478 
491 ADL_EXTERNC int EXPOSED ADL_ApplicationProfiles_Profile_Exist(const wchar_t * DriverArea, const wchar_t * ProfileName, BOOL * outExists);
492 
506 ADL_EXTERNC int EXPOSED ADL2_ApplicationProfiles_Profile_Remove(ADL_CONTEXT_HANDLE context, const wchar_t * driverArea, const wchar_t * profileName);
507 
519 ADL_EXTERNC int EXPOSED ADL_ApplicationProfiles_Profile_Remove(const wchar_t * driverArea, const wchar_t * profileName);
520 
537 ADL_EXTERNC int EXPOSED ADL2_ApplicationProfiles_ProfileApplication_Assign(ADL_CONTEXT_HANDLE context, const wchar_t * FileName, const wchar_t * Path, const wchar_t * Version, const wchar_t * DriverArea, const wchar_t * ProfileName);
538 
553 ADL_EXTERNC int EXPOSED ADL_ApplicationProfiles_ProfileApplication_Assign(const wchar_t * FileName, const wchar_t * Path, const wchar_t * Version, const wchar_t * DriverArea, const wchar_t * ProfileName);
554 
572 ADL_EXTERNC int EXPOSED ADL2_ApplicationProfiles_ProfileApplicationX2_Assign(ADL_CONTEXT_HANDLE context, const wchar_t * FileName, const wchar_t * Path, const wchar_t * Version, const wchar_t * Title, const wchar_t * DriverArea, const wchar_t * ProfileName);
573 
589 ADL_EXTERNC int EXPOSED ADL_ApplicationProfiles_ProfileApplicationX2_Assign(const wchar_t * FileName, const wchar_t * Path, const wchar_t * Version, const wchar_t * Title, const wchar_t * DriverArea, const wchar_t * ProfileName);
590 
595 // ADL_ApplicationProfiles_ProfileOfAnApplication_Search the method will not issue AP_SELECT and AP_GET KMD escapes. Instead it will use in-memory
596 // instance of APL to execute its APL_SelectProfile and APL_GetProfile API.
597 // expected that the method will be called by 3rd-parties applications. Internal clients will also call the method only for testing purposes.
598 // Motivation for introducing the method is to enable members of CCC team to test their changes in KMD APL application data look-up mechanism.
614 ADL_EXTERNC int EXPOSED ADL2_ApplicationProfiles_ProfileOfAnApplication_InMemorySearch(ADL_CONTEXT_HANDLE context, const wchar_t* fileName, const wchar_t* path, const wchar_t* version, const wchar_t* appProfileArea,
615  ADLApplicationProfile** lppProfile);
616 
630 ADL_EXTERNC int EXPOSED ADL_ApplicationProfiles_ProfileOfAnApplication_InMemorySearch(const wchar_t* fileName, const wchar_t* path, const wchar_t* version, const wchar_t* appProfileArea,
631  ADLApplicationProfile** lppProfile);
632 
651 ADL_EXTERNC int EXPOSED ADL2_ApplicationProfiles_ProfileOfAnApplicationX2_Search(ADL_CONTEXT_HANDLE context, const wchar_t* FileName, const wchar_t* Path,
652  const wchar_t* Version, const wchar_t* AppProfileArea, ADLApplicationProfile** lppProfile);
653 
670 ADL_EXTERNC int EXPOSED ADL_ApplicationProfiles_ProfileOfAnApplicationX2_Search(const wchar_t* FileName, const wchar_t* Path,
671  const wchar_t* Version, const wchar_t* AppProfileArea, ADLApplicationProfile** lppProfile);
672 
687 ADL_EXTERNC int EXPOSED ADL2_ApplicationProfiles_PropertyType_Get(ADL_CONTEXT_HANDLE context, const wchar_t * DriverArea, const wchar_t * PropertyName, DATATYPES * outType);
688 
701 ADL_EXTERNC int EXPOSED ADL_ApplicationProfiles_PropertyType_Get(const wchar_t * DriverArea, const wchar_t * PropertyName, DATATYPES * outType);
702 
703 
716 ADL_EXTERNC int EXPOSED ADL2_ApplicationProfiles_Release_Get(ADL_CONTEXT_HANDLE context, wchar_t** strRelease);
717 
728 ADL_EXTERNC int EXPOSED ADL_ApplicationProfiles_Release_Get(wchar_t** strRelease);
729 
730 
746 ADL_EXTERNC int EXPOSED ADL2_ApplicationProfiles_RemoveApplication(ADL_CONTEXT_HANDLE context, const wchar_t* FileName, const wchar_t* Path, const wchar_t* Version, const wchar_t* DriverArea);
747 
761 ADL_EXTERNC int EXPOSED ADL_ApplicationProfiles_RemoveApplication(const wchar_t* FileName, const wchar_t* Path, const wchar_t* Version, const wchar_t* DriverArea);
762 
774 ADL_EXTERNC int EXPOSED ADL2_ApplicationProfilesX2_AppInterceptionList_Set(ADL_CONTEXT_HANDLE context, int iAppType, int iNumberOfApps, ADLAppInterceptionInfoX2* lpAppInfo);
775 
787 
789 
790 #endif /* appprofiles_H_ */
ADL2_ApplicationProfiles_Applications_Get
int ADL2_ApplicationProfiles_Applications_Get(ADL_CONTEXT_HANDLE context, const wchar_t *driverArea, int *numApps, ADLApplicationRecord **adlApplications)
CUSTOMISATIONS
Definition: structures.h:128
ADL_ApplicationProfiles_RemoveApplication
int ADL_ApplicationProfiles_RemoveApplication(const wchar_t *FileName, const wchar_t *Path, const wchar_t *Version, const wchar_t *DriverArea)
ADL_ApplicationProfiles_HitLists_Get
int ADL_ApplicationProfiles_HitLists_Get(int iListType, int *lpNumApps, ADLApplicationData **lppAppList)
Function to retrieve the recent application list from registry.
ADLApplicationDataX2
Structure containing information about an application.
Definition: adl_structures.h:1948
ADL2_ApplicationProfiles_Profile_Create
int ADL2_ApplicationProfiles_Profile_Create(ADL_CONTEXT_HANDLE context, const wchar_t *driverArea, const wchar_t *profileName, int numProperties, const ADLPropertyRecordCreate *propertyRecords)
ADL_ApplicationProfiles_Profile_Remove
int ADL_ApplicationProfiles_Profile_Remove(const wchar_t *driverArea, const wchar_t *profileName)
Version
unsigned int Version
Definition: structures.h:1
ADL2_ApplicationProfiles_AppStartStopInfo_Get
int ADL2_ApplicationProfiles_AppStartStopInfo_Get(ADL_CONTEXT_HANDLE context, int iAppType, ADLAppInterceptionInfo *lpAppInfo)
ADL_ApplicationProfiles_DriverAreaPrivacy_Get
int ADL_ApplicationProfiles_DriverAreaPrivacy_Get(const wchar_t *DriverArea, PRIVACYTYPES *outDriverAreaPrivacy)
adl_structures.h
This file contains the structure declarations that are used by the public ADL interfaces for Linux an...
ADL2_ApplicationProfiles_ProfileOfAnApplicationX2_Search
int ADL2_ApplicationProfiles_ProfileOfAnApplicationX2_Search(ADL_CONTEXT_HANDLE context, const wchar_t *FileName, const wchar_t *Path, const wchar_t *Version, const wchar_t *AppProfileArea, ADLApplicationProfile **lppProfile)
ADL_AP_DATABASE
ADL_AP_DATABASE
Definition: adl_structures.h:2393
ADL2_ApplicationProfiles_Profile_Remove
int ADL2_ApplicationProfiles_Profile_Remove(ADL_CONTEXT_HANDLE context, const wchar_t *driverArea, const wchar_t *profileName)
ADL2_ApplicationProfiles_System_Reload
int ADL2_ApplicationProfiles_System_Reload(ADL_CONTEXT_HANDLE context)
Function to Reload System appprofiles.
ADL2_ApplicationProfiles_ProfileOfAnApplication_Search
int ADL2_ApplicationProfiles_ProfileOfAnApplication_Search(ADL_CONTEXT_HANDLE context, const char *FileName, const char *Path, const char *Version, const char *AppProfileArea, ADLApplicationProfile **lppProfile)
Function to retrieve the profile of an application defined in driver.
ADL2_ApplicationProfiles_GetCustomization
int ADL2_ApplicationProfiles_GetCustomization(ADL_CONTEXT_HANDLE context, ADL_AP_DATABASE Databaseln, CUSTOMISATIONS *pCustomizationOut)
ADL_ApplicationProfiles_ProfileApplicationX2_Assign
int ADL_ApplicationProfiles_ProfileApplicationX2_Assign(const wchar_t *FileName, const wchar_t *Path, const wchar_t *Version, const wchar_t *Title, const wchar_t *DriverArea, const wchar_t *ProfileName)
ADL2_ApplicationProfiles_ProfileApplication_Assign
int ADL2_ApplicationProfiles_ProfileApplication_Assign(ADL_CONTEXT_HANDLE context, const wchar_t *FileName, const wchar_t *Path, const wchar_t *Version, const wchar_t *DriverArea, const wchar_t *ProfileName)
ADLPropertyRecordCreate
Structure containing information info for a property record in a profile.
Definition: adl_structures.h:2427
ADL2_ApplicationProfiles_ProfileOfAnApplication_InMemorySearch
int ADL2_ApplicationProfiles_ProfileOfAnApplication_InMemorySearch(ADL_CONTEXT_HANDLE context, const wchar_t *fileName, const wchar_t *path, const wchar_t *version, const wchar_t *appProfileArea, ADLApplicationProfile **lppProfile)
ADLAppInterceptionInfo
Definition: adl_structures.h:2385
ADL_ApplicationProfiles_ProfileOfAnApplication_Search
int ADL_ApplicationProfiles_ProfileOfAnApplication_Search(const char *FileName, const char *Path, const char *Version, const char *AppProfileArea, ADLApplicationProfile **lppProfile)
Function to retrieve the profile of an application defined in driver.
ADL_ApplicationProfiles_User_Load
int ADL_ApplicationProfiles_User_Load()
Function to Load User appprofiles.
ADL_ApplicationProfiles_Release_Get
int ADL_ApplicationProfiles_Release_Get(wchar_t **strRelease)
ADL2_ApplicationProfiles_AppStartStop_Resume
int ADL2_ApplicationProfiles_AppStartStop_Resume(ADL_CONTEXT_HANDLE context, int iAppType, unsigned int ProcessId)
ADL2_ApplicationProfiles_Release_Get
int ADL2_ApplicationProfiles_Release_Get(ADL_CONTEXT_HANDLE context, wchar_t **strRelease)
ADL2_ApplicationProfiles_RemoveApplication
int ADL2_ApplicationProfiles_RemoveApplication(ADL_CONTEXT_HANDLE context, const wchar_t *FileName, const wchar_t *Path, const wchar_t *Version, const wchar_t *DriverArea)
ADL_ApplicationProfiles_User_Unload
int ADL_ApplicationProfiles_User_Unload()
Function to Unload User appprofiles.
ADL_ApplicationProfiles_HitListsX2_Get
int ADL_ApplicationProfiles_HitListsX2_Get(int iListType, int *lpNumApps, ADLApplicationDataX2 **lppAppList)
Function to retrieve the recent application list from registry.
ADL2_ApplicationProfiles_User_Load
int ADL2_ApplicationProfiles_User_Load(ADL_CONTEXT_HANDLE context)
Function to Load User appprofiles.
ADL2_ApplicationProfiles_PropertyType_Get
int ADL2_ApplicationProfiles_PropertyType_Get(ADL_CONTEXT_HANDLE context, const wchar_t *DriverArea, const wchar_t *PropertyName, DATATYPES *outType)
ADL_ApplicationProfiles_ConvertToCompact
int ADL_ApplicationProfiles_ConvertToCompact(CUSTOMISATIONS *pCustomisation, BINFILE *outCompact, int *outSize)
ADLApplicationRecord
Structure containing information info for an application record.
Definition: adl_structures.h:2443
PRIVACYTYPES
PRIVACYTYPES
Definition: structures.h:15
ADL2_ApplicationProfiles_DriverAreaPrivacy_Get
int ADL2_ApplicationProfiles_DriverAreaPrivacy_Get(ADL_CONTEXT_HANDLE context, const wchar_t *DriverArea, PRIVACYTYPES *outDriverAreaPrivacy)
BINFILE
Definition: structures.h:242
ADL_ApplicationProfiles_GetCustomization
int ADL_ApplicationProfiles_GetCustomization(ADL_AP_DATABASE Databaseln, CUSTOMISATIONS *pCustomizationOut)
ADL_EXTERNC
#define ADL_EXTERNC
Definition: appprofiles.h:25
ADL2_ApplicationProfiles_ConvertToCompact
int ADL2_ApplicationProfiles_ConvertToCompact(ADL_CONTEXT_HANDLE context, CUSTOMISATIONS *pCustomisation, BINFILE *outCompact, int *outSize)
ADL2_ApplicationProfiles_HitListsX2_Get
int ADL2_ApplicationProfiles_HitListsX2_Get(ADL_CONTEXT_HANDLE context, int iListType, int *lpNumApps, ADLApplicationDataX2 **lppAppList)
Function to retrieve the recent application list from registry.
ADLAppInterceptionInfoX2
Definition: adl_structures.h:2400
ADL2_ApplicationProfilesX2_AppInterceptionList_Set
int ADL2_ApplicationProfilesX2_AppInterceptionList_Set(ADL_CONTEXT_HANDLE context, int iAppType, int iNumberOfApps, ADLAppInterceptionInfoX2 *lpAppInfo)
ADLApplicationData
Structure containing information about an application.
Definition: adl_structures.h:1930
ADL_ApplicationProfiles_System_Reload
int ADL_ApplicationProfiles_System_Reload()
Function to Reload System appprofiles.
ADL_ApplicationProfiles_ProfileOfAnApplicationX2_Search
int ADL_ApplicationProfiles_ProfileOfAnApplicationX2_Search(const wchar_t *FileName, const wchar_t *Path, const wchar_t *Version, const wchar_t *AppProfileArea, ADLApplicationProfile **lppProfile)
ADL_CONTEXT_HANDLE
void * ADL_CONTEXT_HANDLE
Handle to ADL client context.
Definition: adl_structures.h:2336
GetAMDAdapterIndex
int GetAMDAdapterIndex(LPADLContext myContext)
ADL_ApplicationProfiles_PropertyType_Get
int ADL_ApplicationProfiles_PropertyType_Get(const wchar_t *DriverArea, const wchar_t *PropertyName, DATATYPES *outType)
ADL_ApplicationProfiles_Profile_Create
int ADL_ApplicationProfiles_Profile_Create(const wchar_t *driverArea, const wchar_t *profileName, int numProperties, const ADLPropertyRecordCreate *propertyRecords)
ADL2_ApplicationProfiles_ProfileApplicationX2_Assign
int ADL2_ApplicationProfiles_ProfileApplicationX2_Assign(ADL_CONTEXT_HANDLE context, const wchar_t *FileName, const wchar_t *Path, const wchar_t *Version, const wchar_t *Title, const wchar_t *DriverArea, const wchar_t *ProfileName)
ADL2_ApplicationProfiles_HitLists_Get
int ADL2_ApplicationProfiles_HitLists_Get(ADL_CONTEXT_HANDLE context, int iListType, int *lpNumApps, ADLApplicationData **lppAppList)
Function to retrieve the recent application list from registry.
ADL2_ApplicationProfiles_AppInterceptionList_Set
int ADL2_ApplicationProfiles_AppInterceptionList_Set(ADL_CONTEXT_HANDLE context, int iAppType, int iNumberOfApps, ADLAppInterceptionInfo *lpAppInfo)
ADL2_ApplicationProfiles_AppInterception_Set
int ADL2_ApplicationProfiles_AppInterception_Set(ADL_CONTEXT_HANDLE context, int iAppType, unsigned int iProcId, int iEnabled)
ADL2_ApplicationProfiles_HitListsX3_Get
int ADL2_ApplicationProfiles_HitListsX3_Get(ADL_CONTEXT_HANDLE context, int iListType, int *lpNumApps, ADLApplicationDataX3 **lppAppList)
Function to retrieve the recent application list from registry.
ADLApplicationDataX3
Structure containing information about an application.
Definition: adl_structures.h:1966
ADL_ApplicationProfiles_Profile_Exist
int ADL_ApplicationProfiles_Profile_Exist(const wchar_t *DriverArea, const wchar_t *ProfileName, BOOL *outExists)
ADL_ApplicationProfiles_Applications_Get
int ADL_ApplicationProfiles_Applications_Get(const wchar_t *driverArea, int *numApps, ADLApplicationRecord **adlApplications)
ADL2_ApplicationProfiles_Profile_Exist
int ADL2_ApplicationProfiles_Profile_Exist(ADL_CONTEXT_HANDLE context, const wchar_t *DriverArea, const wchar_t *ProfileName, BOOL *outExists)
ADL_ApplicationProfiles_ProfileOfAnApplication_InMemorySearch
int ADL_ApplicationProfiles_ProfileOfAnApplication_InMemorySearch(const wchar_t *fileName, const wchar_t *path, const wchar_t *version, const wchar_t *appProfileArea, ADLApplicationProfile **lppProfile)
ADLApplicationProfile
Structure containing information about an application profile.
Definition: adl_structures.h:2004
ADL_ApplicationProfiles_ProfileApplication_Assign
int ADL_ApplicationProfiles_ProfileApplication_Assign(const wchar_t *FileName, const wchar_t *Path, const wchar_t *Version, const wchar_t *DriverArea, const wchar_t *ProfileName)
DATATYPES
DATATYPES
Definition: structures.h:23
ADL2_ApplicationProfiles_User_Unload
int ADL2_ApplicationProfiles_User_Unload(ADL_CONTEXT_HANDLE context)
Function to Unload User appprofiles.

Copyright © 2009-2020 Advanced Micro Devices, Inc. All rights reserved.