File: telak.h

package info (click to toggle)
telak 0.5-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 140 kB
  • ctags: 66
  • sloc: ansic: 821; makefile: 69
file content (49 lines) | stat: -rw-r--r-- 847 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
 * telak - A program that display pictures in root window
 * (c) 2005 - Julien Danjou <julien@danjou.info>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2, as
 * published by the Free Software Foundation.
 *
 */

#ifndef TELAK_H
#define TELAK_H

#define TELAK_RCFILE "/.telak/telakrc"
#define TELAK_CACHE_DIR "/.telak/cache/"

/* X11 and Imlib2 stuff */
#include <X11/Xlib.h>
#include <Imlib2.h>

struct deskitem
{
  Imlib_Image *image;
  char *file;
  char *url;
  int w;
  int h;
  int x;
  int y;
  int refresh;
  int loaded;
  int reverse;
  struct timeval tv;
  struct deskitem *next;
};


struct config
{
  char *file;
  char *display;
  char *cache_dir;
};

void make_conf(int argc, char **argv);
void init_x();
void check_cache_dir();

#endif