#include <stdio.h>#include <gtk/gtk.h>#include <glib.h>#include <unistd.h>#include <pthread.h>#include <curl/curl.h>
Go to the source code of this file.
Defines | |
| #define | NUMT 4 |
Functions | |
| static gboolean | cb_delete (GtkWidget *window, gpointer data) |
| void * | create_thread (void *progress_bar) |
| int | main (int argc, char **argv) |
| void * | pull_one_url (void *NaN) |
| gboolean | pulse_bar (gpointer data) |
| size_t | write_file (void *ptr, size_t size, size_t nmemb, FILE *stream) |
Variables | |
| int | j = 0 |
| pthread_mutex_t | lock = PTHREAD_MUTEX_INITIALIZER |
| gint | num_urls = 9 |
| const char *const | urls [] |
| #define NUMT 4 |
Definition at line 44 of file smooth-gtk-thread.c.
| static gboolean cb_delete | ( | GtkWidget * | window, |
| gpointer | data | ||
| ) | [static] |
Definition at line 170 of file smooth-gtk-thread.c.
| void* create_thread | ( | void * | progress_bar | ) |
Definition at line 130 of file smooth-gtk-thread.c.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 176 of file smooth-gtk-thread.c.
| void* pull_one_url | ( | void * | NaN | ) |
Definition at line 68 of file smooth-gtk-thread.c.
| gboolean pulse_bar | ( | gpointer | data | ) |
Definition at line 118 of file smooth-gtk-thread.c.
| size_t write_file | ( | void * | ptr, |
| size_t | size, | ||
| size_t | nmemb, | ||
| FILE * | stream | ||
| ) |
Definition at line 61 of file smooth-gtk-thread.c.
| int j = 0 |
Definition at line 47 of file smooth-gtk-thread.c.
| pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER |
Definition at line 46 of file smooth-gtk-thread.c.
| gint num_urls = 9 |
Definition at line 48 of file smooth-gtk-thread.c.
| const char* const urls[] |
{
"90022",
"90023",
"90024",
"90025",
"90026",
"90027",
"90028",
"90029",
"90030"
}
Definition at line 49 of file smooth-gtk-thread.c.