1
/* -*- c-basic-offset: 8 -*-
2
FreeRDP: A Remote Desktop Protocol client.
3
Redirected Device Manager
5
Copyright (C) Marc-Andre Moreau <marcandre.moreau@gmail.com> 2010
7
This program is free software; you can redistribute it and/or modify
8
it under the terms of the GNU General Public License as published by
9
the Free Software Foundation; either version 2 of the License, or
10
(at your option) any later version.
12
This program is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
GNU General Public License for more details.
17
You should have received a copy of the GNU General Public License
18
along with this program; if not, write to the Free Software
19
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
2
* FreeRDP: A Remote Desktop Protocol client.
3
* File System Virtual Channel
5
* Copyright 2010-2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
6
* Copyright 2010-2011 Vic Lee
8
* Licensed under the Apache License, Version 2.0 (the "License");
9
* you may not use this file except in compliance with the License.
10
* You may obtain a copy of the License at
12
* http://www.apache.org/licenses/LICENSE-2.0
14
* Unless required by applicable law or agreed to in writing, software
15
* distributed under the License is distributed on an "AS IS" BASIS,
16
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
* See the License for the specific language governing permissions and
18
* limitations under the License.
25
typedef PSERVICE (*PDEVMAN_REGISTER_SERVICE)(PDEVMAN devman);
26
typedef int (*PDEVMAN_UNREGISTER_SERVICE)(PDEVMAN devman, PSERVICE srv);
27
typedef PDEVICE (*PDEVMAN_REGISTER_DEVICE)(PDEVMAN devman, PSERVICE srv, char* name);
28
typedef int (*PDEVMAN_UNREGISTER_DEVICE)(PDEVMAN devman, PDEVICE dev);
30
struct _DEVMAN_ENTRY_POINTS
32
PDEVMAN_REGISTER_SERVICE pDevmanRegisterService;
33
PDEVMAN_UNREGISTER_SERVICE pDevmanUnregisterService;
34
PDEVMAN_REGISTER_DEVICE pDevmanRegisterDevice;
35
PDEVMAN_UNREGISTER_DEVICE pDevmanUnregisterDevice;
36
void* pExtendedData; /* extended data field to pass initial parameters */
38
typedef struct _DEVMAN_ENTRY_POINTS DEVMAN_ENTRY_POINTS;
39
typedef DEVMAN_ENTRY_POINTS * PDEVMAN_ENTRY_POINTS;
41
typedef int (*PDEVICE_SERVICE_ENTRY)(PDEVMAN, PDEVMAN_ENTRY_POINTS);
44
devman_new(void* data);
46
devman_free(DEVMAN* devman);
48
devman_register_service(DEVMAN* devman);
50
devman_unregister_service(DEVMAN* devman, SERVICE* srv);
52
devman_register_device(DEVMAN* devman, SERVICE* srv, char* name);
54
devman_unregister_device(DEVMAN* devman, DEVICE* dev);
56
devman_rewind(DEVMAN* devman);
58
devman_has_next(DEVMAN* devman);
60
devman_get_next(DEVMAN* devman);
62
devman_get_device_by_id(DEVMAN* devman, uint32 id);
64
devman_get_service_by_type(DEVMAN* devman, int type);
66
devman_load_device_service(DEVMAN* devman, char* filename);
24
DEVMAN* devman_new(rdpSvcPlugin* plugin);
25
void devman_free(DEVMAN* devman);
26
boolean devman_load_device_service(DEVMAN* devman, RDP_PLUGIN_DATA* plugin_data);
27
DEVICE* devman_get_device_by_id(DEVMAN* devman, uint32 id);
29
#endif /* __DEVMAN_H */