/usr/include/ccnet.h is in libccnet-dev 6.0.2-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 | /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
#ifndef _CCNET_H
#define _CCNET_H
#include <ccnet/option.h>
#include <glib.h>
#include <ccnet/valid-check.h>
#include <ccnet/peer.h>
#include <ccnet/message.h>
#include <ccnet/status-code.h>
#include <ccnet/processor.h>
#include <ccnet/ccnet-session-base.h>
#include <ccnet/ccnet-client.h>
#include <ccnet/proc-factory.h>
#include <ccnet/sendcmd-proc.h>
#include <ccnet/mqclient-proc.h>
#include <ccnet/invoke-service-proc.h>
#include <ccnet/timer.h>
#include <searpc-client.h>
/* mainloop */
void ccnet_main (CcnetClient *client);
typedef void (*RegisterServiceCB) (gboolean success);
void ccnet_register_service (CcnetClient *client,
const char *service, const char *group,
GType proc_type, RegisterServiceCB cb);
gboolean ccnet_register_service_sync (CcnetClient *client,
const char *service,
const char *group);
CcnetClient *ccnet_init (const char *central_config_dir, const char *confdir);
void ccnet_send_command (CcnetClient *client, const char *command,
SendcmdProcRcvrspCallback cmd_cb, void *cbdata);
void ccnet_add_peer (CcnetClient *client, const char *id, const char *addr);
void ccnet_connect_peer (CcnetClient *client, const char *id);
void ccnet_disconnect_peer (CcnetClient *client, const char *id);
/* client pool */
struct CcnetClientPool;
typedef struct CcnetClientPool CcnetClientPool;
struct CcnetClientPool *
ccnet_client_pool_new (const char *central_config_dir, const char *conf_dir);
CcnetClient *
ccnet_client_pool_get_client (struct CcnetClientPool *cpool);
void
ccnet_client_pool_return_client (struct CcnetClientPool *cpool,
CcnetClient *client);
/* rpc wrapper */
/* Create rpc client using a single client for transport. */
SearpcClient *
ccnet_create_rpc_client (CcnetClient *cclient, const char *peer_id,
const char *service_name);
/* Create rpc client using client pool for transport. */
SearpcClient *
ccnet_create_pooled_rpc_client (struct CcnetClientPool *cpool,
const char *peer_id,
const char *service);
SearpcClient *
ccnet_create_async_rpc_client (CcnetClient *cclient, const char *peer_id,
const char *service_name);
void ccnet_rpc_client_free (SearpcClient *client);
void ccnet_async_rpc_client_free (SearpcClient *client);
CcnetPeer *ccnet_get_peer (SearpcClient *client, const char *peer_id);
CcnetPeer *ccnet_get_peer_by_idname (SearpcClient *client, const char *idname);
int ccnet_get_peer_net_state (SearpcClient *client, const char *peer_id);
int ccnet_get_peer_bind_status (SearpcClient *client, const char *peer_id);
int ccnet_peer_is_ready (SearpcClient *client, const char *peer_id);
CcnetPeer *ccnet_get_default_relay (SearpcClient *client);
GList *ccnet_get_peers_by_role (SearpcClient *client, const char *role);
char *ccnet_get_binding_email (SearpcClient *client, const char *peer_id);
GList *ccnet_get_groups_by_user (SearpcClient *client, const char *user);
GList *
ccnet_get_group_members (SearpcClient *client, int group_id);
int
ccnet_org_user_exists (SearpcClient *client, int org_id, const char *user);
int
ccnet_get_binding_email_async (SearpcClient *client, const char *peer_id,
AsyncCallback callback, void *user_data);
char *ccnet_sign_message (SearpcClient *client, const char *message);
int ccnet_verify_message (SearpcClient *client,
const char *message,
const char *sig_base64,
const char *peer_id);
char *
ccnet_pubkey_encrypt (SearpcClient *client,
const char *msg_base64,
const char *peer_id);
char *
ccnet_privkey_decrypt (SearpcClient *client, const char *msg_base64);
char *ccnet_get_config (SearpcClient *client, const char *key);
int ccnet_set_config (SearpcClient *client, const char *key, const char *value);
void
ccnet_login_to_relay (SearpcClient *client, const char *relay_id,
const char *username, const char *passwd);
int
ccnet_update_peer_address (SearpcClient *client, const char *peer_id,
const char *addr, int port);
#endif
|