aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/MCPKit/MCPFoundationKit/MCPStreamingResult.h
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2010-03-26 13:14:54 +0000
committerstuconnolly <stuart02@gmail.com>2010-03-26 13:14:54 +0000
commit2c558dccc2235bfbd9c8f2114bbffa99c78c4af5 (patch)
treef22159b831abab0acb06a40c3800bdd32b1cd746 /Frameworks/MCPKit/MCPFoundationKit/MCPStreamingResult.h
parent6fb53eb4a62184f5ed0d8bdf42ff0973dd552ff9 (diff)
downloadsequelpro-2c558dccc2235bfbd9c8f2114bbffa99c78c4af5.tar.gz
sequelpro-2c558dccc2235bfbd9c8f2114bbffa99c78c4af5.tar.bz2
sequelpro-2c558dccc2235bfbd9c8f2114bbffa99c78c4af5.zip
Minor MCPKit tidy up, including the resolution of potential issues raised during static analysis.
Diffstat (limited to 'Frameworks/MCPKit/MCPFoundationKit/MCPStreamingResult.h')
-rw-r--r--Frameworks/MCPKit/MCPFoundationKit/MCPStreamingResult.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/Frameworks/MCPKit/MCPFoundationKit/MCPStreamingResult.h b/Frameworks/MCPKit/MCPFoundationKit/MCPStreamingResult.h
index 65ee6423..b17f8584 100644
--- a/Frameworks/MCPKit/MCPFoundationKit/MCPStreamingResult.h
+++ b/Frameworks/MCPKit/MCPFoundationKit/MCPStreamingResult.h
@@ -23,8 +23,10 @@
//
// More info at <http://code.google.com/p/sequel-pro/>
-#import <Cocoa/Cocoa.h>
+#import <Foundation/Foundation.h>
+
#import "MCPResult.h"
+#import "mysql.h"
@class MCPConnection;
@@ -39,20 +41,25 @@ typedef struct SP_MYSQL_ROWS {
MCPConnection *parentConnection;
MYSQL_FIELD *fieldDefinitions;
+
BOOL fullyStreaming;
BOOL connectionUnlocked;
BOOL dataDownloaded;
BOOL dataFreed;
+
LOCAL_ROW_DATA *localDataStore;
LOCAL_ROW_DATA *currentDataStoreEntry;
LOCAL_ROW_DATA *localDataStoreLastEntry;
+
unsigned long localDataRows;
unsigned long localDataAllocated;
unsigned long downloadedRowCount;
unsigned long processedRowCount;
unsigned long freedRowCount;
+
pthread_mutex_t dataCreationLock;
pthread_mutex_t dataFreeLock;
+
IMP isConnectedPtr;
SEL isConnectedSEL;
}