aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/os
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2009-11-20 13:01:45 +0000
committermarha <marha@users.sourceforge.net>2009-11-20 13:01:45 +0000
commitd2d9977f1153b5222b34859a2cb22b957bfe3221 (patch)
treea732c0c90bbd06bbf003e23a3ec08300e154a51d /xorg-server/os
parentda051c6af428703e746c6a1677e1dce032b86c41 (diff)
downloadvcxsrv-d2d9977f1153b5222b34859a2cb22b957bfe3221.tar.gz
vcxsrv-d2d9977f1153b5222b34859a2cb22b957bfe3221.tar.bz2
vcxsrv-d2d9977f1153b5222b34859a2cb22b957bfe3221.zip
Native glx is compiling and running now (although no acceleration is happening... to be investigated further)
Diffstat (limited to 'xorg-server/os')
-rw-r--r--xorg-server/os/connection.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/xorg-server/os/connection.c b/xorg-server/os/connection.c
index 68f75ac3b..39f1dae87 100644
--- a/xorg-server/os/connection.c
+++ b/xorg-server/os/connection.c
@@ -277,6 +277,23 @@ lookup_trans_conn (int fd)
return (NULL);
}
+int
+TransIsListening(char *protocol)
+{
+ /* look for this transport in the list of listeners */
+ int i;
+ for (i = 0; i < ListenTransCount; i++)
+ {
+ if (!strcmp(protocol, ListenTransConns[i]->transptr->TransName))
+ {
+ return 1;
+ }
+ }
+
+ return 0;
+}
+
+
/* Set MaxClients and lastfdesc, and allocate ConnectionTranslation */
void