Blame include/freerdp/addin.h

Packit 1fb8d4
/**
Packit 1fb8d4
 * FreeRDP: A Remote Desktop Protocol Implementation
Packit 1fb8d4
 * Addin Loader
Packit 1fb8d4
 *
Packit 1fb8d4
 * Copyright 2012 Marc-Andre Moreau <marcandre.moreau@gmail.com>
Packit 1fb8d4
 *
Packit 1fb8d4
 * Licensed under the Apache License, Version 2.0 (the "License");
Packit 1fb8d4
 * you may not use this file except in compliance with the License.
Packit 1fb8d4
 * You may obtain a copy of the License at
Packit 1fb8d4
 *
Packit 1fb8d4
 *     http://www.apache.org/licenses/LICENSE-2.0
Packit 1fb8d4
 *
Packit 1fb8d4
 * Unless required by applicable law or agreed to in writing, software
Packit 1fb8d4
 * distributed under the License is distributed on an "AS IS" BASIS,
Packit 1fb8d4
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Packit 1fb8d4
 * See the License for the specific language governing permissions and
Packit 1fb8d4
 * limitations under the License.
Packit 1fb8d4
 */
Packit 1fb8d4
Packit 1fb8d4
#ifndef FREERDP_COMMON_ADDIN_H
Packit 1fb8d4
#define FREERDP_COMMON_ADDIN_H
Packit 1fb8d4
Packit 1fb8d4
#include <freerdp/api.h>
Packit 1fb8d4
#include <freerdp/types.h>
Packit 1fb8d4
Packit Service 5a9772
#define FREERDP_ADDIN_CLIENT 0x00000001
Packit Service 5a9772
#define FREERDP_ADDIN_SERVER 0x00000002
Packit 1fb8d4
Packit Service 5a9772
#define FREERDP_ADDIN_STATIC 0x00000010
Packit Service 5a9772
#define FREERDP_ADDIN_DYNAMIC 0x00000020
Packit 1fb8d4
Packit Service 5a9772
#define FREERDP_ADDIN_NAME 0x00000100
Packit Service 5a9772
#define FREERDP_ADDIN_SUBSYSTEM 0x00000200
Packit Service 5a9772
#define FREERDP_ADDIN_TYPE 0x00000400
Packit 1fb8d4
Packit Service 5a9772
#define FREERDP_ADDIN_CHANNEL_STATIC 0x00001000
Packit Service 5a9772
#define FREERDP_ADDIN_CHANNEL_DYNAMIC 0x00002000
Packit Service 5a9772
#define FREERDP_ADDIN_CHANNEL_DEVICE 0x00004000
Packit Service 5a9772
#define FREERDP_ADDIN_CHANNEL_ENTRYEX 0x00008000
Packit 1fb8d4
Packit 1fb8d4
struct _FREERDP_ADDIN
Packit 1fb8d4
{
Packit 1fb8d4
	DWORD dwFlags;
Packit 1fb8d4
	CHAR cName[16];
Packit 1fb8d4
	CHAR cType[16];
Packit 1fb8d4
	CHAR cSubsystem[16];
Packit 1fb8d4
};
Packit 1fb8d4
typedef struct _FREERDP_ADDIN FREERDP_ADDIN;
Packit 1fb8d4
Packit Service 5a9772
typedef PVIRTUALCHANNELENTRY (*FREERDP_LOAD_CHANNEL_ADDIN_ENTRY_FN)(LPCSTR pszName,
Packit Service 5a9772
                                                                    LPCSTR pszSubsystem,
Packit Service 5a9772
                                                                    LPCSTR pszType, DWORD dwFlags);
Packit 1fb8d4
Packit 1fb8d4
#ifdef __cplusplus
Packit Service 5a9772
extern "C"
Packit Service 5a9772
{
Packit 1fb8d4
#endif
Packit 1fb8d4
Packit Service 5a9772
	FREERDP_API LPSTR freerdp_get_library_install_path(void);
Packit Service 5a9772
	FREERDP_API LPSTR freerdp_get_dynamic_addin_install_path(void);
Packit 1fb8d4
Packit Service 5a9772
	FREERDP_API int freerdp_register_addin_provider(FREERDP_LOAD_CHANNEL_ADDIN_ENTRY_FN provider,
Packit Service 5a9772
	                                                DWORD dwFlags);
Packit 1fb8d4
Packit Service 5a9772
	FREERDP_API PVIRTUALCHANNELENTRY freerdp_load_dynamic_addin(LPCSTR pszFileName, LPCSTR pszPath,
Packit Service 5a9772
	                                                            LPCSTR pszEntryName);
Packit Service 5a9772
	FREERDP_API PVIRTUALCHANNELENTRY freerdp_load_dynamic_channel_addin_entry(LPCSTR pszName,
Packit Service 5a9772
	                                                                          LPCSTR pszSubsystem,
Packit Service 5a9772
	                                                                          LPCSTR pszType,
Packit Service 5a9772
	                                                                          DWORD dwFlags);
Packit Service 5a9772
	FREERDP_API PVIRTUALCHANNELENTRY freerdp_load_channel_addin_entry(LPCSTR pszName,
Packit Service 5a9772
	                                                                  LPCSTR pszSubsystem,
Packit Service 5a9772
	                                                                  LPCSTR pszType,
Packit Service 5a9772
	                                                                  DWORD dwFlags);
Packit 1fb8d4
Packit 1fb8d4
#ifdef __cplusplus
Packit 1fb8d4
}
Packit 1fb8d4
#endif
Packit 1fb8d4
Packit 1fb8d4
#endif /* FREERDP_COMMON_ADDIN_H */