summaryrefslogtreecommitdiffstats
path: root/libdimension/progress.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/progress.c')
-rw-r--r--libdimension/progress.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/libdimension/progress.c b/libdimension/progress.c
index 810920b..9d51d8d 100644
--- a/libdimension/progress.c
+++ b/libdimension/progress.c
@@ -18,9 +18,15 @@
* <http://www.gnu.org/licenses/>. *
*************************************************************************/
-#include "dimension.h"
+#include "dimension_impl.h"
#include <pthread.h>
+/* A single element in an array for dmnsn_progress. Progress of this item is
+ progress/total. */
+typedef struct {
+ unsigned int progress, total;
+} dmnsn_progress_element;
+
/* For thread synchronization */
static void dmnsn_progress_rdlock(const dmnsn_progress *progress);
static void dmnsn_progress_wrlock(dmnsn_progress *progress);