X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=lhnet.h;h=d46dbe99a859cfb6db3a2ad8ed095febcd79073c;hb=836e971163f6066cb5fae873b9a456753f79a18c;hp=08850fb3f52dddc443853721a2ac38a24105b704;hpb=7f81dc664a496edf46a3cd537f2dc6dcb60ccf4c;p=xonotic%2Fdarkplaces.git diff --git a/lhnet.h b/lhnet.h index 08850fb3..d46dbe99 100644 --- a/lhnet.h +++ b/lhnet.h @@ -9,7 +9,7 @@ typedef enum lhnetaddresstype_e LHNETADDRESSTYPE_NONE, LHNETADDRESSTYPE_LOOP, LHNETADDRESSTYPE_INET4, - LHNETADDRESSTYPE_INET6, + LHNETADDRESSTYPE_INET6 } lhnetaddresstype_t; @@ -25,6 +25,7 @@ int LHNETADDRESS_FromPort(lhnetaddress_t *address, lhnetaddresstype_t addresstyp int LHNETADDRESS_FromString(lhnetaddress_t *address, const char *string, int defaultport); int LHNETADDRESS_ToString(const lhnetaddress_t *address, char *string, int stringbuffersize, int includeport); int LHNETADDRESS_GetAddressType(const lhnetaddress_t *address); +const char *LHNETADDRESS_GetInterfaceName(const lhnetaddress_t *address); int LHNETADDRESS_GetPort(const lhnetaddress_t *address); int LHNETADDRESS_SetPort(lhnetaddress_t *address, int port); int LHNETADDRESS_Compare(const lhnetaddress_t *address1, const lhnetaddress_t *address2);