Skip to content

Commit 1a30315

Browse files
blechschmidtvasily-v-ryabov
authored andcommitted
Add support for FamilyServerInterpreted and FamilyInternetV6
1 parent a734526 commit 1a30315

File tree

5 files changed

+13
-5
lines changed

5 files changed

+13
-5
lines changed

Xlib/X.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,8 @@
197197
FamilyInternet = 0
198198
FamilyDECnet = 1
199199
FamilyChaos = 2
200+
FamilyServerInterpreted = 5
201+
FamilyInternetV6 = 6
200202
PropertyNewValue = 0
201203
PropertyDelete = 1
202204
ColormapUninstalled = 0

Xlib/display.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,8 @@ def get_screen_saver(self):
849849

850850
def change_hosts(self, mode, host_family, host, onerror = None):
851851
"""mode is either X.HostInsert or X.HostDelete. host_family is
852-
one of X.FamilyInternet, X.FamilyDECnet or X.FamilyChaos.
852+
one of X.FamilyInternet, X.FamilyDECnet, X.FamilyChaos,
853+
X.FamilyServerInterpreted or X.FamilyInternetV6.
853854
854855
host is a list of bytes. For the Internet family, it should be the
855856
four bytes of an IPv4 address."""
@@ -868,7 +869,7 @@ def list_hosts(self):
868869
The hosts on the access list. Each entry has the following attributes:
869870
870871
family
871-
X.FamilyInternet, X.FamilyDECnet, or X.FamilyChaos.
872+
X.FamilyInternet, X.FamilyDECnet, X.FamilyChaos, X.FamilyServerInterpreted or X.FamilyInternetV6.
872873
name
873874
A list of byte values, the coding depends on family. For the Internet family, it is the 4 bytes of an IPv4 address.
874875

Xlib/protocol/request.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1640,7 +1640,8 @@ class ChangeHosts(rq.Request):
16401640
rq.Opcode(109),
16411641
rq.Set('mode', 1, (X.HostInsert, X.HostDelete)),
16421642
rq.RequestLength(),
1643-
rq.Set('host_family', 1, (X.FamilyInternet, X.FamilyDECnet, X.FamilyChaos)),
1643+
rq.Set('host_family', 1, (X.FamilyInternet, X.FamilyDECnet, X.FamilyChaos,
1644+
X.FamilyServerInterpreted, X.FamilyInternetV6)),
16441645
rq.Pad(1),
16451646
rq.LengthOf('host', 2),
16461647
rq.List('host', rq.Card8Obj)

Xlib/xauth.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
FamilyInternet = X.FamilyInternet
2828
FamilyDECnet = X.FamilyDECnet
2929
FamilyChaos = X.FamilyChaos
30+
FamilyServerInterpreted = X.FamilyServerInterpreted
31+
FamilyInternetV6 = X.FamilyInternetV6
3032
FamilyLocal = 256
3133

3234
class Xauthority(object):

doc/src/objects.texi

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,8 @@ XGetScreenSaver(3X11) for details.
678678

679679
@var{mode} is either @code{X.HostInsert} or @code{X.HostDelete}.
680680
@var{host_family} is one of @code{X.FamilyInternet},
681-
@code{X.FamilyDECnet} or @code{X.FamilyChaos}.
681+
@code{X.FamilyDECnet}, @code{X.FamilyChaos}, @code{X.FamilyServerInterpreted}
682+
or @code{X.FamilyInternetV6}.
682683

683684
@var{host} is a list of bytes. For the Internet family, it should be
684685
the four bytes of an IPv4 address.
@@ -699,7 +700,8 @@ The hosts on the access list. Each entry has the following attributes:
699700

700701
@table @code
701702
@item family
702-
@code{X.FamilyInternet}, @code{X.FamilyDECnet}, or @code{X.FamilyChaos}.
703+
@code{X.FamilyInternet}, @code{X.FamilyDECnet}, @code{X.FamilyChaos},
704+
@code{X.FamilyServerInterpreted} or @code{X.FamilyInternetV6}.
703705

704706
@item name
705707
A list of byte values, the coding depends on @code{family}. For the

0 commit comments

Comments
 (0)