~ubuntu-branches/ubuntu/precise/virtualbox/precise-updates

« back to all changes in this revision

Viewing changes to src/VBox/Main/webservice/vboxweb.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2011-10-17 23:23:09 UTC
  • mfrom: (3.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20111017232309-kzm6841lzk61ranj
Tags: 4.1.4-dfsg-1
* New upstream release.
  - Fixes missing icons when using pt_BR locale. (Closes: #507188)
  - Fixes guest additions download url. (Closes: #637349; LP: #840668)
* Refresh patches.
* Drop the vboxmouse x11 driver. The mouse integration is now completely
  handled by the kernel module.
* Restrict dh_pycentral to the virtualbox binary package.
* Merge changes from the Ubuntu package but use them only when built
  on Ubuntu:
  - Add an Apport hook.
  - Add vboxguest modalias to the package control field.
* Pass KBUILD_VERBOSE=2 to kmk.
* Add 36-fix-text-mode.patch to fix text mode when using the vboxvideo driver.

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
// include generated namespaces table
68
68
#include "vboxwebsrv.nsmap"
69
69
 
 
70
RT_C_DECLS_BEGIN
 
71
 
 
72
// declarations for the generated WSDL text
 
73
extern DECLIMPORT(const unsigned char) g_abVBoxWebWSDL[];
 
74
extern DECLIMPORT(const unsigned) g_cbVBoxWebWSDL;
 
75
 
 
76
RT_C_DECLS_END
 
77
 
70
78
/****************************************************************************
71
79
 *
72
80
 * private typedefs
288
296
    {
289
297
        // make a copy of the soap struct for the new thread
290
298
        m_soap = soap_copy(soap);
 
299
        m_soap->fget = fnHttpGet;
291
300
 
292
301
        /* The soap.max_keep_alive value can be set to the maximum keep-alive calls allowed,
293
302
         * which is important to avoid a client from holding a thread indefinitely.
316
325
 
317
326
    void process();
318
327
 
 
328
    static int fnHttpGet(struct soap *soap)
 
329
    {
 
330
        char *s = strchr(soap->path, '?');
 
331
        if (!s || strcmp(s, "?wsdl"))
 
332
            return SOAP_GET_METHOD;
 
333
        soap_response(soap, SOAP_HTML);
 
334
        soap_send_raw(soap, (const char *)g_abVBoxWebWSDL, g_cbVBoxWebWSDL);
 
335
        soap_end_send(soap);
 
336
        return SOAP_OK;
 
337
    }
 
338
 
319
339
    /**
320
340
     * Static function that can be passed to RTThreadCreate and that calls
321
341
     * process() on the SoapThread instance passed as the thread parameter.