diff options
author | stuconnolly <stuart02@gmail.com> | 2010-10-08 14:32:49 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2010-10-08 14:32:49 +0000 |
commit | 26264ae853f9d2f5460213c660cf036f172c00a7 (patch) | |
tree | b518064e77fea4993ead37ef5972a64b35bbd1d1 /Source/SPDatabaseCharacterSets.h | |
parent | 271b47b558c0fdbf23c68d29163185127ac5d4f3 (diff) | |
download | sequelpro-26264ae853f9d2f5460213c660cf036f172c00a7.tar.gz sequelpro-26264ae853f9d2f5460213c660cf036f172c00a7.tar.bz2 sequelpro-26264ae853f9d2f5460213c660cf036f172c00a7.zip |
Tidy up SPDatabaseData by splitting out the hardcoded list of charcater sets into SPDatabaseCharacterSets. The struct is now returned by calling SPGetDatabaseCharacterSets().
Diffstat (limited to 'Source/SPDatabaseCharacterSets.h')
-rw-r--r-- | Source/SPDatabaseCharacterSets.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Source/SPDatabaseCharacterSets.h b/Source/SPDatabaseCharacterSets.h new file mode 100644 index 00000000..5de85d8a --- /dev/null +++ b/Source/SPDatabaseCharacterSets.h @@ -0,0 +1,34 @@ +// +// $Id$ +// +// SPDatabaseCharacaterSets.h +// sequel-pro +// +// Created by Stuart Connolly (stuconnolly.com) on October 7, 2010 +// Copyright (c) 2010 Stuart Connolly. All rights reserved. +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// More info at <http://code.google.com/p/sequel-pro/> + +typedef struct +{ + NSUInteger nr; + const char *name; + const char *collation; + const char *description; +} SPDatabaseCharSets; + +const SPDatabaseCharSets *SPGetDatabaseCharacterSets(void); |