MACSio  0.9
Multi-purpose, Application-Centric, Scalable I/O Proxy App
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
macsio_iface.h File Reference
#include <json-c/json.h>

Go to the source code of this file.

Data Structures

struct  MACSIO_IFACE_Handle_t
 

Macros

#define MACSIO_IFACE_MAX_COUNT   128
 
#define MACSIO_IFACE_MAX_NAME   64
 

Typedefs

typedef void(* DumpFunc )(int argi, int argc, char **argv, json_object *main_obj, int dumpNum, double dumpTime)
 
typedef void(* LoadFunc )(int argi, int argc, char **argv, char const *path, json_object *main_obj, json_object **data_read_obj)
 
typedef int(* ProcessArgsFunc )(int argi, int argc, char **argv)
 
typedef int(* QueryFeaturesFunc )(void)
 
typedef int(* IdentifyFileFunc )(char const *pathname)
 
typedef struct
MACSIO_IFACE_Handle_t 
MACSIO_IFACE_Handle_t
 

Functions

int MACSIO_IFACE_Register (MACSIO_IFACE_Handle_t const *iface)
 
void MACSIO_IFACE_GetIds (int *cnt, int **ids)
 
void MACSIO_IFACE_GetIdsMatchingFileExtension (int *cnt, int **ids, char const *ext)
 
int MACSIO_IFACE_GetId (char const *name)
 
char const * MACSIO_IFACE_GetName (int id)
 
MACSIO_IFACE_Handle_t const * MACSIO_IFACE_GetByName (char const *name)
 
MACSIO_IFACE_Handle_t const * MACSIO_IFACE_GetById (int id)
 

Data Structure Documentation

struct MACSIO_IFACE_Handle_t

Definition at line 53 of file macsio_iface.h.

Data Fields
char name[MACSIO_IFACE_MAX_NAME]
char ext[MACSIO_IFACE_MAX_NAME]
int slotUsed
ProcessArgsFunc processArgsFunc
DumpFunc dumpFunc
LoadFunc loadFunc
QueryFeaturesFunc queryFeaturesFunc
IdentifyFileFunc identifyFileFunc

Macro Definition Documentation

#define MACSIO_IFACE_MAX_COUNT   128

Definition at line 32 of file macsio_iface.h.

#define MACSIO_IFACE_MAX_NAME   64

Definition at line 33 of file macsio_iface.h.

Typedef Documentation

typedef void(* DumpFunc)(int argi, int argc, char **argv, json_object *main_obj, int dumpNum, double dumpTime)

Definition at line 43 of file macsio_iface.h.

typedef void(* LoadFunc)(int argi, int argc, char **argv, char const *path, json_object *main_obj, json_object **data_read_obj)

Definition at line 44 of file macsio_iface.h.

typedef int(* ProcessArgsFunc)(int argi, int argc, char **argv)

Definition at line 46 of file macsio_iface.h.

typedef int(* QueryFeaturesFunc)(void)

Definition at line 47 of file macsio_iface.h.

typedef int(* IdentifyFileFunc)(char const *pathname)

Definition at line 48 of file macsio_iface.h.

Function Documentation

int MACSIO_IFACE_Register ( MACSIO_IFACE_Handle_t const *  iface)

Definition at line 35 of file macsio_iface.c.

void MACSIO_IFACE_GetIds ( int *  cnt,
int **  ids 
)

Definition at line 88 of file macsio_iface.c.

void MACSIO_IFACE_GetIdsMatchingFileExtension ( int *  cnt,
int **  ids,
char const *  ext 
)

Definition at line 67 of file macsio_iface.c.

int MACSIO_IFACE_GetId ( char const *  name)

Definition at line 48 of file macsio_iface.c.

char const* MACSIO_IFACE_GetName ( int  id)

Definition at line 60 of file macsio_iface.c.

MACSIO_IFACE_Handle_t const* MACSIO_IFACE_GetByName ( char const *  name)

Definition at line 100 of file macsio_iface.c.

MACSIO_IFACE_Handle_t const* MACSIO_IFACE_GetById ( int  id)

Definition at line 93 of file macsio_iface.c.