~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/pbms/src/engine_ms.h

  • Committer: Brian Aker
  • Date: 2010-10-09 17:44:13 UTC
  • mto: This revision was merged to the branch mainline in revision 1853.
  • Revision ID: brian@tangent.org-20101009174413-4cs0q58kw0fjd45y
First pass through adding back user_locks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (C) 2008 PrimeBase Technologies GmbH, Germany
 
1
/* Copyright (c) 2008 PrimeBase Technologies GmbH, Germany
2
2
 *
3
3
 * PrimeBase Media Stream for MySQL
4
4
 *
32
32
 
33
33
#include "defs_ms.h"
34
34
 
 
35
#include "cslib/CSConfig.h"
 
36
#include <inttypes.h>
 
37
 
 
38
#include "cslib/CSGlobal.h"
 
39
#include "cslib/CSSocket.h"
 
40
#include "cslib/CSStrUtil.h"
 
41
#include "cslib/CSHTTPStream.h"
 
42
 
35
43
#include "pbms.h"
36
44
class MSOpenTable;
37
45
 
77
85
        static bool couldBeURL(const char *url, size_t length);
78
86
        
79
87
        private:
80
 
        static bool try_createBlob(CSThread *self, const char *db_name, const char *tab_name, char *blob, size_t blob_len, PBMSBlobURLPtr blob_url);
81
 
        static bool try_referenceBlob(CSThread *self, const char *db_name, const char *tab_name, PBMSBlobURLPtr ret_blob_url, char *blob_url, uint16_t col_index);
82
 
        static bool try_dereferenceBlob(CSThread *self, const char *db_name, const char *tab_name, char *blob_url);
83
 
        static bool try_dropDatabase(CSThread *self, const char *db_name);
84
 
        static bool try_dropTable(CSThread *self, const char *db_name, const char *tab_name);
85
 
        static bool try_renameTable(CSThread *self, const char *from_db_name, const char *from_table, const char *to_db_name, const char *to_table);
86
 
        
87
88
        static MSOpenTable *openTable(const char *db_name, const char *tab_name, bool create);
88
89
        static bool renameTable(const char *db_name, const char *from_table, const char *to_db_name, const char *to_table);
89
90
        static void completeRenameTable(struct UnDoInfo *info, bool ok);