nilfs-utils/include/parser.h
Ryusuke Konishi 7948e6bab5 nilfs-utils: replace __u32 etc. with standard uint32_t style types
Replace __u64, __u32, __u8, __s64, and __s32 with standard uint64_t,
uint32_t, uint8_t, int64_t and int32_t types, respectively, except for
nilfs2_api.h and nilfs2_ondisk.h.

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
2016-10-11 00:41:24 +09:00

22 lines
604 B
C

/*
* parser.h - NILFS parser library
*
* Copyright (C) 2005-2012 Nippon Telegraph and Telephone Corporation.
*
* This program can be redistributed under the terms of the GNU Lesser
* General Public License.
*/
#ifndef NILFS_PARSER_H
#define NILFS_PARSER_H
#include <stdint.h> /* uint64_t */
#include "nilfs.h" /* nilfs_cno_t */
nilfs_cno_t nilfs_parse_cno(const char *arg, char **endptr, int base);
int nilfs_parse_cno_range(const char *arg, uint64_t *start, uint64_t *end,
int base);
int nilfs_parse_protection_period(const char *arg, unsigned long *period);
#endif /* NILFS_PARSER_H */