~ubuntu-branches/ubuntu/trusty/libupnp4/trusty

« back to all changes in this revision

Viewing changes to upnp/src/inc/uri.h

  • Committer: Bazaar Package Importer
  • Author(s): Nick Leverton
  • Date: 2010-03-08 18:26:14 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100308182614-y3j47t5ddhrza6be
Tags: 1.8.0~svn20090313-1
* ACK NMU (thanks to gregor herrmann and Stefan Potyra).
* Pull from svn, see upstream changes.gz for details
  (Closes: #492160, FTBFS on GNU/kFreeBSD, thanks to Petr Salinger).
* Update Sections and general Policy to 3.8.4
* Use debhelper 7 dh instead of dbs
* Generate and update symbols file
* Rename libs to libupnp4, libixml4 and libthreadutil4, to allow
  co-installing libupnp3 and libupnp4.
* New patch 04-string-access-functions.patch: add _strget_ accessors
  to API, to avoid remembering to call UpnpString_get_String in clients.
* New patch 05-const-tidyup.patch for a few constness fixes.
* Upstream patch 06-patch-statevar-query.patch for missing CRNL.
* New patch 07-neaten-debug.patch to improve debug readability
* New patch 08-renewals-sid.patch to fix autorenewals.
* New patch 09-update-doc.patch to generate up to date -doc package.
* New patch 10-upnpinit-ntoa.patch to replace inet_ntoa by inet_ntop.

Show diffs side-by-side

added added

removed removed

Lines of Context:
281
281
 
282
282
 
283
283
/*!
284
 
 * \brief Parses a port (i.e. '4000') and converts it into a network ordered
285
 
 * unsigned short int.
286
 
 *
287
 
 * \return 
288
 
 */
289
 
int parse_port(
290
 
        /*! [in] Sets a maximum limit. */
291
 
        int max,
292
 
        /*! [in] Port to be parsed. */
293
 
        const char *port,
294
 
        /*! [out] Output parameter where the port is parsed and converted into
295
 
         * network format. */
296
 
        unsigned short int *out);
297
 
 
298
 
 
299
 
/*!
300
284
 * \brief Parses a string representing a host and port (e.g. "127.127.0.1:80"
301
285
 * or "localhost") and fills out a hostport_type struct with internet address
302
286
 * and a token representing the full host and port.