summaryrefslogtreecommitdiff
path: root/src/index.c
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-09-30 02:40:44 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-09-30 02:40:44 +0200
commit555f7bccebc92d28a14eb0fd6d29a2a39b8f83e1 (patch)
tree84596255b931b286125c103daee80cc3b9a5716a /src/index.c
parenta5f36f763cb8f66b1c658057f7af1ee6d7f246b7 (diff)
make common index.c functions externally accessible
Diffstat (limited to 'src/index.c')
-rw-r--r--src/index.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/index.c b/src/index.c
index 3ac5997..11974bd 100644
--- a/src/index.c
+++ b/src/index.c
@@ -28,10 +28,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "filelist.h"
#include "winwidget.h"
#include "options.h"
+#include "index.h"
-static char *create_index_title_string(int num, int w, int h);
-static char *create_index_string(feh_file *file);
-static void get_index_string_dim(feh_file *file, Imlib_Font fn, int *w, int *h);
/* TODO Break this up a bit ;) */
/* TODO s/bit/lot */
@@ -435,7 +433,7 @@ void init_index_mode(void)
return;
}
-static void get_index_string_dim(feh_file *file, Imlib_Font fn, int *fw, int *fh)
+void get_index_string_dim(feh_file *file, Imlib_Font fn, int *fw, int *fh)
{
int line_w, line_h;
gib_list *line, *lines;
@@ -464,12 +462,12 @@ static void get_index_string_dim(feh_file *file, Imlib_Font fn, int *fw, int *fh
return;
}
-static char *create_index_string(feh_file * file)
+char *create_index_string(feh_file * file)
{
return feh_printf(opt.index_info, file);
}
-static char *create_index_title_string(int num, int w, int h)
+char *create_index_title_string(int num, int w, int h)
{
static char str[50];