source: rtems/testsuites/libtests/mghttpd01/test-http-client.h @ 2d72c198

4.115
Last change on this file since 2d72c198 was 2d72c198, checked in by Ralf Corsépius <ralf.corsepius@…>, on 10/15/12 at 02:37:40

Move extern "C" after std-header inclusions.

  • Property mode set to 100644
File size: 957 bytes
Line 
1/*
2 * Copyright (c) 2012 embedded brains GmbH.  All rights reserved.
3 *
4 *  embedded brains GmbH
5 *  Obere Lagerstr. 30
6 *  82178 Puchheim
7 *  Germany
8 *  <rtems@embedded-brains.de>
9 *
10 * The license and distribution terms for this file may be
11 * found in the file LICENSE in this distribution or at
12 * http://www.rtems.com/license/LICENSE.
13 */
14
15#ifndef TEST_WEB_CLIENT_H
16#define TEST_WEB_CLIENT_H
17
18#include <stdint.h>
19#include <stdbool.h>
20#include <stdio.h>
21
22#ifdef __cplusplus
23extern "C" {
24#endif /* __cplusplus */
25
26typedef struct
27{
28  int socket;
29  FILE *fd;
30}
31httpc_context;
32
33void httpc_init_context(
34  httpc_context *ctx
35);
36
37bool httpc_open_connection(
38  httpc_context *ctx,
39  char *targethost,
40  int targetport
41);
42
43bool httpc_close_connection(
44  httpc_context *ctx
45);
46
47bool httpc_send_request(
48  httpc_context *ctx,
49  char *request,
50  char *response,
51  int responsesize
52);
53
54#ifdef __cplusplus
55}
56#endif /* __cplusplus */
57
58#endif /* TEST_WEB_CLIENT_H */
Note: See TracBrowser for help on using the repository browser.