/usr/include/sary/progress.h is in libsary-dev 1:1.2.0-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | #ifndef __SARY_PROGRESS_H__
#define __SARY_PROGRESS_H__
#include <glib.h>
#include <sary/saryconfig.h>
#include <time.h>
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
typedef struct _SaryProgress SaryProgress;
typedef void (*SaryProgressFunc) (SaryProgress *progress);
struct _SaryProgress {
gchar *task;
SaryInt current;
SaryInt previous;
SaryInt total;
time_t start_time;
clock_t start_processer_time;
gboolean is_finished;
SaryProgressFunc func;
gpointer func_data;
};
SaryProgress* sary_progress_new (const gchar *task,
SaryInt total);
void sary_progress_connect (SaryProgress *progress,
SaryProgressFunc func,
gpointer func_data);
void sary_progress_destroy (SaryProgress *progress);
void sary_progress_set_count (SaryProgress *progress,
SaryInt count);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __SARY_PROGRESS_H__ */
|