~ubuntu-branches/ubuntu/raring/freerdp/raring-proposed

« back to all changes in this revision

Viewing changes to channels/rdpdr/devman.h

  • Committer: Package Import Robot
  • Author(s): Martin Pitt, Jeremy Bicha, Jean-Louis Dupond, Martin Pitt
  • Date: 2012-01-31 10:02:14 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20120131100214-jaok3uwvni7sqxth
Tags: 1.0.0-0git1
Upload current Debian packaging git to get this rolling for precise.

[ Jeremy Bicha ]
* New upstream release. Closes: #647498.
* Updated symbols and bumped soname
* debian/control:
  - Added new build dependencies
  - Bump Standards-Version to 3.9.2
* debian/source/format: Set to 3.0 (quilt)
* debian/rules: Turn on strict symbols checking
* debian/watch: Watch github

[ Jean-Louis Dupond ]
* debian/control: Updated homepage
* debian/copyright: Reflect upstream switch to the Apache license

[ Martin Pitt ]
* debian/libfreerdp0.symbols: Fix version number, should
  be 1.0~beta5, not 1.0-beta5.
* debian/control: Add libavcodec-dev build dependency, upstream build system
  checks for that. Thanks Jean-Louis Dupond!

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- c-basic-offset: 8 -*-
2
 
   FreeRDP: A Remote Desktop Protocol client.
3
 
   Redirected Device Manager
4
 
 
5
 
   Copyright (C) Marc-Andre Moreau <marcandre.moreau@gmail.com> 2010
6
 
 
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.
11
 
 
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.
16
 
 
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.
20
 
*/
 
1
/**
 
2
 * FreeRDP: A Remote Desktop Protocol client.
 
3
 * File System Virtual Channel
 
4
 *
 
5
 * Copyright 2010-2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
 
6
 * Copyright 2010-2011 Vic Lee
 
7
 *
 
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
 
11
 *
 
12
 *     http://www.apache.org/licenses/LICENSE-2.0
 
13
 *
 
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.
 
19
 */
21
20
 
22
21
#ifndef __DEVMAN_H
23
22
#define __DEVMAN_H
24
23
 
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);
29
 
 
30
 
struct _DEVMAN_ENTRY_POINTS
31
 
{
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 */
37
 
};
38
 
typedef struct _DEVMAN_ENTRY_POINTS DEVMAN_ENTRY_POINTS;
39
 
typedef DEVMAN_ENTRY_POINTS * PDEVMAN_ENTRY_POINTS;
40
 
 
41
 
typedef int (*PDEVICE_SERVICE_ENTRY)(PDEVMAN, PDEVMAN_ENTRY_POINTS);
42
 
 
43
 
DEVMAN*
44
 
devman_new(void* data);
45
 
int
46
 
devman_free(DEVMAN* devman);
47
 
SERVICE*
48
 
devman_register_service(DEVMAN* devman);
49
 
int
50
 
devman_unregister_service(DEVMAN* devman, SERVICE* srv);
51
 
DEVICE*
52
 
devman_register_device(DEVMAN* devman, SERVICE* srv, char* name);
53
 
int
54
 
devman_unregister_device(DEVMAN* devman, DEVICE* dev);
55
 
void
56
 
devman_rewind(DEVMAN* devman);
57
 
int
58
 
devman_has_next(DEVMAN* devman);
59
 
DEVICE*
60
 
devman_get_next(DEVMAN* devman);
61
 
DEVICE*
62
 
devman_get_device_by_id(DEVMAN* devman, uint32 id);
63
 
SERVICE*
64
 
devman_get_service_by_type(DEVMAN* devman, int type);
65
 
int
66
 
devman_load_device_service(DEVMAN* devman, char* filename);
67
 
 
68
 
#endif // __DEVMAN_H
69
 
 
 
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);
 
28
 
 
29
#endif /* __DEVMAN_H */