source: trunk/libtransmission/json.h @ 5828

Last change on this file since 5828 was 5828, checked in by charles, 14 years ago

fix bug in the benc-to-json converter.
add rison-to-json converter so we can pass commands to transmission in a uri.
add unit tests for the new code.

File size: 699 bytes
Line 
1/*
2 * This file Copyright (C) 2008 Charles Kerr <charles@rebelbase.com>
3 *
4 * This file is licensed by the GPL version 2.  Works owned by the
5 * Transmission project are granted a special exemption to clause 2(b)
6 * so that the bulk of its code can remain under the MIT license.
7 * This exemption does not extend to derived works not owned by
8 * the Transmission project.
9 *
10 * $Id:$
11 */
12
13#ifndef TR_JSON_H
14
15int tr_jsonParse( const void       * vbuf,
16                  const void       * bufend,
17                  struct tr_benc   * setme_benc,
18                  const uint8_t   ** setme_end );
19
20char* tr_rison2json( const char    * rison,
21                     int             rison_len );
22
23#endif
Note: See TracBrowser for help on using the repository browser.