瀏覽代碼

*** empty log message ***

Mike Goslin 25 年之前
父節點
當前提交
1a05db3f46

+ 4 - 3
panda/src/downloader/asyncUtility.h

@@ -25,15 +25,16 @@
 // Description :
 ////////////////////////////////////////////////////////////////////
 class EXPCL_PANDAEXPRESS AsyncUtility {
+PUBLISHED:
+  INLINE void set_frequency(float frequency);
+  INLINE float get_frequency(void) const;
+
 public:
   AsyncUtility(float frequency = 0.2);
   virtual ~AsyncUtility(void);
 
   void create_thread(void);
 
-  INLINE void set_frequency(float frequency);
-  INLINE float get_frequency(void) const;
-
 protected:
   void destroy_thread(void);
   static void* st_callback(void *arg);

+ 1 - 1
panda/src/downloader/decompressor.h

@@ -23,7 +23,7 @@ class DecompressorToken;
 // Description :
 ////////////////////////////////////////////////////////////////////
 class EXPCL_PANDAEXPRESS Decompressor : public AsyncUtility {
-public:
+PUBLISHED:
   Decompressor(void);
   Decompressor(PT(Buffer) buffer);
   virtual ~Decompressor(void);

+ 5 - 4
panda/src/downloader/downloadDb.h

@@ -45,8 +45,7 @@ typedef int Version;
 typedef int Phase;
 
 class EXPCL_PANDAEXPRESS DownloadDb {
-public:
-
+PUBLISHED:
   // Status of a multifile is stored in this enum
   // Note these values are in increasing order of "doneness"
   // So if you are decompressed, you are complete
@@ -190,20 +189,22 @@ public:
     bool write_header(ofstream &write_stream);
   };
 
+PUBLISHED:
   Db read_db(Filename &file);
   bool write_db(Filename &file, Db db);
 
+public:
   // The doenload db stores two databases, one that represents the client's state
   // and one that represents the server state
   Db _client_db;
   Db _server_db;
   
-public:
   // Magic number for knowing this is a download Db
   static PN_uint32 _magic_number;  
-
   typedef vector<HashVal> vectorHash;
   typedef map<string, vectorHash> VersionMap;
+
+PUBLISHED:
   void add_version(const Filename &name, HashVal hash, Version version);
   void add_version(const string &name, HashVal hash, Version version);
   int get_version(const Filename &name, HashVal hash);

+ 1 - 1
panda/src/downloader/hashVal.h

@@ -15,7 +15,7 @@
 // Description : A sixteen-byte hash value sent to the crypt library.
 ////////////////////////////////////////////////////////////////////
 class EXPCL_PANDAEXPRESS HashVal {
-public:
+PUBLISHED:
   INLINE HashVal();
   INLINE bool operator == (const HashVal &other) const;
   INLINE uint get_value(int val) const;