#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
#include <ctype.h>
#include <math.h>
#include <time.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/un.h>
#include <sys/wait.h>
#include <FL/Fl.H>
#include <FL/fl_ask.H>
#include <FL/fl_draw.H>
#include <FL/Fl_File_Chooser.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Widget.H>
#include <FL/Fl_Group.H>
#include <FL/Fl_Scroll.H>
#include <FL/Fl_Pack.H>
#include <FL/Fl_Box.H>
#include <FL/Fl_Button.H>
#include "config.h"
#include "dpiutil.h"
#include "../dpip/dpip.h"
Go to the source code of this file.
|
#define | _MSG(...) |
|
#define | MSG(...) printf("[downloads dpi]: " __VA_ARGS__) |
|
|
static char * | escape_tooltip (const char *buf, ssize_t len) |
|
static void | prButton_scb (Fl_Widget *, void *cb_data) |
|
static void | read_log_cb (int fd_in, void *data) |
|
static void | secs2timestr (int et, char *str) |
|
static void | raw_sigchld (int) |
|
static void | est_sigchld (void) |
|
static void | cleanup_cb (void *data) |
|
static void | update_cb (void *data) |
|
static void | read_req_cb (int req_fd, void *) |
|
static void | dlwin_esc_cb (Fl_Widget *, void *) |
|
static void | custLabelDraw (const Fl_Label *o, int X, int Y, int W, int H, Fl_Align align) |
|
static void | custLabelMeasure (const Fl_Label *o, int &W, int &H) |
|
int | main () |
|
◆ _MSG
◆ MSG
#define MSG |
( |
|
... | ) |
printf("[downloads dpi]: " __VA_ARGS__) |
◆ cleanup_cb()
static void cleanup_cb |
( |
void * |
data | ) |
|
|
static |
◆ custLabelDraw()
static void custLabelDraw |
( |
const Fl_Label * |
o, |
|
|
int |
X, |
|
|
int |
Y, |
|
|
int |
W, |
|
|
int |
H, |
|
|
Fl_Align |
align |
|
) |
| |
|
static |
◆ custLabelMeasure()
static void custLabelMeasure |
( |
const Fl_Label * |
o, |
|
|
int & |
W, |
|
|
int & |
H |
|
) |
| |
|
static |
◆ dlwin_esc_cb()
static void dlwin_esc_cb |
( |
Fl_Widget * |
, |
|
|
void * |
|
|
) |
| |
|
static |
◆ escape_tooltip()
static char * escape_tooltip |
( |
const char * |
buf, |
|
|
ssize_t |
len |
|
) |
| |
|
static |
◆ est_sigchld()
static void est_sigchld |
( |
void |
| ) |
|
|
static |
◆ main()
◆ prButton_scb()
static void prButton_scb |
( |
Fl_Widget * |
, |
|
|
void * |
cb_data |
|
) |
| |
|
static |
◆ raw_sigchld()
static void raw_sigchld |
( |
int |
| ) |
|
|
static |
◆ read_log_cb()
static void read_log_cb |
( |
int |
fd_in, |
|
|
void * |
data |
|
) |
| |
|
static |
◆ read_req_cb()
static void read_req_cb |
( |
int |
req_fd, |
|
|
void * |
|
|
) |
| |
|
static |
Definition at line 841 of file downloads.cc.
References _MSG, a_Dpip_check_auth(), a_Dpip_dsh_close(), a_Dpip_dsh_free(), a_Dpip_dsh_new(), a_Dpip_dsh_read_token(), a_Dpip_get_attr(), dFree(), dl_win, dStrerror, MSG, and sh.
◆ secs2timestr()
static void secs2timestr |
( |
int |
et, |
|
|
char * |
str |
|
) |
| |
|
static |
◆ update_cb()
static void update_cb |
( |
void * |
data | ) |
|
|
static |
◆ caught_sigchld
volatile sig_atomic_t caught_sigchld = 0 |
◆ dl_win
class DLWin* dl_win = NULL |
|
static |
◆ mask_sigchld