summaryrefslogtreecommitdiffstats
path: root/file_index.h
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 11:45:06 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 11:45:06 +0000
commit1ed437c55879912627b4f4fcd02cf07866cb48bb (patch)
treef418c22c84311ba379b907dd2bcf317ddb08a239 /file_index.h
parentAdding upstream version 1.15. (diff)
downloadlziprecover-1ed437c55879912627b4f4fcd02cf07866cb48bb.tar.xz
lziprecover-1ed437c55879912627b4f4fcd02cf07866cb48bb.zip
Adding upstream version 1.16~pre1.upstream/1.16_pre1
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'file_index.h')
-rw-r--r--file_index.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/file_index.h b/file_index.h
index fd2d488..8acb60f 100644
--- a/file_index.h
+++ b/file_index.h
@@ -1,5 +1,5 @@
/* Lziprecover - Data recovery tool for lzip files
- Copyright (C) 2009, 2010, 2011, 2012, 2013 Antonio Diaz Diaz.
+ Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014 Antonio Diaz Diaz.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -25,8 +25,7 @@ class Block
long long pos_, size_; // pos + size <= INT64_MAX
public:
- Block( const long long p, const long long s )
- : pos_( p ), size_( s ) {}
+ Block( const long long p, const long long s ) : pos_( p ), size_( s ) {}
long long pos() const { return pos_; }
long long size() const { return size_; }
@@ -68,6 +67,10 @@ class File_index
long long isize;
int retval_;
+ void set_errno_error( const char * const msg );
+ void set_num_error( const char * const msg1, unsigned long long num,
+ const char * const msg2 = "." );
+
public:
File_index() : error_( "No index." ), isize( 0 ), retval_( 2 ) {}
explicit File_index( const int infd );
@@ -104,8 +107,3 @@ public:
const Block & mblock( const int i ) const
{ return member_vector[i].mblock; }
};
-
-
-const char * format_num( unsigned long long num,
- unsigned long long limit = -1ULL,
- const int set_prefix = 0 );