Skip to content
Browse files

merge with trunk. rev. 13144

  • Loading branch information...
1 parent 32dd658 commit f62886268843329860acabceaeb23b22963ef095 vulkanr committed May 19, 2008
Showing with 163 additions and 19,803 deletions.
  1. +2 −2 LICENSE.GPL
  2. +32 −32 language/Greek/strings.xml
  3. +4 −12 language/Swedish/strings.xml
  4. +1 −1 scripts/guibuilder.py
  5. +2 −2 skin/Project Mayhem III/PAL/DialogScriptInfo.xml
  6. +2 −2 skin/Project Mayhem III/PAL/LoginScreen.xml
  7. +2 −2 skin/Project Mayhem III/PAL/MyBuddies.xml
  8. +2 −2 skin/Project Mayhem III/PAL/MyGameSaves.xml
  9. +2 −2 skin/Project Mayhem III/PAL/MyMusicNav.xml
  10. +2 −2 skin/Project Mayhem III/PAL/MyMusicPlaylist.xml
  11. +2 −2 skin/Project Mayhem III/PAL/MyMusicPlaylistEditor.xml
  12. +1 −1 skin/Project Mayhem III/PAL/MyMusicSongs.xml
  13. +2 −2 skin/Project Mayhem III/PAL/MyPics.xml
  14. +1 −1 skin/Project Mayhem III/PAL/MyPrograms.xml
  15. +2 −2 skin/Project Mayhem III/PAL/MyScripts.xml
  16. +2 −2 skin/Project Mayhem III/PAL/MyVideo.xml
  17. +1 −1 skin/Project Mayhem III/PAL/MyVideoNav.xml
  18. +2 −2 skin/Project Mayhem III/PAL/MyVideoPlaylist.xml
  19. +2 −2 skin/Project Mayhem III/PAL/MyWeather.xml
  20. +1 −1 skin/Project Mayhem III/PAL/Settings.xml
  21. +2 −2 skin/Project Mayhem III/PAL/SettingsCategory.xml
  22. +2 −2 skin/Project Mayhem III/PAL/SettingsProfile.xml
  23. +2 −2 skin/Project Mayhem III/PAL/SettingsSystemInfo.xml
  24. +1 −1 skin/Project Mayhem III/PAL/custom2_SkinSettings.xml
  25. +22 −1 tools/Changelog/Changelog.cpp
  26. +21 −0 tools/Changelog/stdafx.cpp
  27. +21 −0 tools/Changelog/stdafx.h
  28. +2 −2 tools/TestXBS/Readme.txt
  29. +1 −1 tools/Translator/Setup/Setup.vdproj
  30. +2 −2 tools/Translator/Translator/StringArray.cs
  31. +20 −0 tools/UpdateThumbs.py
  32. +0 −4 tools/sqlite-3.2.2-xbmc/README.TXT
  33. BIN tools/sqlite-3.2.2-xbmc/bin/sqlite3.dll
  34. +0 −553 tools/sqlite-3.2.2-xbmc/src/alter.c
  35. +0 −352 tools/sqlite-3.2.2-xbmc/src/attach.c
  36. +0 −224 tools/sqlite-3.2.2-xbmc/src/auth.c
  37. +0 −5,812 tools/sqlite-3.2.2-xbmc/src/btree.c
  38. +0 −143 tools/sqlite-3.2.2-xbmc/src/btree.h
  39. +0 −2,881 tools/sqlite-3.2.2-xbmc/src/build.c
  40. +0 −306 tools/sqlite-3.2.2-xbmc/src/callback.c
  41. +0 −1,000 tools/sqlite-3.2.2-xbmc/src/date.c
  42. +0 −447 tools/sqlite-3.2.2-xbmc/src/delete.c
  43. +0 −2,071 tools/sqlite-3.2.2-xbmc/src/expr.c
  44. +0 −1,043 tools/sqlite-3.2.2-xbmc/src/func.c
  45. +0 −387 tools/sqlite-3.2.2-xbmc/src/hash.c
  46. +0 −109 tools/sqlite-3.2.2-xbmc/src/hash.h
  47. +0 −1,111 tools/sqlite-3.2.2-xbmc/src/insert.c
  48. +0 −96 tools/sqlite-3.2.2-xbmc/src/keywordhash.h
  49. +0 −138 tools/sqlite-3.2.2-xbmc/src/legacy.c
  50. +0 −1,003 tools/sqlite-3.2.2-xbmc/src/main.c
  51. +0 −135 tools/sqlite-3.2.2-xbmc/src/opcodes.c
  52. +0 −144 tools/sqlite-3.2.2-xbmc/src/opcodes.h
  53. +0 −202 tools/sqlite-3.2.2-xbmc/src/os.h
  54. +0 −107 tools/sqlite-3.2.2-xbmc/src/os_common.h
  55. +0 −1,345 tools/sqlite-3.2.2-xbmc/src/os_unix.c
  56. +0 −102 tools/sqlite-3.2.2-xbmc/src/os_unix.h
Sorry, we could not display the entire diff because it was too big.
View
4 LICENSE.GPL
@@ -1,6 +1,6 @@
- You may use, distribute and copy Xbox Media Center under the terms of
- GNU General Public License version 2, which is displayed below.
+ You may use, distribute and copy XBMC under the terms of GNU General
+ Public License version 2, which is displayed below.
-------------------------------------------------------------------------
View
64 language/Greek/strings.xml
@@ -1,8 +1,8 @@
-<?xml version="1.0" encoding="utf-8" standalone="yes"?>
+<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<!--Language file translated with Team XBMC Translator-->
<!--Translator: Ydatografida-->
<!--Email: ydatografida@gmail.com-->
-<!--Date of translation: 05/10/2008-->
+<!--Date of translation: 05/17/2008-->
<!--$Revision$-->
<!--Based on english strings version 12748-->
<strings>
@@ -63,7 +63,7 @@
<string id="123">Αντιγραφή των Αρχείων;</string>
<string id="124">Μετακίνηση των Αρχείων;</string>
<string id="125">Διαγραφή των Αρχείων;</string>
- <string id="126">Κατάσταση</string>
+ <string id="126">Λειτουργία</string>
<string id="127">Αντικείμενα</string>
<string id="128">Γενικά</string>
<string id="129">Παρουσίαση</string>
@@ -275,17 +275,17 @@
<string id="345">Έτος</string>
<string id="350">Προγράμματα</string>
<string id="351">Ανενεργή</string>
- <string id="352">Αμυδρή</string>
- <string id="353">Μαύρη</string>
+ <string id="352">Αμυδρό φως</string>
+ <string id="353">Μαύρη οθόνη</string>
<string id="354">Matrix Trails</string>
<string id="355">Προφύλαξη οθόνης μετά από</string>
- <string id="356">Κατάσταση προφύλαξης οθόνης</string>
+ <string id="356">Λειτουργία Προφύλαξης οθόνης</string>
<string id="357">Απενεργοποίηση μετά από</string>
<string id="358">Όλα τα άλμπουμ</string>
<string id="359">Πρόσφατα άλμπουμ</string>
<string id="360">Προφύλαξη οθόνης</string>
<string id="361">Παρουσίαση</string>
- <string id="362">Επίπεδο εμφάνισηςπροφύλαξης οθόνης (%)</string>
+ <string id="362">Επίπεδο εμφάνισης Προφύλαξης οθόνης (%)</string>
<string id="363">Ταξιν.: Αρχείο</string>
<string id="364">- Δέκτης ικανός για AC3</string>
<string id="365">Ταξιν.: Όνομα</string>
@@ -378,7 +378,7 @@
<string id="453">Διεύθυνση 3ης Γραμμής</string>
<string id="454">Διεύθυνση 4ης Γραμμής</string>
<string id="455">Γραμμές</string>
- <string id="456">Κατάσταση</string>
+ <string id="456">(Μέθοδος)</string>
<string id="457">Αλλαγή εμφάνισης</string>
<string id="459">Subs</string>
<string id="460">Ηχητική Ροή</string>
@@ -543,13 +543,13 @@
<string id="651">Βιβλιοθήκη Βίντεο</string>
<string id="652">Έτος</string>
<string id="653">Ενημέρωση Βιβλιοθήκης</string>
- <string id="654">Παρουσίαση Σφαλμάτων</string>
+ <string id="654">Επίδειξη Σφαλμάτων</string>
<string id="655">Αναζήτηση Εκτελέσιμου</string>
<string id="656">Αναζήτηση Λίστας Αναπαραγωγής</string>
<string id="657">Αναζήτηση Φακέλου</string>
<string id="658">Πληροφορίες τραγουδιού</string>
<string id="659">Σχόλιο:</string>
- <string id="660">Ένταση Amplification</string>
+ <string id="660">Ενίσχυση Έντασης</string>
<string id="661">Επιλογή Φακέλου Εξαγωγής</string>
<string id="700">Καθαρισμός Βιβλιοθήκης</string>
<string id="701">Απομάκρυνση παλαιών τραγουδιών από την Βιβλιοθήκη</string>
@@ -568,11 +568,11 @@
<string id="716">Αυτόματο (DHCP)</string>
<string id="717">Χειροκίνητο (Στατικό)</string>
<string id="718">Προεπιλογή (Dashboard)</string>
- <string id="719">Διεύθυνση IP</string>
- <string id="720">Μάσκα δικτύου</string>
- <string id="721">Προεπιλεγμένη Πύλη</string>
- <string id="722">Διακομιστής DNS</string>
- <string id="723">Σώσε &amp; Επανεκκίνηση</string>
+ <string id="719">- Διεύθυνση IP</string>
+ <string id="720">- Μάσκα δικτύου</string>
+ <string id="721">- Προεπιλεγμένη Πύλη</string>
+ <string id="722">- Διακομιστής DNS</string>
+ <string id="723">Αποθήκευση &amp; Επανεκκίνηση</string>
<string id="724">Προσδιορίστηκε εσφαλμένη διεύθυνση. Η τιμή πρέπει να έχει τη μορφή AAA.BBB.CCC.DDD</string>
<string id="725">με τιμές μεταξύ 0 και 255.</string>
<string id="726">Οι αλλαγές δεν σώθηκαν. Συνέχιση χωρίς αποθήκευση;</string>
@@ -600,7 +600,7 @@
<string id="748">Επεξεργασία Διαδρομής</string>
<string id="749">Προσθήκη κοινόχρηστων</string>
<string id="750">Είστε σίγουρος;</string>
- <string id="751">Απομάκρυνση κοινοχρήστων</string>
+ <string id="751">Απομάκρυνση Προέλευσης</string>
<string id="752">Επεξεργασία διαδρομής κοινόχρηστων</string>
<string id="753">Επεξεργασία ονόματος κοινοχρήστων</string>
<string id="754">Προσθήκη Συνδέσμου Προγράμματος</string>
@@ -622,7 +622,7 @@
<string id="770">Σφάλμα %i: ο Κοινόχρηστος πόρος δεν είναι διαθέσιμος</string>
<string id="771">- Αυτόματο όριο Fatx</string>
<string id="772">Υλικό Ήχου</string>
- <string id="773">Εξερεύνηση</string>
+ <string id="773">Αναζήτηση</string>
<string id="774">Φάκελος Παρουσίασης</string>
<string id="790">Απομακρυσμένα Γεγονότα</string>
<string id="791">Ενεργοποίηση Απομακρυσμένων Γεγονότων</string>
@@ -634,8 +634,8 @@
<string id="797">Μέγιστος Αριθμός Πελατών</string>
<string id="998">XLink Kai</string>
<string id="999">Παιχνίδια στο Διαδίκτυο</string>
- <string id="1000">Επισκόπηση Προφύλαξης Οθόνης</string>
- <string id="1001">Ανίκανο να συνδεθεί</string>
+ <string id="1000">Επισκόπηση Προφύλαξης οθόνης</string>
+ <string id="1001">Αδυναμία σύνδεσης</string>
<string id="1002">Το ΧΒMC είναι ανίκανο να συνδεθεί στο δίκτυο.</string>
<string id="1003">Αυτό μπορεί να συμβαίνει διότι το δίκτυο δεν είναι συνδεμένο.</string>
<string id="1004">Θέλετε να το προσθέσετε ακόμα;</string>
@@ -815,7 +815,7 @@
<string id="12017">Αυτόματη επανεκκίνηση από τη τελευταία θέση αναπαραγωγής</string>
<string id="12018">Όχι</string>
<string id="12019">Ναι</string>
- <string id="12020">Ρώτα</string>
+ <string id="12020">Ερώτηση</string>
<string id="12021">Εκκίνηση από την αρχή</string>
<string id="12022">Επανεκκίνηση από τη τελευταία θέση</string>
<string id="12023">Επικύρωση υπαρχόντων Εκπαιδευτών...</string>
@@ -833,16 +833,16 @@
<string id="12321">εντάξει</string>
<string id="12322">*</string>
<string id="12325">Κλειδωμένος! Εισαγωγή Κωδικού...</string>
- <string id="12326">Βάλτε Συνθηματικό</string>
- <string id="12327">Βάλτε Κεντρικό Κωδικό</string>
- <string id="12328">Βάλτε Κωδικό Ξεκλειδώματος και πατήστε Α,</string>
+ <string id="12326">Εισαγωγή Συνθηματικού</string>
+ <string id="12327">Εισαγωγή Κεντρικού Κωδικού</string>
+ <string id="12328">Εισάγετε Κωδικό Ξεκλειδώματος και πατήστε Α,</string>
<string id="12329">ή πατήστε Β για ακύρωση</string>
<string id="12330">Εισάγετε συνδυασμό πλήκτρων του μοχλού και πατήστε Start</string>
<string id="12331">πατήστε Start, ή Back για ακύρωση</string>
- <string id="12332">Κλείδωμα Κοινόχρηστου πόρου</string>
- <string id="12333">Ξεκλείδωμα Κοινόχρηστου πόρου</string>
- <string id="12334">Επανεισαγωγή κλειδιού Κοινόχρηστου πόρου</string>
- <string id="12335">Διαγραφεί κλειδιού Κοινόχρηστου πόρου</string>
+ <string id="12332">Κλείδωμα</string>
+ <string id="12333">Ξεκλείδωμα</string>
+ <string id="12334">Επανατοποθέτηση Κλειδώματος</string>
+ <string id="12335">Απομάκρυνση Κλειδώματος</string>
<string id="12337">Αριθμητικό Συνθηματικό</string>
<string id="12338">Συνδυασμός πλήκτρων του μοχλού</string>
<string id="12339">Συνθηματικό πλήρες κειμένου</string>
@@ -993,7 +993,7 @@
<string id="13325">Διαφάνεια σε πρώτο πλάνο</string>
<string id="13326">A/V καθυστέρηση</string>
<string id="13327">Καραόκε</string>
- <string id="13328">%s δεν βρέθηκε.</string>
+ <string id="13328">%s δεν βρέθηκε</string>
<string id="13329">Σφάλμα κατά το άνοιγμα %s</string>
<string id="13330">Αδυναμία φόρτωσης %s</string>
<string id="13331">Σφάλμα: Έλλειψη μνήμης.</string>
@@ -1161,13 +1161,13 @@
<string id="15019">Προσθήκη</string>
<string id="15020">Υποδοχή</string>
<string id="15021">Αρένες</string>
- <string id="15022">Προβολή: Αρένων</string>
+ <string id="15022">Προβολή: Αρένες</string>
<string id="15023">Παίξτε</string>
<string id="15024">Προσθήκη</string>
<string id="15025">Υποδοχή</string>
<string id="15026">Συνομιλία</string>
<string id="15027">Προβολή: Συνομιλία</string>
- <string id="15028">Πληκτρολόγιο</string>
+ <string id="15028">Διάταξη πληκτρολογίου</string>
<string id="15029">Για να συμμετάσχετε, απαιτείται συνθηματικό.</string>
<string id="15030">Η υπηρεσία αποσυνδέθηκε</string>
<string id="15031">Πιστοποίηση XLink Kai</string>
@@ -1208,7 +1208,7 @@
<string id="15104">* Όλα τα τραγούδια</string>
<string id="15105">* Όλα τα είδη</string>
<string id="15106">Απομνημόνευση επιλεγμένου αρχείου κατά την πλοήγηση</string>
- <string id="15107">Buffering...</string>
+ <string id="15107">Φόρτωση...</string>
<string id="15108">Ήχοι Πλοήγησης</string>
<string id="15109">Προεπιλεγμένο Κέλυφος</string>
<string id="15111">Θέμα Κελύφους</string>
@@ -1463,7 +1463,7 @@
<string id="20137">Προσάρτηση Μονάδας Μνήμης</string>
<string id="20138">Αδύνατη Προσάρτηση Μονάδας Μνήμης</string>
<string id="20139">Στη θύρα %i ,υποδοχή %i</string>
- <string id="20140">Κλείδωμα Προφύλαξης Οθόνης</string>
+ <string id="20140">Κλείδωμα Προφύλαξης οθόνης</string>
<string id="20141">Ορισμός</string>
<string id="20142">Όνομα χρήστη</string>
<string id="20143">Εισαγωγή συνθηματικού για</string>
View
16 language/Swedish/strings.xml
@@ -2,9 +2,9 @@
<!--Language file translated with Team XBMC Translator-->
<!--Translator: blittan-->
<!--Email: blittan@xbmc.org-->
-<!--Date of translation: 04/12/2008-->
+<!--Date of translation: 05/18/2008-->
<!--$Revision$-->
-<!--Based on english strings version 12592-->
+<!--Based on english strings version 12748-->
<strings>
<string id="0">Program</string>
<string id="1">Bilder</string>
@@ -1598,6 +1598,7 @@ den här visualiseringen</string>
<string id="20407">Scraper-inställningar</string>
<string id="20408">Hämtar Musikvideo-information</string>
<string id="20409">Hämtar TV-serieinformation</string>
+ <string id="20410">Trailer</string>
<string id="20411">Lägg ihop</string>
<string id="20412">Lägg ihop TV-serie om endast ett avsnitt</string>
<string id="20413">Hämta Fan-konst</string>
@@ -1762,15 +1763,6 @@ den här visualiseringen</string>
<string id="22000">Uppdatera biblioteket vid uppstart</string>
<string id="22001">Uppdatera alltid biblioteket i bakgrunden</string>
<string id="22002">- DNS suffix</string>
- <!-- WiiRemote/Wiimote Input Device -->
- <string id="21884">Wii Remote</string>
- <string id="21885">Aktivera musemulering</string>
- <string id="21886">Ingen Bluetooth sändare ansluten</string>
- <string id="21887">Wii Remote ansluten</string>
- <string id="21888">%i%% batteri kvarstår</string>
- <string id="21889">Wii Remote otillgänglig</string>
- <string id="21890">Wii Remote kopplades bort</string>
- <string id="21891">Tryck 1 och 2 för att återansluta</string>
-
+ <string id="22003">Aktivera redigera- och besluts-listor</string>
<string id="29999">Aktivera fladderfilter lagningsinställning till spel</string>
</strings>
View
2 scripts/guibuilder.py
@@ -93,7 +93,7 @@ class GUIBuilder:
Credits:
GetConditionalVisibility(), GetSkinPath(), LoadReferences(), LoadIncludes(), ResolveInclude()
-The above functions were translated from Xbox Media Center's source, thanks Developers.
+The above functions were translated from XBMC's source, thanks Developers.
A special thanks to elupus for shaming me into doing it the right way. :)
Nuka1195
View
4 skin/Project Mayhem III/PAL/DialogScriptInfo.xml
@@ -38,7 +38,7 @@
<animation effect="slide" time="200" start="0,0" end="204,0" acceleration="1.1" condition="!Skin.HasSetting(animated)">WindowClose</animation>
</control>
<control type="label">
- <description>xbox media center label</description>
+ <description>XBMC label</description>
<posx>200</posx>
<posy>43</posy>
<align>right</align>
@@ -66,4 +66,4 @@
<animation effect="fade" start="100" end="0" delay="0" time="100" condition="!Skin.HasSetting(animated)">WindowClose</animation>
</control>
</controls>
-</window>
+</window>
View
4 skin/Project Mayhem III/PAL/LoginScreen.xml
@@ -24,7 +24,7 @@
<texture>background-bottom.png</texture>
</control>
<control type="label" id="1">
- <description>Xbox media center label</description>
+ <description>XBMC label</description>
<posx>200</posx>
<posy>43</posy>
<align>right</align>
@@ -230,4 +230,4 @@
<animation effect="slide" end="0,400" time="800" condition="Window.Next(startup)">WindowClose</animation>
</control>
</controls>
-</window>
+</window>
View
4 skin/Project Mayhem III/PAL/MyBuddies.xml
@@ -19,7 +19,7 @@
<texture>background-bottom.png</texture>
</control>
<control type="label" id="1">
- <description>xbox media center label</description>
+ <description>XBMC label</description>
<posx>200</posx>
<posy>43</posy>
<align>right</align>
@@ -369,4 +369,4 @@
<animation effect="fade" time="100">WindowClose</animation>
</control>
</controls>
-</window>
+</window>
View
4 skin/Project Mayhem III/PAL/MyGameSaves.xml
@@ -19,7 +19,7 @@
<texture>background-bottom.png</texture>
</control>
<control type="label">
- <description>xbox media center label</description>
+ <description>XBMC label</description>
<posx>200</posx>
<posy>43</posy>
<align>right</align>
@@ -155,4 +155,4 @@
<include>AllViewCommonPageControls</include>
<include>windowswitchtransition</include>
</controls>
-</window>
+</window>
View
4 skin/Project Mayhem III/PAL/MyMusicNav.xml
@@ -19,7 +19,7 @@
<texture>background-bottom.png</texture>
</control>
<control type="label">
- <description>xbox media center label</description>
+ <description>XBMC label</description>
<posx>200</posx>
<posy>43</posy>
<align>right</align>
@@ -219,4 +219,4 @@
<include>AllViewCommonPageControls</include>
<include>windowswitchtransition</include>
</controls>
-</window>
+</window>
View
4 skin/Project Mayhem III/PAL/MyMusicPlaylist.xml
@@ -19,7 +19,7 @@
<texture>background-bottom.png</texture>
</control>
<control type="label">
- <description>xbox media center label</description>
+ <description>XBMC label</description>
<posx>200</posx>
<posy>43</posy>
<align>right</align>
@@ -111,4 +111,4 @@
<include>AllViewCommonPageControls</include>
<include>windowswitchtransition</include>
</controls>
-</window>
+</window>
View
4 skin/Project Mayhem III/PAL/MyMusicPlaylistEditor.xml
@@ -19,7 +19,7 @@
<texture>background-bottom.png</texture>
</control>
<control type="label">
- <description>xbox media center label</description>
+ <description>XBMC label</description>
<posx>200</posx>
<posy>43</posy>
<align>right</align>
@@ -340,4 +340,4 @@
</control>
<include>windowswitchtransition</include>
</controls>
-</window>
+</window>
View
2 skin/Project Mayhem III/PAL/MyMusicSongs.xml
@@ -19,7 +19,7 @@
<texture>background-bottom.png</texture>
</control>
<control type="label">
- <description>xbox media center label</description>
+ <description>XBMC label</description>
<posx>200</posx>
<posy>43</posy>
<align>right</align>
View
4 skin/Project Mayhem III/PAL/MyPics.xml
@@ -19,7 +19,7 @@
<texture>background-bottom.png</texture>
</control>
<control type="label">
- <description>xbox media center label</description>
+ <description>XBMC label</description>
<posx>200</posx>
<posy>43</posy>
<align>right</align>
@@ -190,4 +190,4 @@
<include>AllViewCommonPageControls</include>
<include>windowswitchtransition</include>
</controls>
-</window>
+</window>
View
2 skin/Project Mayhem III/PAL/MyPrograms.xml
@@ -19,7 +19,7 @@
<texture>background-bottom.png</texture>
</control>
<control type="label">
- <description>xbox media center label</description>
+ <description>XBMC label</description>
<posx>200</posx>
<posy>43</posy>
<align>right</align>
View
4 skin/Project Mayhem III/PAL/MyScripts.xml
@@ -19,7 +19,7 @@
<texture>background-bottom.png</texture>
</control>
<control type="label">
- <description>xbox media center label</description>
+ <description>XBMC label</description>
<posx>200</posx>
<posy>43</posy>
<align>right</align>
@@ -158,4 +158,4 @@
<include>AllViewCommonPageControls</include>
<include>windowswitchtransition</include>
</controls>
-</window>
+</window>
View
4 skin/Project Mayhem III/PAL/MyVideo.xml
@@ -19,7 +19,7 @@
<texture>background-bottom.png</texture>
</control>
<control type="label">
- <description>xbox media center label</description>
+ <description>XBMC label</description>
<posx>200</posx>
<posy>43</posy>
<align>right</align>
@@ -187,4 +187,4 @@
<include>AllViewCommonPageControls</include>
<include>windowswitchtransition</include>
</controls>
-</window>
+</window>
View
2 skin/Project Mayhem III/PAL/MyVideoNav.xml
@@ -29,7 +29,7 @@
<info>Container.TVShowThumb</info>
</control>
<control type="label">
- <description>xbox media center label</description>
+ <description>XBMC label</description>
<posx>200</posx>
<posy>43</posy>
<align>right</align>
View
4 skin/Project Mayhem III/PAL/MyVideoPlaylist.xml
@@ -19,7 +19,7 @@
<texture>background-bottom.png</texture>
</control>
<control type="label">
- <description>xbox media center label</description>
+ <description>XBMC label</description>
<posx>200</posx>
<posy>43</posy>
<align>right</align>
@@ -108,4 +108,4 @@
<include>AllViewCommonPageControls</include>
<include>windowswitchtransition</include>
</controls>
-</window>
+</window>
View
4 skin/Project Mayhem III/PAL/MyWeather.xml
@@ -19,7 +19,7 @@
<texture>background-bottom.png</texture>
</control>
<control type="label">
- <description>xbox media center label</description>
+ <description>XBMC label</description>
<posx>200</posx>
<posy>43</posy>
<align>right</align>
@@ -640,4 +640,4 @@
</control>
<include>windowswitchtransition</include>
</controls>
-</window>
+</window>
View
2 skin/Project Mayhem III/PAL/Settings.xml
@@ -19,7 +19,7 @@
<texture>background-bottom.png</texture>
</control>
<control type="label" id="1">
- <description>xbox media center label</description>
+ <description>XBMC label</description>
<posx>200</posx>
<posy>43</posy>
<align>right</align>
View
4 skin/Project Mayhem III/PAL/SettingsCategory.xml
@@ -19,7 +19,7 @@
<texture>background-bottom.png</texture>
</control>
<control type="label">
- <description>xbox media center label</description>
+ <description>XBMC label</description>
<posx>200</posx>
<posy>43</posy>
<align>right</align>
@@ -155,4 +155,4 @@
</control>
<include>windowswitchtransition</include>
</controls>
-</window>
+</window>
View
4 skin/Project Mayhem III/PAL/SettingsProfile.xml
@@ -19,7 +19,7 @@
<texture>background-bottom.png</texture>
</control>
<control type="label" id="1">
- <description>xbox media center label</description>
+ <description>XBMC label</description>
<posx>200</posx>
<posy>43</posy>
<align>right</align>
@@ -198,4 +198,4 @@
<include>AllViewCommonPageControls</include>
<include>windowswitchtransition</include>
</controls>
-</window>
+</window>
View
4 skin/Project Mayhem III/PAL/SettingsSystemInfo.xml
@@ -19,7 +19,7 @@
<texture>background-bottom.png</texture>
</control>
<control type="label">
- <description>xbox media center label</description>
+ <description>XBMC label</description>
<posx>200</posx>
<posy>43</posy>
<align>right</align>
@@ -807,4 +807,4 @@
</control>
</control>
</controls>
-</window>
+</window>
View
2 skin/Project Mayhem III/PAL/custom2_SkinSettings.xml
@@ -19,7 +19,7 @@
<texture>background-bottom.png</texture>
</control>
<control type="label" id="1">
- <description>xbox media center label</description>
+ <description>XBMC label</description>
<posx>200</posx>
<posy>43</posy>
<align>right</align>
View
23 tools/Changelog/Changelog.cpp
@@ -1,3 +1,24 @@
+/*
+ * Copyright (C) 2005-2008 Team XBMC
+ * http://www.xbmc.org
+ *
+ * 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, 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 XBMC; see the file COPYING. If not, write to
+ * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
+ */
+
// Changelog.cpp : Defines the entry point for the console application.
//
@@ -13,7 +34,7 @@
const char header[] = "*************************************************************************************************************\r\n"
"*************************************************************************************************************\r\n"
- " Xbox Media Center CHANGELOG\r\n"
+ " XBMC CHANGELOG\r\n"
"*************************************************************************************************************\r\n"
"*************************************************************************************************************\r\n"
"\r\n"
View
21 tools/Changelog/stdafx.cpp
@@ -1,3 +1,24 @@
+/*
+ * Copyright (C) 2005-2008 Team XBMC
+ * http://www.xbmc.org
+ *
+ * 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, 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 XBMC; see the file COPYING. If not, write to
+ * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
+ */
+
// stdafx.cpp : source file that includes just the standard includes
// Changelog.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
View
21 tools/Changelog/stdafx.h
@@ -1,3 +1,24 @@
+/*
+ * Copyright (C) 2005-2008 Team XBMC
+ * http://www.xbmc.org
+ *
+ * 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, 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 XBMC; see the file COPYING. If not, write to
+ * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
+ */
+
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
View
4 tools/TestXBS/Readme.txt
@@ -1,5 +1,5 @@
TestXBS v1.0 by Warren
-This program was made to assist with screensaver (XBS) development for the Xbox Media Center Project.
+This program was made to assist with screensaver (XBS) development for XBMC.
It is simply a wrapper program that calls the XBS start and stop routines and does the basic DirectX8
render loop calling the XBS render func to draw the pretty pictures.
@@ -10,4 +10,4 @@ Also, I have a bunch of DirectX initialisation stuff in there that is specific t
To use this app, run it with the path to the XBS you want to test as a commandline option ie:
TestXBS.exe path\to\ScreenSaver.xbs
-I have also modified the TemplateXBS package provided by the XBMC team to provide a Test build target so it automatically links with the Windows Directx8 libraries instead of the XBOX library stub. You just have to edit the properties for the Test build target so that Debugging->Command points to your TestXBS.exe
+I have also modified the TemplateXBS package provided by the XBMC team to provide a Test build target so it automatically links with the Windows Directx8 libraries instead of the XBOX library stub. You just have to edit the properties for the Test build target so that Debugging->Command points to your TestXBS.exe
View
2 tools/Translator/Setup/Setup.vdproj
@@ -347,7 +347,7 @@
{
"Name" = "8:XBMC Translator"
"Arguments" = "8:"
- "Description" = "8:Helps to translate language files for the XboxMediaCenter"
+ "Description" = "8:Helps to translate language files for XBMC"
"ShowCmd" = "3:1"
"IconIndex" = "3:0"
"Transitive" = "11:FALSE"
View
4 tools/Translator/Translator/StringArray.cs
@@ -208,7 +208,7 @@ public StringArray GetStringsNotIn(StringArray arr)
foreach (StringItem item in strings)
{
- if (item.Id!=6) // "XboxMediaCenter CVS"
+ if (item.Id!=6) // "XBMC SVN"
{
StringItem stringItem=null;
arr.GetStringById(item.Id, ref stringItem);
@@ -230,7 +230,7 @@ public long[] GetStringsChangedIn(StringArray arr)
foreach (StringItem item in strings)
{
- if (item.Id!=6) // "XboxMediaCenter CVS"
+ if (item.Id!=6) // "XBMC SVN"
{
StringItem stringItem=null;
arr.GetStringById(item.Id, ref stringItem);
View
20 tools/UpdateThumbs.py
@@ -1,3 +1,23 @@
+#
+# Copyright (C) 2005-2008 Team XBMC
+# http://www.xbmc.org
+#
+# 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, 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 XBMC; see the file COPYING. If not, write to
+# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+# http://www.gnu.org/copyleft/gpl.html
+#
+
import xbmc, xbmcgui, re, os
thumbDir = "Q:\\thumbs"
View
4 tools/sqlite-3.2.2-xbmc/README.TXT
@@ -1,4 +0,0 @@
-
-This contains the VS.NET solution to create a xbmc compatible sqlite3.dll. The only change is the max page size is set at 16384 in src/pager.h.
-
-This will compile the dll as sqlite-3.2.2-xbmc.dll. It just needs to be renamed to sqlite3.dll and placed in the same folder as sqlite3explorer or other sqlite dbms tools. A precompiled win32 version is available in the bin directory.
View
BIN tools/sqlite-3.2.2-xbmc/bin/sqlite3.dll
Binary file not shown.
View
553 tools/sqlite-3.2.2-xbmc/src/alter.c
@@ -1,553 +0,0 @@
-/*
-** 2005 February 15
-**
-** The author disclaims copyright to this source code. In place of
-** a legal notice, here is a blessing:
-**
-** May you do good and not evil.
-** May you find forgiveness for yourself and forgive others.
-** May you share freely, never taking more than you give.
-**
-*************************************************************************
-** This file contains C code routines that used to generate VDBE code
-** that implements the ALTER TABLE command.
-**
-** $Id$
-*/
-#include "sqliteInt.h"
-#include <ctype.h>
-
-/*
-** The code in this file only exists if we are not omitting the
-** ALTER TABLE logic from the build.
-*/
-#ifndef SQLITE_OMIT_ALTERTABLE
-
-
-/*
-** This function is used by SQL generated to implement the
-** ALTER TABLE command. The first argument is the text of a CREATE TABLE or
-** CREATE INDEX command. The second is a table name. The table name in
-** the CREATE TABLE or CREATE INDEX statement is replaced with the second
-** argument and the result returned. Examples:
-**
-** sqlite_rename_table('CREATE TABLE abc(a, b, c)', 'def')
-** -> 'CREATE TABLE def(a, b, c)'
-**
-** sqlite_rename_table('CREATE INDEX i ON abc(a)', 'def')
-** -> 'CREATE INDEX i ON def(a, b, c)'
-*/
-static void renameTableFunc(
- sqlite3_context *context,
- int argc,
- sqlite3_value **argv
-){
- unsigned char const *zSql = sqlite3_value_text(argv[0]);
- unsigned char const *zTableName = sqlite3_value_text(argv[1]);
-
- int token;
- Token tname;
- char const *zCsr = zSql;
- int len = 0;
- char *zRet;
-
- /* The principle used to locate the table name in the CREATE TABLE
- ** statement is that the table name is the first token that is immediatedly
- ** followed by a left parenthesis - TK_LP.
- */
- if( zSql ){
- do {
- /* Store the token that zCsr points to in tname. */
- tname.z = zCsr;
- tname.n = len;
-
- /* Advance zCsr to the next token. Store that token type in 'token',
- ** and it's length in 'len' (to be used next iteration of this loop).
- */
- do {
- zCsr += len;
- len = sqlite3GetToken(zCsr, &token);
- } while( token==TK_SPACE );
- assert( len>0 );
- } while( token!=TK_LP );
-
- zRet = sqlite3MPrintf("%.*s%Q%s", tname.z - zSql, zSql,
- zTableName, tname.z+tname.n);
- sqlite3_result_text(context, zRet, -1, sqlite3FreeX);
- }
-}
-
-#ifndef SQLITE_OMIT_TRIGGER
-/* This function is used by SQL generated to implement the ALTER TABLE
-** ALTER TABLE command. The first argument is the text of a CREATE TRIGGER
-** statement. The second is a table name. The table name in the CREATE
-** TRIGGER statement is replaced with the second argument and the result
-** returned. This is analagous to renameTableFunc() above, except for CREATE
-** TRIGGER, not CREATE INDEX and CREATE TABLE.
-*/
-static void renameTriggerFunc(
- sqlite3_context *context,
- int argc,
- sqlite3_value **argv
-){
- unsigned char const *zSql = sqlite3_value_text(argv[0]);
- unsigned char const *zTableName = sqlite3_value_text(argv[1]);
-
- int token;
- Token tname;
- int dist = 3;
- char const *zCsr = zSql;
- int len = 0;
- char *zRet;
-
- /* The principle used to locate the table name in the CREATE TRIGGER
- ** statement is that the table name is the first token that is immediatedly
- ** preceded by either TK_ON or TK_DOT and immediatedly followed by one
- ** of TK_WHEN, TK_BEGIN or TK_FOR.
- */
- if( zSql ){
- do {
- /* Store the token that zCsr points to in tname. */
- tname.z = zCsr;
- tname.n = len;
-
- /* Advance zCsr to the next token. Store that token type in 'token',
- ** and it's length in 'len' (to be used next iteration of this loop).
- */
- do {
- zCsr += len;
- len = sqlite3GetToken(zCsr, &token);
- }while( token==TK_SPACE );
- assert( len>0 );
-
- /* Variable 'dist' stores the number of tokens read since the most
- ** recent TK_DOT or TK_ON. This means that when a WHEN, FOR or BEGIN
- ** token is read and 'dist' equals 2, the condition stated above
- ** to be met.
- **
- ** Note that ON cannot be a database, table or column name, so
- ** there is no need to worry about syntax like
- ** "CREATE TRIGGER ... ON ON.ON BEGIN ..." etc.
- */
- dist++;
- if( token==TK_DOT || token==TK_ON ){
- dist = 0;
- }
- } while( dist!=2 || (token!=TK_WHEN && token!=TK_FOR && token!=TK_BEGIN) );
-
- /* Variable tname now contains the token that is the old table-name
- ** in the CREATE TRIGGER statement.
- */
- zRet = sqlite3MPrintf("%.*s%Q%s", tname.z - zSql, zSql,
- zTableName, tname.z+tname.n);
- sqlite3_result_text(context, zRet, -1, sqlite3FreeX);
- }
-}
-#endif /* !SQLITE_OMIT_TRIGGER */
-
-/*
-** Register built-in functions used to help implement ALTER TABLE
-*/
-void sqlite3AlterFunctions(sqlite3 *db){
- static const struct {
- char *zName;
- signed char nArg;
- void (*xFunc)(sqlite3_context*,int,sqlite3_value **);
- } aFuncs[] = {
- { "sqlite_rename_table", 2, renameTableFunc},
-#ifndef SQLITE_OMIT_TRIGGER
- { "sqlite_rename_trigger", 2, renameTriggerFunc},
-#endif
- };
- int i;
-
- for(i=0; i<sizeof(aFuncs)/sizeof(aFuncs[0]); i++){
- sqlite3_create_function(db, aFuncs[i].zName, aFuncs[i].nArg,
- SQLITE_UTF8, 0, aFuncs[i].xFunc, 0, 0);
- }
-}
-
-/*
-** Generate the text of a WHERE expression which can be used to select all
-** temporary triggers on table pTab from the sqlite_temp_master table. If
-** table pTab has no temporary triggers, or is itself stored in the
-** temporary database, NULL is returned.
-*/
-static char *whereTempTriggers(Parse *pParse, Table *pTab){
- Trigger *pTrig;
- char *zWhere = 0;
- char *tmp = 0;
- if( pTab->iDb!=1 ){
- for( pTrig=pTab->pTrigger; pTrig; pTrig=pTrig->pNext ){
- if( pTrig->iDb==1 ){
- if( !zWhere ){
- zWhere = sqlite3MPrintf("name=%Q", pTrig->name);
- }else{
- tmp = zWhere;
- zWhere = sqlite3MPrintf("%s OR name=%Q", zWhere, pTrig->name);
- sqliteFree(tmp);
- }
- }
- }
- }
- return zWhere;
-}
-
-/*
-** Generate code to drop and reload the internal representation of table
-** pTab from the database, including triggers and temporary triggers.
-** Argument zName is the name of the table in the database schema at
-** the time the generated code is executed. This can be different from
-** pTab->zName if this function is being called to code part of an
-** "ALTER TABLE RENAME TO" statement.
-*/
-static void reloadTableSchema(Parse *pParse, Table *pTab, const char *zName){
- Vdbe *v;
- char *zWhere;
- int iDb;
-#ifndef SQLITE_OMIT_TRIGGER
- Trigger *pTrig;
-#endif
-
- v = sqlite3GetVdbe(pParse);
- if( !v ) return;
- iDb = pTab->iDb;
-
-#ifndef SQLITE_OMIT_TRIGGER
- /* Drop any table triggers from the internal schema. */
- for(pTrig=pTab->pTrigger; pTrig; pTrig=pTrig->pNext){
- assert( pTrig->iDb==iDb || pTrig->iDb==1 );
- sqlite3VdbeOp3(v, OP_DropTrigger, pTrig->iDb, 0, pTrig->name, 0);
- }
-#endif
-
- /* Drop the table and index from the internal schema */
- sqlite3VdbeOp3(v, OP_DropTable, iDb, 0, pTab->zName, 0);
-
- /* Reload the table, index and permanent trigger schemas. */
- zWhere = sqlite3MPrintf("tbl_name=%Q", zName);
- if( !zWhere ) return;
- sqlite3VdbeOp3(v, OP_ParseSchema, iDb, 0, zWhere, P3_DYNAMIC);
-
-#ifndef SQLITE_OMIT_TRIGGER
- /* Now, if the table is not stored in the temp database, reload any temp
- ** triggers. Don't use IN(...) in case SQLITE_OMIT_SUBQUERY is defined.
- */
- if( (zWhere=whereTempTriggers(pParse, pTab)) ){
- sqlite3VdbeOp3(v, OP_ParseSchema, 1, 0, zWhere, P3_DYNAMIC);
- }
-#endif
-}
-
-/*
-** Generate code to implement the "ALTER TABLE xxx RENAME TO yyy"
-** command.
-*/
-void sqlite3AlterRenameTable(
- Parse *pParse, /* Parser context. */
- SrcList *pSrc, /* The table to rename. */
- Token *pName /* The new table name. */
-){
- int iDb; /* Database that contains the table */
- char *zDb; /* Name of database iDb */
- Table *pTab; /* Table being renamed */
- char *zName = 0; /* NULL-terminated version of pName */
- sqlite3 *db = pParse->db; /* Database connection */
- Vdbe *v;
-#ifndef SQLITE_OMIT_TRIGGER
- char *zWhere = 0; /* Where clause to locate temp triggers */
-#endif
-
- assert( pSrc->nSrc==1 );
-
- pTab = sqlite3LocateTable(pParse, pSrc->a[0].zName, pSrc->a[0].zDatabase);
- if( !pTab ) goto exit_rename_table;
- iDb = pTab->iDb;
- zDb = db->aDb[iDb].zName;
-
- /* Get a NULL terminated version of the new table name. */
- zName = sqlite3NameFromToken(pName);
- if( !zName ) goto exit_rename_table;
-
- /* Check that a table or index named 'zName' does not already exist
- ** in database iDb. If so, this is an error.
- */
- if( sqlite3FindTable(db, zName, zDb) || sqlite3FindIndex(db, zName, zDb) ){
- sqlite3ErrorMsg(pParse,
- "there is already another table or index with this name: %s", zName);
- goto exit_rename_table;
- }
-
- /* Make sure it is not a system table being altered, or a reserved name
- ** that the table is being renamed to.
- */
- if( strlen(pTab->zName)>6 && 0==sqlite3StrNICmp(pTab->zName, "sqlite_", 7) ){
- sqlite3ErrorMsg(pParse, "table %s may not be altered", pTab->zName);
- goto exit_rename_table;
- }
- if( SQLITE_OK!=sqlite3CheckObjectName(pParse, zName) ){
- goto exit_rename_table;
- }
-
-#ifndef SQLITE_OMIT_AUTHORIZATION
- /* Invoke the authorization callback. */
- if( sqlite3AuthCheck(pParse, SQLITE_ALTER_TABLE, zDb, pTab->zName, 0) ){
- goto exit_rename_table;
- }
-#endif
-
- /* Begin a transaction and code the VerifyCookie for database iDb.
- ** Then modify the schema cookie (since the ALTER TABLE modifies the
- ** schema).
- */
- v = sqlite3GetVdbe(pParse);
- if( v==0 ){
- goto exit_rename_table;
- }
- sqlite3BeginWriteOperation(pParse, 0, iDb);
- sqlite3ChangeCookie(db, v, iDb);
-
- /* Modify the sqlite_master table to use the new table name. */
- sqlite3NestedParse(pParse,
- "UPDATE %Q.%s SET "
-#ifdef SQLITE_OMIT_TRIGGER
- "sql = sqlite_rename_table(sql, %Q), "
-#else
- "sql = CASE "
- "WHEN type = 'trigger' THEN sqlite_rename_trigger(sql, %Q)"
- "ELSE sqlite_rename_table(sql, %Q) END, "
-#endif
- "tbl_name = %Q, "
- "name = CASE "
- "WHEN type='table' THEN %Q "
- "WHEN name LIKE 'sqlite_autoindex%%' AND type='index' THEN "
- "'sqlite_autoindex_' || %Q || substr(name, %d+18,10) "
- "ELSE name END "
- "WHERE tbl_name=%Q AND "
- "(type='table' OR type='index' OR type='trigger');",
- zDb, SCHEMA_TABLE(iDb), zName, zName, zName,
-#ifndef SQLITE_OMIT_TRIGGER
- zName,
-#endif
- zName, strlen(pTab->zName), pTab->zName
- );
-
-#ifndef SQLITE_OMIT_AUTOINCREMENT
- /* If the sqlite_sequence table exists in this database, then update
- ** it with the new table name.
- */
- if( sqlite3FindTable(db, "sqlite_sequence", zDb) ){
- sqlite3NestedParse(pParse,
- "UPDATE %Q.sqlite_sequence set name = %Q WHERE name = %Q",
- zDb, zName, pTab->zName);
- }
-#endif
-
-#ifndef SQLITE_OMIT_TRIGGER
- /* If there are TEMP triggers on this table, modify the sqlite_temp_master
- ** table. Don't do this if the table being ALTERed is itself located in
- ** the temp database.
- */
- if( (zWhere=whereTempTriggers(pParse, pTab)) ){
- sqlite3NestedParse(pParse,
- "UPDATE sqlite_temp_master SET "
- "sql = sqlite_rename_trigger(sql, %Q), "
- "tbl_name = %Q "
- "WHERE %s;", zName, zName, zWhere);
- sqliteFree(zWhere);
- }
-#endif
-
- /* Drop and reload the internal table schema. */
- reloadTableSchema(pParse, pTab, zName);
-
-exit_rename_table:
- sqlite3SrcListDelete(pSrc);
- sqliteFree(zName);
-}
-
-
-/*
-** This function is called after an "ALTER TABLE ... ADD" statement
-** has been parsed. Argument pColDef contains the text of the new
-** column definition.
-**
-** The Table structure pParse->pNewTable was extended to include
-** the new column during parsing.
-*/
-void sqlite3AlterFinishAddColumn(Parse *pParse, Token *pColDef){
- Table *pNew; /* Copy of pParse->pNewTable */
- Table *pTab; /* Table being altered */
- int iDb; /* Database number */
- const char *zDb; /* Database name */
- const char *zTab; /* Table name */
- char *zCol; /* Null-terminated column definition */
- Column *pCol; /* The new column */
- Expr *pDflt; /* Default value for the new column */
- Vdbe *v;
-
- if( pParse->nErr ) return;
- pNew = pParse->pNewTable;
- assert( pNew );
-
- iDb = pNew->iDb;
- zDb = pParse->db->aDb[iDb].zName;
- zTab = pNew->zName;
- pCol = &pNew->aCol[pNew->nCol-1];
- pDflt = pCol->pDflt;
- pTab = sqlite3FindTable(pParse->db, zTab, zDb);
- assert( pTab );
-
- /* If the default value for the new column was specified with a
- ** literal NULL, then set pDflt to 0. This simplifies checking
- ** for an SQL NULL default below.
- */
- if( pDflt && pDflt->op==TK_NULL ){
- pDflt = 0;
- }
-
- /* Check that the new column is not specified as PRIMARY KEY or UNIQUE.
- ** If there is a NOT NULL constraint, then the default value for the
- ** column must not be NULL.
- */
- if( pCol->isPrimKey ){
- sqlite3ErrorMsg(pParse, "Cannot add a PRIMARY KEY column");
- return;
- }
- if( pNew->pIndex ){
- sqlite3ErrorMsg(pParse, "Cannot add a UNIQUE column");
- return;
- }
- if( pCol->notNull && !pDflt ){
- sqlite3ErrorMsg(pParse,
- "Cannot add a NOT NULL column with default value NULL");
- return;
- }
-
- /* Ensure the default expression is something that sqlite3ValueFromExpr()
- ** can handle (i.e. not CURRENT_TIME etc.)
- */
- if( pDflt ){
- sqlite3_value *pVal;
- if( sqlite3ValueFromExpr(pDflt, SQLITE_UTF8, SQLITE_AFF_NONE, &pVal) ){
- /* malloc() has failed */
- return;
- }
- if( !pVal ){
- sqlite3ErrorMsg(pParse, "Cannot add a column with non-constant default");
- return;
- }
- sqlite3ValueFree(pVal);
- }
-
- /* Modify the CREATE TABLE statement. */
- zCol = sqliteStrNDup(pColDef->z, pColDef->n);
- if( zCol ){
- char *zEnd = &zCol[pColDef->n-1];
- while( (zEnd>zCol && *zEnd==';') || isspace(*(unsigned char *)zEnd) ){
- *zEnd-- = '\0';
- }
- sqlite3NestedParse(pParse,
- "UPDATE %Q.%s SET "
- "sql = substr(sql,1,%d) || ', ' || %Q || substr(sql,%d,length(sql)) "
- "WHERE type = 'table' AND name = %Q",
- zDb, SCHEMA_TABLE(iDb), pNew->addColOffset, zCol, pNew->addColOffset+1,
- zTab
- );
- sqliteFree(zCol);
- }
-
- /* If the default value of the new column is NULL, then set the file
- ** format to 2. If the default value of the new column is not NULL,
- ** the file format becomes 3.
- */
- if( (v=sqlite3GetVdbe(pParse)) ){
- int f = (pDflt?3:2);
-
- /* Only set the file format to $f if it is currently less than $f. */
- sqlite3VdbeAddOp(v, OP_ReadCookie, iDb, 1);
- sqlite3VdbeAddOp(v, OP_Integer, f, 0);
- sqlite3VdbeAddOp(v, OP_Ge, 0, sqlite3VdbeCurrentAddr(v)+3);
- sqlite3VdbeAddOp(v, OP_Integer, f, 0);
- sqlite3VdbeAddOp(v, OP_SetCookie, iDb, 1);
- }
-
- /* Reload the schema of the modified table. */
- reloadTableSchema(pParse, pTab, pTab->zName);
-}
-
-
-/*
-** This function is called by the parser after the table-name in
-** an "ALTER TABLE <table-name> ADD" statement is parsed. Argument
-** pSrc is the full-name of the table being altered.
-**
-** This routine makes a (partial) copy of the Table structure
-** for the table being altered and sets Parse.pNewTable to point
-** to it. Routines called by the parser as the column definition
-** is parsed (i.e. sqlite3AddColumn()) add the new Column data to
-** the copy. The copy of the Table structure is deleted by tokenize.c
-** after parsing is finished.
-**
-** Routine sqlite3AlterFinishAddColumn() will be called to complete
-** coding the "ALTER TABLE ... ADD" statement.
-*/
-void sqlite3AlterBeginAddColumn(Parse *pParse, SrcList *pSrc){
- Table *pNew;
- Table *pTab;
- Vdbe *v;
- int iDb;
- int i;
- int nAlloc;
-
- /* Look up the table being altered. */
- assert( !pParse->pNewTable );
- pTab = sqlite3LocateTable(pParse, pSrc->a[0].zName, pSrc->a[0].zDatabase);
- if( !pTab ) goto exit_begin_add_column;
-
- /* Make sure this is not an attempt to ALTER a view. */
- if( pTab->pSelect ){
- sqlite3ErrorMsg(pParse, "Cannot add a column to a view");
- goto exit_begin_add_column;
- }
-
- assert( pTab->addColOffset>0 );
- iDb = pTab->iDb;
-
- /* Put a copy of the Table struct in Parse.pNewTable for the
- ** sqlite3AddColumn() function and friends to modify.
- */
- pNew = (Table *)sqliteMalloc(sizeof(Table));
- if( !pNew ) goto exit_begin_add_column;
- pParse->pNewTable = pNew;
- pNew->nCol = pTab->nCol;
- assert( pNew->nCol>0 );
- nAlloc = (((pNew->nCol-1)/8)*8)+8;
- assert( nAlloc>=pNew->nCol && nAlloc%8==0 && nAlloc-pNew->nCol<8 );
- pNew->aCol = (Column *)sqliteMalloc(sizeof(Column)*nAlloc);
- pNew->zName = sqliteStrDup(pTab->zName);
- if( !pNew->aCol || !pNew->zName ){
- goto exit_begin_add_column;
- }
- memcpy(pNew->aCol, pTab->aCol, sizeof(Column)*pNew->nCol);
- for(i=0; i<pNew->nCol; i++){
- Column *pCol = &pNew->aCol[i];
- pCol->zName = sqliteStrDup(pCol->zName);
- pCol->zType = 0;
- pCol->pDflt = 0;
- }
- pNew->iDb = iDb;
- pNew->addColOffset = pTab->addColOffset;
- pNew->nRef = 1;
-
- /* Begin a transaction and increment the schema cookie. */
- sqlite3BeginWriteOperation(pParse, 0, iDb);
- v = sqlite3GetVdbe(pParse);
- if( !v ) goto exit_begin_add_column;
- sqlite3ChangeCookie(pParse->db, v, iDb);
-
-exit_begin_add_column:
- sqlite3SrcListDelete(pSrc);
- return;
-}
-#endif /* SQLITE_ALTER_TABLE */
View
352 tools/sqlite-3.2.2-xbmc/src/attach.c
@@ -1,352 +0,0 @@
-/*
-** 2003 April 6
-**
-** The author disclaims copyright to this source code. In place of
-** a legal notice, here is a blessing:
-**
-** May you do good and not evil.
-** May you find forgiveness for yourself and forgive others.
-** May you share freely, never taking more than you give.
-**
-*************************************************************************
-** This file contains code used to implement the ATTACH and DETACH commands.
-**
-** $Id$
-*/
-#include "sqliteInt.h"
-
-/*
-** This routine is called by the parser to process an ATTACH statement:
-**
-** ATTACH DATABASE filename AS dbname
-**
-** The pFilename and pDbname arguments are the tokens that define the
-** filename and dbname in the ATTACH statement.
-*/
-void sqlite3Attach(
- Parse *pParse, /* The parser context */
- Token *pFilename, /* Name of database file */
- Token *pDbname, /* Name of the database to use internally */
- int keyType, /* 0: no key. 1: TEXT, 2: BLOB */
- Token *pKey /* Text of the key for keytype 1 and 2 */
-){
- Db *aNew;
- int rc, i;
- char *zFile = 0;
- char *zName = 0;
- sqlite3 *db;
- Vdbe *v;
-
- v = sqlite3GetVdbe(pParse);
- if( !v ) return;
- sqlite3VdbeAddOp(v, OP_Expire, 1, 0);
- sqlite3VdbeAddOp(v, OP_Halt, 0, 0);
- if( pParse->explain ) return;
- db = pParse->db;
- if( db->nDb>=MAX_ATTACHED+2 ){
- sqlite3ErrorMsg(pParse, "too many attached databases - max %d",
- MAX_ATTACHED);
- pParse->rc = SQLITE_ERROR;
- return;
- }
-
- if( !db->autoCommit ){
- sqlite3ErrorMsg(pParse, "cannot ATTACH database within transaction");
- pParse->rc = SQLITE_ERROR;
- return;
- }
-
- zFile = sqlite3NameFromToken(pFilename);
- if( zFile==0 ){
- goto attach_end;
- }
-#ifndef SQLITE_OMIT_AUTHORIZATION
- if( sqlite3AuthCheck(pParse, SQLITE_ATTACH, zFile, 0, 0)!=SQLITE_OK ){
- goto attach_end;
- }
-#endif /* SQLITE_OMIT_AUTHORIZATION */
-
- zName = sqlite3NameFromToken(pDbname);
- if( zName==0 ){
- goto attach_end;
- }
- for(i=0; i<db->nDb; i++){
- char *z = db->aDb[i].zName;
- if( z && sqlite3StrICmp(z, zName)==0 ){
- sqlite3ErrorMsg(pParse, "database %s is already in use", zName);
- pParse->rc = SQLITE_ERROR;
- goto attach_end;
- }
- }
-
- if( db->aDb==db->aDbStatic ){
- aNew = sqliteMalloc( sizeof(db->aDb[0])*3 );
- if( aNew==0 ){
- goto attach_end;
- }
- memcpy(aNew, db->aDb, sizeof(db->aDb[0])*2);
- }else{
- aNew = sqliteRealloc(db->aDb, sizeof(db->aDb[0])*(db->nDb+1) );
- if( aNew==0 ){
- goto attach_end;
- }
- }
- db->aDb = aNew;
- aNew = &db->aDb[db->nDb++];
- memset(aNew, 0, sizeof(*aNew));
- sqlite3HashInit(&aNew->tblHash, SQLITE_HASH_STRING, 0);
- sqlite3HashInit(&aNew->idxHash, SQLITE_HASH_STRING, 0);
- sqlite3HashInit(&aNew->trigHash, SQLITE_HASH_STRING, 0);
- sqlite3HashInit(&aNew->aFKey, SQLITE_HASH_STRING, 1);
- aNew->zName = zName;
- zName = 0;
- aNew->safety_level = 3;
- rc = sqlite3BtreeFactory(db, zFile, 0, MAX_PAGES, &aNew->pBt);
- if( rc ){
- sqlite3ErrorMsg(pParse, "unable to open database: %s", zFile);
- }
-#if SQLITE_HAS_CODEC
- {
- extern int sqlite3CodecAttach(sqlite3*, int, void*, int);
- char *zKey;
- int nKey;
- if( keyType==0 ){
- /* No key specified. Use the key from the main database */
- extern void sqlite3CodecGetKey(sqlite3*, int, void**, int*);
- sqlite3CodecGetKey(db, 0, (void**)&zKey, &nKey);
- }else if( keyType==1 ){
- /* Key specified as text */
- zKey = sqlite3NameFromToken(pKey);
- nKey = strlen(zKey);
- }else{
- /* Key specified as a BLOB */
- char *zTemp;
- assert( keyType==2 );
- pKey->z++;
- pKey->n--;
- zTemp = sqlite3NameFromToken(pKey);
- zKey = sqlite3HexToBlob(zTemp);
- sqliteFree(zTemp);
- }
- sqlite3CodecAttach(db, db->nDb-1, zKey, nKey);
- if( keyType ){
- sqliteFree(zKey);
- }
- }
-#endif
- db->flags &= ~SQLITE_Initialized;
- if( pParse->nErr==0 && rc==SQLITE_OK ){
- rc = sqlite3ReadSchema(pParse);
- }
- if( rc ){
- int i = db->nDb - 1;
- assert( i>=2 );
- if( db->aDb[i].pBt ){
- sqlite3BtreeClose(db->aDb[i].pBt);
- db->aDb[i].pBt = 0;
- }
- sqlite3ResetInternalSchema(db, 0);
- if( 0==pParse->nErr ){
- pParse->nErr++;
- pParse->rc = SQLITE_ERROR;
- }
- }
-
-attach_end:
- sqliteFree(zFile);
- sqliteFree(zName);
-}
-
-/*
-** This routine is called by the parser to process a DETACH statement:
-**
-** DETACH DATABASE dbname
-**
-** The pDbname argument is the name of the database in the DETACH statement.
-*/
-void sqlite3Detach(Parse *pParse, Token *pDbname){
- int i;
- sqlite3 *db;
- Vdbe *v;
- Db *pDb = 0;
- char *zName;
-
- v = sqlite3GetVdbe(pParse);
- if( !v ) return;
- sqlite3VdbeAddOp(v, OP_Expire, 0, 0);
- sqlite3VdbeAddOp(v, OP_Halt, 0, 0);
- if( pParse->explain ) return;
- db = pParse->db;
- zName = sqlite3NameFromToken(pDbname);
- if( zName==0 ) return;
- for(i=0; i<db->nDb; i++){
- pDb = &db->aDb[i];
- if( pDb->pBt==0 ) continue;
- if( sqlite3StrICmp(pDb->zName, zName)==0 ) break;
- }
- if( i>=db->nDb ){
- sqlite3ErrorMsg(pParse, "no such database: %z", zName);
- return;
- }
- if( i<2 ){
- sqlite3ErrorMsg(pParse, "cannot detach database %z", zName);
- return;
- }
- sqliteFree(zName);
- if( !db->autoCommit ){
- sqlite3ErrorMsg(pParse, "cannot DETACH database within transaction");
- pParse->rc = SQLITE_ERROR;
- return;
- }
-#ifndef SQLITE_OMIT_AUTHORIZATION
- if( sqlite3AuthCheck(pParse,SQLITE_DETACH,db->aDb[i].zName,0,0)!=SQLITE_OK ){
- return;
- }
-#endif /* SQLITE_OMIT_AUTHORIZATION */
- sqlite3BtreeClose(pDb->pBt);
- pDb->pBt = 0;
- sqlite3ResetInternalSchema(db, 0);
-}
-
-/*
-** Initialize a DbFixer structure. This routine must be called prior
-** to passing the structure to one of the sqliteFixAAAA() routines below.
-**
-** The return value indicates whether or not fixation is required. TRUE
-** means we do need to fix the database references, FALSE means we do not.
-*/
-int sqlite3FixInit(
- DbFixer *pFix, /* The fixer to be initialized */
- Parse *pParse, /* Error messages will be written here */
- int iDb, /* This is the database that must be used */
- const char *zType, /* "view", "trigger", or "index" */
- const Token *pName /* Name of the view, trigger, or index */
-){
- sqlite3 *db;
-
- if( iDb<0 || iDb==1 ) return 0;
- db = pParse->db;
- assert( db->nDb>iDb );
- pFix->pParse = pParse;
- pFix->zDb = db->aDb[iDb].zName;
- pFix->zType = zType;
- pFix->pName = pName;
- return 1;
-}
-
-/*
-** The following set of routines walk through the parse tree and assign
-** a specific database to all table references where the database name
-** was left unspecified in the original SQL statement. The pFix structure
-** must have been initialized by a prior call to sqlite3FixInit().
-**
-** These routines are used to make sure that an index, trigger, or
-** view in one database does not refer to objects in a different database.
-** (Exception: indices, triggers, and views in the TEMP database are
-** allowed to refer to anything.) If a reference is explicitly made
-** to an object in a different database, an error message is added to
-** pParse->zErrMsg and these routines return non-zero. If everything
-** checks out, these routines return 0.
-*/
-int sqlite3FixSrcList(
- DbFixer *pFix, /* Context of the fixation */
- SrcList *pList /* The Source list to check and modify */
-){
- int i;
- const char *zDb;
- struct SrcList_item *pItem;
-
- if( pList==0 ) return 0;
- zDb = pFix->zDb;
- for(i=0, pItem=pList->a; i<pList->nSrc; i++, pItem++){
- if( pItem->zDatabase==0 ){
- pItem->zDatabase = sqliteStrDup(zDb);
- }else if( sqlite3StrICmp(pItem->zDatabase,zDb)!=0 ){
- sqlite3ErrorMsg(pFix->pParse,
- "%s %T cannot reference objects in database %s",
- pFix->zType, pFix->pName, pItem->zDatabase);
- return 1;
- }
-#if !defined(SQLITE_OMIT_VIEW) || !defined(SQLITE_OMIT_TRIGGER)
- if( sqlite3FixSelect(pFix, pItem->pSelect) ) return 1;
- if( sqlite3FixExpr(pFix, pItem->pOn) ) return 1;
-#endif
- }
- return 0;
-}
-#if !defined(SQLITE_OMIT_VIEW) || !defined(SQLITE_OMIT_TRIGGER)
-int sqlite3FixSelect(
- DbFixer *pFix, /* Context of the fixation */
- Select *pSelect /* The SELECT statement to be fixed to one database */
-){
- while( pSelect ){
- if( sqlite3FixExprList(pFix, pSelect->pEList) ){
- return 1;
- }
- if( sqlite3FixSrcList(pFix, pSelect->pSrc) ){
- return 1;
- }
- if( sqlite3FixExpr(pFix, pSelect->pWhere) ){
- return 1;
- }
- if( sqlite3FixExpr(pFix, pSelect->pHaving) ){
- return 1;
- }
- pSelect = pSelect->pPrior;
- }
- return 0;
-}
-int sqlite3FixExpr(
- DbFixer *pFix, /* Context of the fixation */
- Expr *pExpr /* The expression to be fixed to one database */
-){
- while( pExpr ){
- if( sqlite3FixSelect(pFix, pExpr->pSelect) ){
- return 1;
- }
- if( sqlite3FixExprList(pFix, pExpr->pList) ){
- return 1;
- }
- if( sqlite3FixExpr(pFix, pExpr->pRight) ){
- return 1;
- }
- pExpr = pExpr->pLeft;
- }
- return 0;
-}
-int sqlite3FixExprList(
- DbFixer *pFix, /* Context of the fixation */
- ExprList *pList /* The expression to be fixed to one database */
-){
- int i;
- struct ExprList_item *pItem;
- if( pList==0 ) return 0;
- for(i=0, pItem=pList->a; i<pList->nExpr; i++, pItem++){
- if( sqlite3FixExpr(pFix, pItem->pExpr) ){
- return 1;
- }
- }
- return 0;
-}
-#endif
-
-#ifndef SQLITE_OMIT_TRIGGER
-int sqlite3FixTriggerStep(
- DbFixer *pFix, /* Context of the fixation */
- TriggerStep *pStep /* The trigger step be fixed to one database */
-){
- while( pStep ){
- if( sqlite3FixSelect(pFix, pStep->pSelect) ){
- return 1;
- }
- if( sqlite3FixExpr(pFix, pStep->pWhere) ){
- return 1;
- }
- if( sqlite3FixExprList(pFix, pStep->pExprList) ){
- return 1;
- }
- pStep = pStep->pNext;
- }
- return 0;
-}
-#endif
View
224 tools/sqlite-3.2.2-xbmc/src/auth.c
@@ -1,224 +0,0 @@
-/*
-** 2003 January 11
-**
-** The author disclaims copyright to this source code. In place of
-** a legal notice, here is a blessing:
-**
-** May you do good and not evil.
-** May you find forgiveness for yourself and forgive others.
-** May you share freely, never taking more than you give.
-**
-*************************************************************************
-** This file contains code used to implement the sqlite3_set_authorizer()
-** API. This facility is an optional feature of the library. Embedded
-** systems that do not need this facility may omit it by recompiling
-** the library with -DSQLITE_OMIT_AUTHORIZATION=1
-**
-** $Id$
-*/
-#include "sqliteInt.h"
-
-/*
-** All of the code in this file may be omitted by defining a single
-** macro.
-*/
-#ifndef SQLITE_OMIT_AUTHORIZATION
-
-/*
-** Set or clear the access authorization function.
-**
-** The access authorization function is be called during the compilation
-** phase to verify that the user has read and/or write access permission on
-** various fields of the database. The first argument to the auth function
-** is a copy of the 3rd argument to this routine. The second argument
-** to the auth function is one of these constants:
-**
-** SQLITE_CREATE_INDEX
-** SQLITE_CREATE_TABLE
-** SQLITE_CREATE_TEMP_INDEX
-** SQLITE_CREATE_TEMP_TABLE
-** SQLITE_CREATE_TEMP_TRIGGER
-** SQLITE_CREATE_TEMP_VIEW
-** SQLITE_CREATE_TRIGGER
-** SQLITE_CREATE_VIEW
-** SQLITE_DELETE
-** SQLITE_DROP_INDEX
-** SQLITE_DROP_TABLE
-** SQLITE_DROP_TEMP_INDEX
-** SQLITE_DROP_TEMP_TABLE
-** SQLITE_DROP_TEMP_TRIGGER
-** SQLITE_DROP_TEMP_VIEW
-** SQLITE_DROP_TRIGGER
-** SQLITE_DROP_VIEW
-** SQLITE_INSERT
-** SQLITE_PRAGMA
-** SQLITE_READ
-** SQLITE_SELECT
-** SQLITE_TRANSACTION
-** SQLITE_UPDATE
-**
-** The third and fourth arguments to the auth function are the name of
-** the table and the column that are being accessed. The auth function
-** should return either SQLITE_OK, SQLITE_DENY, or SQLITE_IGNORE. If
-** SQLITE_OK is returned, it means that access is allowed. SQLITE_DENY
-** means that the SQL statement will never-run - the sqlite3_exec() call
-** will return with an error. SQLITE_IGNORE means that the SQL statement
-** should run but attempts to read the specified column will return NULL
-** and attempts to write the column will be ignored.
-**
-** Setting the auth function to NULL disables this hook. The default
-** setting of the auth function is NULL.
-*/
-int sqlite3_set_authorizer(
- sqlite3 *db,
- int (*xAuth)(void*,int,const char*,const char*,const char*,const char*),
- void *pArg
-){
- db->xAuth = xAuth;
- db->pAuthArg = pArg;
- sqlite3ExpirePreparedStatements(db);
- return SQLITE_OK;
-}
-
-/*
-** Write an error message into pParse->zErrMsg that explains that the
-** user-supplied authorization function returned an illegal value.
-*/
-static void sqliteAuthBadReturnCode(Parse *pParse, int rc){
- sqlite3ErrorMsg(pParse, "illegal return value (%d) from the "
- "authorization function - should be SQLITE_OK, SQLITE_IGNORE, "
- "or SQLITE_DENY", rc);
- pParse->rc = SQLITE_ERROR;
-}
-
-/*
-** The pExpr should be a TK_COLUMN expression. The table referred to
-** is in pTabList or else it is the NEW or OLD table of a trigger.
-** Check to see if it is OK to read this particular column.
-**
-** If the auth function returns SQLITE_IGNORE, change the TK_COLUMN
-** instruction into a TK_NULL. If the auth function returns SQLITE_DENY,
-** then generate an error.
-*/
-void sqlite3AuthRead(
- Parse *pParse, /* The parser context */
- Expr *pExpr, /* The expression to check authorization on */
- SrcList *pTabList /* All table that pExpr might refer to */
-){
- sqlite3 *db = pParse->db;
- int rc;
- Table *pTab; /* The table being read */
- const char *zCol; /* Name of the column of the table */
- int iSrc; /* Index in pTabList->a[] of table being read */
- const char *zDBase; /* Name of database being accessed */
- TriggerStack *pStack; /* The stack of current triggers */
-
- if( db->xAuth==0 ) return;
- assert( pExpr->op==TK_COLUMN );
- for(iSrc=0; pTabList && iSrc<pTabList->nSrc; iSrc++){
- if( pExpr->iTable==pTabList->a[iSrc].iCursor ) break;
- }
- if( iSrc>=0 && pTabList && iSrc<pTabList->nSrc ){
- pTab = pTabList->a[iSrc].pTab;
- }else if( (pStack = pParse->trigStack)!=0 ){
- /* This must be an attempt to read the NEW or OLD pseudo-tables
- ** of a trigger.
- */
- assert( pExpr->iTable==pStack->newIdx || pExpr->iTable==pStack->oldIdx );
- pTab = pStack->pTab;
- }else{
- return;
- }
- if( pTab==0 ) return;
- if( pExpr->iColumn>=0 ){
- assert( pExpr->iColumn<pTab->nCol );
- zCol = pTab->aCol[pExpr->iColumn].zName;
- }else if( pTab->iPKey>=0 ){
- assert( pTab->iPKey<pTab->nCol );
- zCol = pTab->aCol[pTab->iPKey].zName;
- }else{
- zCol = "ROWID";
- }
- assert( pExpr->iDb<db->nDb );
- zDBase = db->aDb[pExpr->iDb].zName;
- rc = db->xAuth(db->pAuthArg, SQLITE_READ, pTab->zName, zCol, zDBase,
- pParse->zAuthContext);
- if( rc==SQLITE_IGNORE ){
- pExpr->op = TK_NULL;
- }else if( rc==SQLITE_DENY ){
- if( db->nDb>2 || pExpr->iDb!=0 ){
- sqlite3ErrorMsg(pParse, "access to %s.%s.%s is prohibited",
- zDBase, pTab->zName, zCol);
- }else{
- sqlite3ErrorMsg(pParse, "access to %s.%s is prohibited",pTab->zName,zCol);
- }
- pParse->rc = SQLITE_AUTH;
- }else if( rc!=SQLITE_OK ){
- sqliteAuthBadReturnCode(pParse, rc);
- }
-}
-
-/*
-** Do an authorization check using the code and arguments given. Return
-** either SQLITE_OK (zero) or SQLITE_IGNORE or SQLITE_DENY. If SQLITE_DENY
-** is returned, then the error count and error message in pParse are
-** modified appropriately.
-*/
-int sqlite3AuthCheck(
- Parse *pParse,
- int code,
- const char *zArg1,
- const char *zArg2,
- const char *zArg3
-){
- sqlite3 *db = pParse->db;
- int rc;
-
- /* Don't do any authorization checks if the database is initialising. */
- if( db->init.busy ){
- return SQLITE_OK;
- }
-
- if( db->xAuth==0 ){
- return SQLITE_OK;
- }
- rc = db->xAuth(db->pAuthArg, code, zArg1, zArg2, zArg3, pParse->zAuthContext);
- if( rc==SQLITE_DENY ){
- sqlite3ErrorMsg(pParse, "not authorized");
- pParse->rc = SQLITE_AUTH;
- }else if( rc!=SQLITE_OK && rc!=SQLITE_IGNORE ){
- rc = SQLITE_DENY;
- sqliteAuthBadReturnCode(pParse, rc);
- }
- return rc;
-}
-
-/*
-** Push an authorization context. After this routine is called, the
-** zArg3 argument to authorization callbacks will be zContext until
-** popped. Or if pParse==0, this routine is a no-op.
-*/
-void sqlite3AuthContextPush(
- Parse *pParse,
- AuthContext *pContext,
- const char *zContext
-){
- pContext->pParse = pParse;
- if( pParse ){
- pContext->zAuthContext = pParse->zAuthContext;
- pParse->zAuthContext = zContext;
- }
-}
-
-/*
-** Pop an authorization context that was previously pushed
-** by sqlite3AuthContextPush
-*/
-void sqlite3AuthContextPop(AuthContext *pContext){
- if( pContext->pParse ){
- pContext->pParse->zAuthContext = pContext->zAuthContext;
- pContext->pParse = 0;
- }
-}
-
-#endif /* SQLITE_OMIT_AUTHORIZATION */
View
5,812 tools/sqlite-3.2.2-xbmc/src/btree.c
0 additions, 5,812 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
143 tools/sqlite-3.2.2-xbmc/src/btree.h
@@ -1,143 +0,0 @@
-/*
-** 2001 September 15
-**
-** The author disclaims copyright to this source code. In place of
-** a legal notice, here is a blessing:
-**
-** May you do good and not evil.
-** May you find forgiveness for yourself and forgive others.
-** May you share freely, never taking more than you give.
-**
-*************************************************************************
-** This header file defines the interface that the sqlite B-Tree file
-** subsystem. See comments in the source code for a detailed description
-** of what each interface routine does.
-**
-** @(#) $Id$
-*/
-#ifndef _BTREE_H_
-#define _BTREE_H_
-
-/* TODO: This definition is just included so other modules compile. It
-** needs to be revisited.
-*/
-#define SQLITE_N_BTREE_META 10
-
-/*
-** If defined as non-zero, auto-vacuum is enabled by default. Otherwise
-** it must be turned on for each database using "PRAGMA auto_vacuum = 1".
-*/
-#ifndef SQLITE_DEFAULT_AUTOVACUUM
- #define SQLITE_DEFAULT_AUTOVACUUM 0
-#endif
-
-/*
-** Forward declarations of structure
-*/
-typedef struct Btree Btree;
-typedef struct BtCursor BtCursor;
-
-
-int sqlite3BtreeOpen(
- const char *zFilename, /* Name of database file to open */
- Btree **, /* Return open Btree* here */
- int flags /* Flags */
-);
-
-/* The flags parameter to sqlite3BtreeOpen can be the bitwise or of the
-** following values.
-**
-** NOTE: These values must match the corresponding PAGER_ values in
-** pager.h.
-*/
-#define BTREE_OMIT_JOURNAL 1 /* Do not use journal. No argument */
-#define BTREE_NO_READLOCK 2 /* Omit readlocks on readonly files */
-#define BTREE_MEMORY 4 /* In-memory DB. No argument */
-
-int sqlite3BtreeClose(Btree*);
-int sqlite3BtreeSetBusyHandler(Btree*,BusyHandler*);
-int sqlite3BtreeSetCacheSize(Btree*,int);
-int sqlite3BtreeSetSafetyLevel(Btree*,int);
-int sqlite3BtreeSetPageSize(Btree*,int,int);
-int sqlite3BtreeGetPageSize(Btree*);
-int sqlite3BtreeGetReserve(Btree*);
-int sqlite3BtreeSetAutoVacuum(Btree *, int);
-int sqlite3BtreeGetAutoVacuum(Btree *);
-int sqlite3BtreeBeginTrans(Btree*,int);
-int sqlite3BtreeCommit(Btree*);
-int sqlite3BtreeRollback(Btree*);
-int sqlite3BtreeBeginStmt(Btree*);
-int sqlite3BtreeCommitStmt(Btree*);
-int sqlite3BtreeRollbackStmt(Btree*);
-int sqlite3BtreeCreateTable(Btree*, int*, int flags);
-int sqlite3BtreeIsInTrans(Btree*);
-int sqlite3BtreeIsInStmt(Btree*);
-int sqlite3BtreeSync(Btree*, const char *zMaster);
-int sqlite3BtreeReset(Btree *);
-
-const char *sqlite3BtreeGetFilename(Btree *);
-const char *sqlite3BtreeGetDirname(Btree *);
-const char *sqlite3BtreeGetJournalname(Btree *);
-int sqlite3BtreeCopyFile(Btree *, Btree *);
-
-/* The flags parameter to sqlite3BtreeCreateTable can be the bitwise OR
-** of the following flags:
-*/
-#define BTREE_INTKEY 1 /* Table has only 64-bit signed integer keys */
-#define BTREE_ZERODATA 2 /* Table has keys only - no data */
-#define BTREE_LEAFDATA 4 /* Data stored in leaves only. Implies INTKEY */
-
-int sqlite3BtreeDropTable(Btree*, int, int*);
-int sqlite3BtreeClearTable(Btree*, int);
-int sqlite3BtreeGetMeta(Btree*, int idx, u32 *pValue);
-int sqlite3BtreeUpdateMeta(Btree*, int idx, u32 value);
-
-int sqlite3BtreeCursor(
- Btree*, /* BTree containing table to open */
- int iTable, /* Index of root page */
- int wrFlag, /* 1 for writing. 0 for read-only */
- int(*)(void*,int,const void*,int,const void*), /* Key comparison function */
- void*, /* First argument to compare function */
- BtCursor **ppCursor /* Returned cursor */
-);
-
-void sqlite3BtreeSetCompare(
- BtCursor *,
- int(*)(void*,int,const void*,int,const void*),
- void*
-);
-
-int sqlite3BtreeCloseCursor(BtCursor*);
-int sqlite3BtreeMoveto(BtCursor*, const void *pKey, i64 nKey, int *pRes);
-int sqlite3BtreeDelete(BtCursor*);
-int sqlite3BtreeInsert(BtCursor*, const void *pKey, i64 nKey,
- const void *pData, int nData);
-int sqlite3BtreeFirst(BtCursor*, int *pRes);
-int sqlite3BtreeLast(BtCursor*, int *pRes);
-int sqlite3BtreeNext(BtCursor*, int *pRes);
-int sqlite3BtreeEof(BtCursor*);
-int sqlite3BtreeFlags(BtCursor*);
-int sqlite3BtreePrevious(BtCursor*, int *pRes);
-int sqlite3BtreeKeySize(BtCursor*, i64 *pSize);
-int sqlite3BtreeKey(BtCursor*, u32 offset, u32 amt, void*);
-const void *sqlite3BtreeKeyFetch(BtCursor*, int *pAmt);
-const void *sqlite3BtreeDataFetch(BtCursor*, int *pAmt);
-int sqlite3BtreeDataSize(BtCursor*, u32 *pSize);
-int sqlite3BtreeData(BtCursor*, u32 offset, u32 amt, void*);
-
-char *sqlite3BtreeIntegrityCheck(Btree*, int *aRoot, int nRoot);
-struct Pager *sqlite3BtreePager(Btree*);
-
-
-#ifdef SQLITE_TEST
-int sqlite3BtreeCursorInfo(BtCursor*, int*, int);
-void sqlite3BtreeCursorList(Btree*);
-#endif
-
-#ifdef SQLITE_DEBUG
-int sqlite3BtreePageDump(Btree*, int, int recursive);
-#else
-#define sqlite3BtreePageDump(X,Y,Z) SQLITE_OK
-#endif
-
-#endif /* _BTREE_H_ */
View
2,881 tools/sqlite-3.2.2-xbmc/src/build.c
0 additions, 2,881 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
306 tools/sqlite-3.2.2-xbmc/src/callback.c
@@ -1,306 +0,0 @@