source: trunk/libtransmission/rpc-server.h @ 6004

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

(libT): added an ACL tester to tr_sessionSetRPCACL() and return an error string if the ACL can't be parsed.

  • Property svn:keywords set to Date Rev Author Id
File size: 1.4 KB
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: rpc-server.h 6004 2008-06-02 19:44:19Z charles $
11 */
12
13#ifndef TR_RPC_SERVER_H
14#define TR_RPC_SERVER_H
15
16typedef struct tr_rpc_server tr_rpc_server;
17
18tr_rpc_server * tr_rpcInit  ( struct tr_handle       * session,
19                              int                      isEnabled,
20                              int                      port,
21                              const char             * acl );
22
23void        tr_rpcClose     ( tr_rpc_server         ** freeme );
24
25void        tr_rpcSetEnabled( tr_rpc_server          * server,
26                              int                      isEnabled );
27
28int         tr_rpcIsEnabled ( const tr_rpc_server    * server );
29
30void        tr_rpcSetPort   ( tr_rpc_server          * server,
31                              int                      port );
32
33int         tr_rpcGetPort   ( const tr_rpc_server    * server );
34
35int         tr_rpcSetACL    ( tr_rpc_server          * server,
36                              const char             * acl,
37                              char                  ** allocme_errmsg );
38
39const char* tr_rpcGetACL    ( const tr_rpc_server    * server );
40
41#endif
Note: See TracBrowser for help on using the repository browser.