1.1 --- a/Frameworks/libpurple.framework/Versions/0.5.6/Headers/dnssrv.h Sun Jun 21 22:04:11 2009 -0400
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,65 +0,0 @@
1.4 -/**
1.5 - * @file dnssrv.h
1.6 - */
1.7 -
1.8 -/* purple
1.9 - *
1.10 - * Copyright (C) 2005, Thomas Butter <butter@uni-mannheim.de>
1.11 - *
1.12 - * This program is free software; you can redistribute it and/or modify
1.13 - * it under the terms of the GNU General Public License as published by
1.14 - * the Free Software Foundation; either version 2 of the License, or
1.15 - * (at your option) any later version.
1.16 - *
1.17 - * This program is distributed in the hope that it will be useful,
1.18 - * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.19 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.20 - * GNU General Public License for more details.
1.21 - *
1.22 - * You should have received a copy of the GNU General Public License
1.23 - * along with this program; if not, write to the Free Software
1.24 - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
1.25 - */
1.26 -
1.27 -#ifndef _PURPLE_DNSSRV_H
1.28 -#define _PURPLE_DNSSRV_H
1.29 -
1.30 -#ifdef __cplusplus
1.31 -extern "C" {
1.32 -#endif
1.33 -
1.34 -typedef struct _PurpleSrvResponse PurpleSrvResponse;
1.35 -typedef struct _PurpleSrvQueryData PurpleSrvQueryData;
1.36 -
1.37 -struct _PurpleSrvResponse {
1.38 - char hostname[256];
1.39 - int port;
1.40 - int weight;
1.41 - int pref;
1.42 -};
1.43 -
1.44 -typedef void (*PurpleSrvCallback)(PurpleSrvResponse *resp, int results, gpointer data);
1.45 -
1.46 -/**
1.47 - * Queries an SRV record.
1.48 - *
1.49 - * @param protocol Name of the protocol (e.g. "sip")
1.50 - * @param transport Name of the transport ("tcp" or "udp")
1.51 - * @param domain Domain name to query (e.g. "blubb.com")
1.52 - * @param cb A callback which will be called with the results
1.53 - * @param extradata Extra data to be passed to the callback
1.54 - */
1.55 -PurpleSrvQueryData *purple_srv_resolve(const char *protocol, const char *transport, const char *domain, PurpleSrvCallback cb, gpointer extradata);
1.56 -
1.57 -/**
1.58 - * Cancel an SRV DNS query.
1.59 - *
1.60 - * @param query_data The request to cancel.
1.61 - */
1.62 -void purple_srv_cancel(PurpleSrvQueryData *query_data);
1.63 -
1.64 -#ifdef __cplusplus
1.65 -}
1.66 -#endif
1.67 -
1.68 -#endif /* _PURPLE_DNSSRV_H */