From 4df3236c3eddf20ef6f44e8728b0104c10043bf3 Mon Sep 17 00:00:00 2001 From: dhewg Date: Sun, 18 Dec 2011 17:20:00 +0100 Subject: [PATCH] Adapt structs for easy forward declarations Get rid of the tag namespace. --- framework/FileSystem.h | 6 +++--- sys/sys_public.h | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/framework/FileSystem.h b/framework/FileSystem.h index 48466a5..d00ed85 100644 --- a/framework/FileSystem.h +++ b/framework/FileSystem.h @@ -109,14 +109,14 @@ typedef struct fileDownload_s { void * buffer; } fileDownload_t; -typedef struct backgroundDownload_s { - struct backgroundDownload_s *next; // set by the fileSystem +struct backgroundDownload_t { + backgroundDownload_t *next; // set by the fileSystem dlType_t opcode; idFile * f; fileDownload_t file; urlDownload_t url; volatile bool completed; -} backgroundDownload_t; +}; // file list for directory listings class idFileList { diff --git a/sys/sys_public.h b/sys/sys_public.h index 2c844d7..6813bae 100644 --- a/sys/sys_public.h +++ b/sys/sys_public.h @@ -102,15 +102,15 @@ typedef enum { M_DELTAZ } sys_mEvents; -typedef struct sysEvent_s { +struct sysEvent_t { sysEventType_t evType; int evValue; int evValue2; int evPtrLength; // bytes of data pointed to by evPtr, for journaling void * evPtr; // this must be manually freed if not NULL -} sysEvent_t; +}; -typedef struct sysMemoryStats_s { +struct sysMemoryStats_t { int memoryLoad; int totalPhysical; int availPhysical; @@ -119,7 +119,7 @@ typedef struct sysMemoryStats_s { int totalVirtual; int availVirtual; int availExtendedVirtual; -} sysMemoryStats_t; +}; template class idList; // for Sys_ListFiles