* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General
- * Public License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
- * Boston, MA 02111-1307, USA.
+ * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __G_NETWORKINGPRIVATE_H__
#define __G_NETWORKINGPRIVATE_H__
-#ifdef G_OS_WIN32
+#include "gnetworking.h"
-#define WINVER 0x0501 // FIXME?
-#include <winsock2.h>
-#undef interface
-#include <ws2tcpip.h>
-#include <windns.h>
+G_BEGIN_DECLS
-#else /* !G_OS_WIN32 */
+gboolean _g_uri_parse_authority (const char *uri,
+ char **host,
+ guint16 *port,
+ char **userinfo);
+gchar * _g_uri_from_authority (const gchar *protocol,
+ const gchar *host,
+ guint port,
+ const gchar *userinfo);
-#define BIND_4_COMPAT
+guint64 g_resolver_get_serial (GResolver *resolver);
-#include <arpa/inet.h>
-#include <arpa/nameser.h>
-/* We're supposed to define _GNU_SOURCE to get EAI_NODATA, but that
- * won't actually work since <features.h> has already been included at
- * this point. So we define __USE_GNU instead.
- */
-#define __USE_GNU
-#include <netdb.h>
-#undef __USE_GNU
-#include <netinet/in.h>
-#include <netinet/tcp.h>
-#include <resolv.h>
-#include <sys/socket.h>
-#include <sys/un.h>
-
-#endif
+gint g_socket (gint domain,
+ gint type,
+ gint protocol,
+ GError **error);
+
+G_END_DECLS
#endif /* __G_NETWORKINGPRIVATE_H__ */