Motr  M0
index_parser.c File Reference
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include "lib/errno.h"
#include "lib/assert.h"
#include "lib/memory.h"
#include "lib/trace.h"
#include "lib/buf_xc.h"
#include "xcode/xcode.h"
#include "lib/user_space/misc.h"
#include "index_parser.h"
#include "common.h"
#include "index.h"
Include dependency graph for index_parser.c:

Go to the source code of this file.

Data Structures

struct  command_descr
 

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_CLIENT
 

Functions

static int command_id (const char *name)
 
static int file_lines_count (const char *filename)
 
static int fids_load (const char *val, struct m0_fid_arr *fids)
 
static int vals_xcode (const char *value, void *buf, m0_bcount_t *size)
 
static int item_load (FILE *f, char **item, int *size)
 
static int vals_load (const char *value, struct m0_bufvec *vals)
 
static int command_assign (struct index_cmd *cmd, int *argc, char ***argv)
 
static bool command_is_valid (struct index_cmd *cmd)
 
int index_parser_args_process (struct index_ctx *ctx, int argc, char **argv)
 
void index_parser_print_command_help (void)
 

Variables

static const struct command_descr commands []