~ubuntu-branches/ubuntu/jaunty/transmission/jaunty-security

« back to all changes in this revision

Viewing changes to third-party/shttpd/compat_rtems.h

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson
  • Date: 2008-11-28 15:33:48 UTC
  • mfrom: (1.1.19 upstream)
  • Revision ID: james.westby@ubuntu.com-20081128153348-it70trfnxiroblmc
Tags: 1.40-0ubuntu1
* New upstream release (LP: #302672)
  - Tracker communication uses fewer resources
  - More accurate bandwidth limits
  - Reduce disk fragmentation by preallocating files (LP: #287726)
  - Stability, security and performance improvements to the RPC /
    Web UI server (closes LP: #290423)
  - Support compression when serving Web UI and RPC responses
  - Simplify the RPC whitelist
  - Fix bug that prevented handshakes with encrypted BitComet peers
  - Fix 1.3x bug that could re-download some data unnecessarily
    (LP: #295040)
  - Option to automatically update the blocklist weekly
  - Added off-hour bandwidth scheduling
  - Simplify file/priority selection in the details dialog
  - Fix a couple of crashes
  - New / updated translations
  - Don't inhibit hibernation by default (LP: #292929)
  - Use "close" animation when sending to notification area (LP: #130811)
  - Fix resize problems (LP: #269872)
  - Support "--version" option when launching from command line
    (LP: #292011)
  - Correctly parse announce URLs that have leading or trailing
    spaces (LP: #262411)
  - Display an error when "Open Torrent" fails (LP: #281463)
* Dropped 10_fix_crasher_from_upstream.dpatch: Fix is in this
  upstream release.
* debian/control: Don't just build-depend on libcurl-dev, which is
  a virtual package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/**
2
 
 * @file rtems/rtems-shttpd.h
3
 
 */
4
 
 
5
 
#ifndef _rtems_rtems_webserver_h
6
 
#define _rtems_rtems_webserver_h
7
 
 
8
 
#include "shttpd.h"
9
 
 
10
 
#include <rtems.h>
11
 
#include <sys/socket.h>
12
 
#include <netinet/in.h>
13
 
#include <dirent.h>
14
 
 
15
 
/* RTEMS is an Real Time Embedded operating system, for operation in hardware.
16
 
  It does not have SSL or CGI support, as it does not have dynamic library
17
 
  loading or sub-processes. */
18
 
#define EMBEDDED
19
 
#define NO_SSL
20
 
#define NO_CGI
21
 
 
22
 
#define DIRSEP                          '/'
23
 
#define O_BINARY                        0
24
 
#define ERRNO                           errno
25
 
 
26
 
/* RTEMS version is Thread Safe */
27
 
#define InitializeCriticalSection(x)  rtems_semaphore_create( \
28
 
                                  rtems_build_name('H','T','P','X'), \
29
 
                                  1, /* Not Held Yet.*/ \
30
 
                                  RTEMS_FIFO | \
31
 
                                  RTEMS_BINARY_SEMAPHORE, \
32
 
                                  0, \
33
 
                                  x);
34
 
#define EnterCriticalSection(x) rtems_semaphore_obtain(*(x),RTEMS_WAIT,RTEMS_NO_TIMEOUT)
35
 
#define LeaveCriticalSection(x) rtems_semaphore_release(*(x))
36
 
 
37
 
 
38
 
 
39
 
#ifdef __cplusplus
40
 
extern "C" {
41
 
#endif
42
 
 
43
 
typedef void (*rtems_shttpd_addpages)(struct shttpd_ctx *ctx);
44
 
typedef void (*rtems_shttpd_init)(void);
45
 
 
46
 
rtems_status_code rtems_initialize_webserver(rtems_task_priority   initial_priority,
47
 
                                             rtems_unsigned32      stack_size,
48
 
                                             rtems_mode            initial_modes,
49
 
                                             rtems_attribute       attribute_set,
50
 
                                             rtems_shttpd_init     init_callback,
51
 
                                             rtems_shttpd_addpages addpages_callback,
52
 
                                             char                 *webroot
53
 
                                            );
54
 
void rtems_terminate_webserver(void);
55
 
int  rtems_webserver_ok(void);
56
 
 
57
 
#ifdef __cplusplus
58
 
}
59
 
#endif
60
 
#endif