@@ -1,9 +1,10 @@ /* - * Copyright (c) 2011, Florian Zeitz + * Copyright (c) 2011, 2012, Florian Zeitz + * Copyright (c) 2011, 2012, 2013, 2016, Jonathan Schleifer * - * https://webkeks.org/git/?p=objxmpp.git + * https://heap.zone/git/?p=objxmpp.git * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice is present in all copies. * @@ -33,17 +34,15 @@ uint32_t _accumulatedWeight; uint16_t _port; OFString *_target; } -#ifdef OF_HAVE_PROPERTIES @property (readonly) uint16_t priority; @property (readonly) uint16_t weight; @property uint32_t accumulatedWeight; @property (readonly) uint16_t port; @property (readonly, copy) OFString *target; -#endif + (instancetype)entryWithPriority: (uint16_t)priority weight: (uint16_t)weight port: (uint16_t)port target: (OFString*)target; @@ -53,28 +52,20 @@ weight: (uint16_t)weight port: (uint16_t)port target: (OFString*)target; - initWithResourceRecord: (ns_rr)resourceRecord handle: (ns_msg)handle; -- (uint16_t)priority; -- (uint16_t)weight; -- (uint32_t)accumulatedWeight; -- (void)setAccumulatedWeight: (uint32_t)accumulatedWeight; -- (uint16_t)port; -- (OFString*)target; @end @interface XMPPSRVLookup: OFObject { OFString *_domain; struct __res_state _resState; OFList *_list; } -#ifdef OF_HAVE_PROPERTIES @property (readonly, copy) OFString *domain; -#endif + (instancetype)lookupWithDomain: (OFString*)domain; - initWithDomain: (OFString*)domain; - (void)XMPP_lookup;