common.h (0ab1cb6d) common.h (a3a9b1ec)
1/* $NetBSD: common.h,v 1.1.1.7 2010/03/24 20:51:42 joerg Exp $ */
1/* $NetBSD: common.h,v 1.2 2014/01/07 02:13:00 joerg Exp $ */
2/*-
3 * Copyright (c) 1998-2004 Dag-Erling Co�dan Sm�rgrav
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 * 1. Redistributions of source code must retain the above copyright

--- 75 unchanged lines hidden (view full) ---

85struct fetcherr {
86 const int num;
87 const int cat;
88 const char *string;
89};
90
91void fetch_seterr(struct fetcherr *, int);
92void fetch_syserr(void);
2/*-
3 * Copyright (c) 1998-2004 Dag-Erling Co�dan Sm�rgrav
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 * 1. Redistributions of source code must retain the above copyright

--- 75 unchanged lines hidden (view full) ---

85struct fetcherr {
86 const int num;
87 const int cat;
88 const char *string;
89};
90
91void fetch_seterr(struct fetcherr *, int);
92void fetch_syserr(void);
93void fetch_info(const char *, ...);
93void fetch_info(const char *, ...) __printflike(1, 2);
94int fetch_default_port(const char *);
95int fetch_default_proxy_port(const char *);
96int fetch_bind(int, int, const char *);
97conn_t *fetch_cache_get(const struct url *, int);
98void fetch_cache_put(conn_t *, int (*)(conn_t *));
99conn_t *fetch_connect(struct url *, int, int);
100conn_t *fetch_reopen(int);
101int fetch_ssl(conn_t *, int);

--- 38 unchanged lines hidden ---
94int fetch_default_port(const char *);
95int fetch_default_proxy_port(const char *);
96int fetch_bind(int, int, const char *);
97conn_t *fetch_cache_get(const struct url *, int);
98void fetch_cache_put(conn_t *, int (*)(conn_t *));
99conn_t *fetch_connect(struct url *, int, int);
100conn_t *fetch_reopen(int);
101int fetch_ssl(conn_t *, int);

--- 38 unchanged lines hidden ---