server: rename pc prefix to ps.

This commit is contained in:
Vic Lee 2011-08-19 01:13:37 +08:00
parent 8cced27d17
commit 9ea3f1e5bd
2 changed files with 18 additions and 18 deletions

View File

@ -31,11 +31,11 @@ typedef struct rdp_freerdp_listener freerdp_listener;
extern "C" {
#endif
typedef boolean (*pcListenerOpen)(freerdp_listener* instance, const char* bind_address, uint16 port);
typedef boolean (*pcListenerGetFileDescriptor)(freerdp_listener* instance, void** rfds, int* rcount);
typedef boolean (*pcListenerCheckFileDescriptor)(freerdp_listener* instance);
typedef void (*pcListenerClose)(freerdp_listener* instance);
typedef void (*pcPeerAccepted)(freerdp_listener* instance, freerdp_peer* client);
typedef boolean (*psListenerOpen)(freerdp_listener* instance, const char* bind_address, uint16 port);
typedef boolean (*psListenerGetFileDescriptor)(freerdp_listener* instance, void** rfds, int* rcount);
typedef boolean (*psListenerCheckFileDescriptor)(freerdp_listener* instance);
typedef void (*psListenerClose)(freerdp_listener* instance);
typedef void (*psPeerAccepted)(freerdp_listener* instance, freerdp_peer* client);
struct rdp_freerdp_listener
{
@ -45,12 +45,12 @@ struct rdp_freerdp_listener
void* param3;
void* param4;
pcListenerOpen Open;
pcListenerGetFileDescriptor GetFileDescriptor;
pcListenerCheckFileDescriptor CheckFileDescriptor;
pcListenerClose Close;
psListenerOpen Open;
psListenerGetFileDescriptor GetFileDescriptor;
psListenerCheckFileDescriptor CheckFileDescriptor;
psListenerClose Close;
pcPeerAccepted PeerAccepted;
psPeerAccepted PeerAccepted;
};
FREERDP_API freerdp_listener* freerdp_listener_new(void);

View File

@ -26,10 +26,10 @@ typedef struct rdp_freerdp_peer freerdp_peer;
#include <freerdp/types.h>
#include <freerdp/settings.h>
typedef boolean (*pcPeerInitialize)(freerdp_peer* client);
typedef boolean (*pcPeerGetFileDescriptor)(freerdp_peer* client, void** rfds, int* rcount);
typedef boolean (*pcPeerCheckFileDescriptor)(freerdp_peer* client);
typedef void (*pcPeerDisconnect)(freerdp_peer* client);
typedef boolean (*psPeerInitialize)(freerdp_peer* client);
typedef boolean (*psPeerGetFileDescriptor)(freerdp_peer* client, void** rfds, int* rcount);
typedef boolean (*psPeerCheckFileDescriptor)(freerdp_peer* client);
typedef void (*psPeerDisconnect)(freerdp_peer* client);
struct rdp_freerdp_peer
{
@ -41,10 +41,10 @@ struct rdp_freerdp_peer
rdpSettings* settings;
pcPeerInitialize Initialize;
pcPeerGetFileDescriptor GetFileDescriptor;
pcPeerCheckFileDescriptor CheckFileDescriptor;
pcPeerDisconnect Disconnect;
psPeerInitialize Initialize;
psPeerGetFileDescriptor GetFileDescriptor;
psPeerCheckFileDescriptor CheckFileDescriptor;
psPeerDisconnect Disconnect;
};
FREERDP_API freerdp_peer* freerdp_peer_new(int sockfd);