1 | #ifndef ABOUT_H |
---|
2 | #define ABOUT_H |
---|
3 | |
---|
4 | int screenabout(void) |
---|
5 | { |
---|
6 | char *text = NULL, *tmpstr = NULL; |
---|
7 | struct dvbdev* dvbnode = dvbdev; |
---|
8 | |
---|
9 | text = malloc(MINMALLOC); |
---|
10 | if(text == NULL) |
---|
11 | { |
---|
12 | err("no memory"); |
---|
13 | return 1; |
---|
14 | } |
---|
15 | |
---|
16 | tmpstr = ostrcat(_("Image"), ": ", 0, 0); |
---|
17 | tmpstr = ostrcat(tmpstr, PROGNAME, 1, 0); |
---|
18 | tmpstr = ostrcat(tmpstr, "\n", 1, 0); |
---|
19 | tmpstr = ostrcat(tmpstr, _("Version"), 1, 0); |
---|
20 | tmpstr = ostrcat(tmpstr, ": ", 1, 0); |
---|
21 | tmpstr = ostrcat(tmpstr, OVERSION, 1, 0); |
---|
22 | tmpstr = ostrcat(tmpstr, "\n", 1, 0); |
---|
23 | tmpstr = ostrcat(tmpstr, _("Copyright"), 1, 0); |
---|
24 | tmpstr = ostrcat(tmpstr, ": ", 1, 0); |
---|
25 | tmpstr = ostrcat(tmpstr, COPYRIGHT, 1, 0); |
---|
26 | tmpstr = ostrcat(tmpstr, "\n\n", 1, 0); |
---|
27 | |
---|
28 | // snprintf(text, MINMALLOC, _("Image: %s\nVersion: %s\nCopyright: %s\n\n"), PROGNAME, OVERSION, COPYRIGHT); |
---|
29 | snprintf(text, MINMALLOC, "%s", tmpstr); |
---|
30 | free(tmpstr), tmpstr = NULL; |
---|
31 | |
---|
32 | while(dvbnode != NULL) |
---|
33 | { |
---|
34 | if(dvbnode->type == FRONTENDDEV && dvbnode->feinfo != NULL) |
---|
35 | { |
---|
36 | text = ostrcat(text, _("Tuner"), 1, 0); |
---|
37 | text = ostrcat(text, ": ", 1, 0); |
---|
38 | if(dvbnode->feinfo->name != NULL) |
---|
39 | text = ostrcat(text, dvbnode->feinfo->name, 1, 0); |
---|
40 | else |
---|
41 | text = ostrcat(text, _("unknown"), 1, 0); |
---|
42 | text = ostrcat(text, "\n", 1, 0); |
---|
43 | text = ostrcat(text, _("Tunertype"), 1, 0); |
---|
44 | text = ostrcat(text, ": ", 1, 0); |
---|
45 | |
---|
46 | tmpstr = fegettypestr(dvbnode); |
---|
47 | text = ostrcat(text, tmpstr, 1, 1); |
---|
48 | text = ostrcat(text, "\n\n", 1, 0); |
---|
49 | } |
---|
50 | dvbnode = dvbnode->next; |
---|
51 | } |
---|
52 | |
---|
53 | textbox(_("System-Info"), text, _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 600, 500, 0, 0); |
---|
54 | free(text); |
---|
55 | |
---|
56 | return 0; |
---|
57 | } |
---|
58 | |
---|
59 | #endif |
---|