~ubuntu-branches/ubuntu/natty/curl/natty

« back to all changes in this revision

Viewing changes to tests/server/getpart.h

  • Committer: Bazaar Package Importer
  • Author(s): Bhavani Shankar
  • Date: 2010-06-20 13:56:28 UTC
  • mfrom: (3.4.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100620135628-e30tp9jldq6hq985
Tags: 7.21.0-1ubuntu1
* Merge from debian unstable.  Remaining changes: LP: #596334
  - Keep build deps in main:
    - Drop build dependencies: stunnel, libssh2-1-dev
    - Add build-dependency on openssh-server
    - Drop libssh2-1-dev from libcurl4-openssl-dev's Depends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef HEADER_SERVER_GETPART_H
 
2
#define HEADER_SERVER_GETPART_H
1
3
/***************************************************************************
2
4
 *                                  _   _ ____  _
3
5
 *  Project                     ___| | | |  _ \| |
5
7
 *                            | (__| |_| |  _ <| |___
6
8
 *                             \___|\___/|_| \_\_____|
7
9
 *
8
 
 * Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
 
10
 * Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
9
11
 *
10
12
 * This software is licensed as described in the file COPYING, which
11
13
 * you should have received as part of this distribution. The terms
18
20
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
21
 * KIND, either express or implied.
20
22
 *
21
 
 * $Id: getpart.h,v 1.4 2009-05-18 12:25:45 yangtse Exp $
22
23
 ***************************************************************************/
23
 
const char *
24
 
spitout(FILE *stream,
25
 
        const char *main,
26
 
        const char *sub,
27
 
        size_t *size);
 
24
 
 
25
#define GPE_NO_BUFFER_SPACE -2
 
26
#define GPE_OUT_OF_MEMORY   -1
 
27
#define GPE_OK               0
 
28
#define GPE_END_OF_FILE      1
 
29
 
 
30
int getpart(char **outbuf, size_t *outlen,
 
31
            const char *main, const char *sub, FILE *stream);
 
32
 
 
33
#endif /* HEADER_SERVER_GETPART_H */