CLD 0.1git
Data Structures | Functions

include/ncld.h File Reference

#include <stdbool.h>
#include <glib.h>
#include <cldc.h>

Data Structures

struct  ncld_sess
struct  ncld_fh
struct  ncld_read

Functions

struct ncld_sessncld_sess_open (const char *host, int port, int *error, void(*event)(void *, unsigned int), void *ev_arg, const char *cld_user, const char *cld_key, struct hail_log *log)
struct ncld_fhncld_open (struct ncld_sess *s, const char *fname, unsigned int mode, int *error, unsigned int events, void(*event)(void *, unsigned int), void *ev_arg)
int ncld_del (struct ncld_sess *nsess, const char *fname)
struct ncld_readncld_get (struct ncld_fh *fh, int *error)
struct ncld_readncld_get_meta (struct ncld_fh *fh, int *error)
void ncld_read_free (struct ncld_read *rp)
int ncld_write (struct ncld_fh *, const void *data, long len)
int ncld_trylock (struct ncld_fh *)
int ncld_qlock (struct ncld_fh *)
int ncld_unlock (struct ncld_fh *)
void ncld_close (struct ncld_fh *)
void ncld_sess_close (struct ncld_sess *s)
void ncld_init (void)

Function Documentation

void ncld_close ( struct ncld_fh )
int ncld_del ( struct ncld_sess nsess,
const char *  fname 
)
struct ncld_read* ncld_get ( struct ncld_fh fh,
int *  error 
) [read]
struct ncld_read* ncld_get_meta ( struct ncld_fh fh,
int *  error 
) [read]
void ncld_init ( void  )
struct ncld_fh* ncld_open ( struct ncld_sess s,
const char *  fname,
unsigned int  mode,
int *  error,
unsigned int  events,
void(*)(void *, unsigned int)  event,
void *  ev_arg 
) [read]
int ncld_qlock ( struct ncld_fh )
void ncld_read_free ( struct ncld_read rp)
void ncld_sess_close ( struct ncld_sess s)
struct ncld_sess* ncld_sess_open ( const char *  host,
int  port,
int *  error,
void(*)(void *, unsigned int)  event,
void *  ev_arg,
const char *  cld_user,
const char *  cld_key,
struct hail_log log 
) [read]
int ncld_trylock ( struct ncld_fh )
int ncld_unlock ( struct ncld_fh )
int ncld_write ( struct ncld_fh ,
const void *  data,
long  len 
)