simple_gui_creator 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,131 @@
1
+ /* $Id: dvdid2.h 3221 2009-10-14 20:08:09Z chris $ */
2
+
3
+ #ifndef DVDID__DVDID2_H
4
+ #define DVDID__DVDID2_H
5
+
6
+ #include <stdint.h>
7
+
8
+
9
+ #include "export.h"
10
+
11
+
12
+ #include "dvdid.h"
13
+
14
+
15
+ #ifdef __cplusplus
16
+ extern "C" {
17
+ #endif
18
+
19
+
20
+ enum dvdid_medium_e {
21
+ DVDID_MEDIUM_DVD = 1,
22
+ DVDID_MEDIUM_VCD,
23
+ DVDID_MEDIUM_SVCD,
24
+ };
25
+
26
+ enum dvdid_dir_e {
27
+ /* DVD */
28
+ DVDID_DIR_VIDEO_TS = 1,
29
+ /* VCD */
30
+ DVDID_DIR_VCD,
31
+ DVDID_DIR_CDI,
32
+ DVDID_DIR_EXT,
33
+ DVDID_DIR_KARAOKE,
34
+ DVDID_DIR_CDDA,
35
+ DVDID_DIR_MPEGAV,
36
+ DVDID_DIR_SEGMENT,
37
+ /* SVCD */
38
+ DVDID_DIR_SVCD,
39
+ /* DVDID_DIR_CDI, */
40
+ /* DVDID_DIR_EXT */
41
+ /* DVDID_DIR_KARAOKE, */
42
+ /* DVDID_DIR_CDDA, */
43
+ DVDID_DIR_MPEG2,
44
+ /* DVDID_DIR_SEGMENT, */
45
+ };
46
+
47
+ enum dvdid_file_e {
48
+ /* DVD */
49
+ DVDID_FILE_VMGI = 1,
50
+ DVDID_FILE_VTS01I,
51
+ /* VCD */
52
+ DVDID_FILE_INFO_VCD,
53
+ DVDID_FILE_ENTRIES_VCD,
54
+ /* SVCD */
55
+ DVDID_FILE_INFO_SVD,
56
+ DVDID_FILE_ENTRIES_SVD,
57
+ DVDID_FILE_TRACKS_SVD,
58
+ };
59
+
60
+
61
+ typedef struct dvdid_hashinfo_s dvdid_hashinfo_t;
62
+ typedef struct dvdid_fileinfo_s dvdid_fileinfo_t;
63
+
64
+ typedef enum dvdid_medium_e dvdid_medium_t;
65
+ typedef enum dvdid_dir_e dvdid_dir_t;
66
+ typedef enum dvdid_file_e dvdid_file_t;
67
+
68
+
69
+ struct dvdid_fileinfo_s {
70
+ /* Creation time as a Win32 FILETIME */
71
+ uint64_t creation_time;
72
+
73
+ /* Lowest 32bits of file size (explicitly, the
74
+ value stoted on the physical medium, which is
75
+ not necessarily the value reported by the OS
76
+ for (S)VCDs) */
77
+ uint32_t size;
78
+
79
+ /* Filename, uppercases, in ASCII */
80
+ char *name;
81
+ };
82
+
83
+
84
+ DVDID_API(dvdid_status_t) dvdid_calculate2(uint64_t *discid, const dvdid_hashinfo_t *hi);
85
+
86
+ /* Create a hashinfo struct. Returns non-zero on error */
87
+ DVDID_API(dvdid_status_t) dvdid_hashinfo_create(dvdid_hashinfo_t **hi);
88
+
89
+ /* Set/get the media type. Defaults to DVDID_TYPE_DVD for backwards
90
+ compatibility. Set this before adding file info / data. */
91
+ DVDID_API(dvdid_status_t) dvdid_hashinfo_set_medium(dvdid_hashinfo_t *hi, dvdid_medium_t medium);
92
+ DVDID_API(dvdid_medium_t) dvdid_hashinfo_get_medium(const dvdid_hashinfo_t *hi);
93
+
94
+ /* Add a file to the hashinfo struct. The fileinfo will be copied,
95
+ and memory allocated as appropriate. Returns non-zero on error, in
96
+ which case dvdid_hashinfo_free must be called on the hashinfo struct
97
+ as it's not guaranteed to be useable */
98
+ DVDID_API(dvdid_status_t) dvdid_hashinfo_add_fileinfo(dvdid_hashinfo_t *hi, dvdid_dir_t dir, const dvdid_fileinfo_t *fi);
99
+
100
+ /* Add the data read from various key files on the medium . This buffer
101
+ will be copied, so does not need to be valid until dvd_hashinfo_free is
102
+ called. Only call this once (per file to be added). */
103
+ /* We need at most the first DVDID_HASHINFO_FILEDATE_MAXSIZE bytes of the file */
104
+ #define DVDID_HASHINFO_FILEDATA_MAXSIZE 0x10000
105
+ DVDID_API(dvdid_status_t) dvdid_hashinfo_add_filedata(dvdid_hashinfo_t *hi, dvdid_file_t file, const uint8_t *buf, size_t size);
106
+
107
+ /* Having added the necessary files and data, perform any additional init
108
+ work before dvdid_calculate2 gets called */
109
+ DVDID_API(dvdid_status_t) dvdid_hashinfo_init(dvdid_hashinfo_t *hi);
110
+
111
+ /* Free hashinfo struct one finished with */
112
+ DVDID_API(void) dvdid_hashinfo_free(dvdid_hashinfo_t *hi);
113
+
114
+
115
+ /* From previous API, calls dvdid_hashinfo_add_file(hi, DVDID_DIR_VIDEO_TS, fi); */
116
+ DVDID_API(dvdid_status_t) dvdid_hashinfo_addfile(dvdid_hashinfo_t *hi, const dvdid_fileinfo_t *fi);
117
+
118
+ /* From previous API, calls dvdid_hashinfo_add_data(hi, DVDID_FILE_VMGI, buf, size); */
119
+ #define DVDID_HASHINFO_VXXI_MAXBUF DVDID_HASHINFO_FILEDATA_MAXSIZE
120
+ DVDID_API(dvdid_status_t) dvdid_hashinfo_set_vmgi(dvdid_hashinfo_t *hi, const uint8_t *buf, size_t size);
121
+
122
+ /* From previous API, calls dvdid_hashinfo_add_data(hi, DVDID_FILE_VTS01I, buf, size); */
123
+ DVDID_API(dvdid_status_t) dvdid_hashinfo_set_vts01i(dvdid_hashinfo_t *hi, const uint8_t *buf, size_t size);
124
+
125
+
126
+ #ifdef __cplusplus
127
+ }
128
+ #endif
129
+
130
+
131
+ #endif
@@ -0,0 +1,32 @@
1
+ /* $Id: export.h 2781 2009-09-13 11:31:27Z chris $ */
2
+ /* File structure and dll export system derived from FLAC */
3
+
4
+ #ifndef DVDID__EXPORT_H
5
+ #define DVDID__EXPORT_H
6
+
7
+ #if defined(DVDID__NO_DLL) || !defined(_MSC_VER)
8
+
9
+ #define DVDID_API(type) type
10
+ #define DVDID_CALLBACK
11
+
12
+ #else
13
+
14
+ #ifdef DVDID_API_EXPORTS
15
+ /* We use a .def file rather than __declspec(dllexport) */
16
+ #define DVDID_API(type) type __stdcall
17
+ #else
18
+ #define DVDID_API(type) __declspec(dllimport) type __stdcall
19
+ #endif
20
+
21
+ #define DVDID_CALLBACK __stdcall
22
+
23
+ #endif
24
+
25
+ /** These #defines will mirror the libtool-based library version number, see
26
+ * http://www.gnu.org/software/libtool/manual.html#Libtool-versioning
27
+ */
28
+ #define DVDID_API_VERSION_CURRENT 0
29
+ #define DVDID_API_VERSION_REVISION 0
30
+ #define DVDID_API_VERSION_AGE 0
31
+
32
+ #endif
Binary file
Binary file
@@ -0,0 +1,41 @@
1
+ # libdvdid.la - a libtool library file
2
+ # Generated by ltmain.sh (GNU libtool) 2.2.6
3
+ #
4
+ # Please DO NOT delete this file!
5
+ # It is necessary for linking the library.
6
+
7
+ # The name that we can dlopen(3).
8
+ dlname='libdvdid.0.dylib'
9
+
10
+ # Names of this library.
11
+ library_names='libdvdid.0.dylib libdvdid.dylib'
12
+
13
+ # The name of the static archive.
14
+ old_library='libdvdid.a'
15
+
16
+ # Linker flags that can not go in dependency_libs.
17
+ inherited_linker_flags=' '
18
+
19
+ # Libraries that this one depends upon.
20
+ dependency_libs=''
21
+
22
+ # Names of additional weak libraries provided by this library
23
+ weak_library_names=''
24
+
25
+ # Version information for libdvdid.
26
+ current=1
27
+ age=1
28
+ revision=0
29
+
30
+ # Is this an already installed library?
31
+ installed=yes
32
+
33
+ # Should we warn about portability when linking against -modules?
34
+ shouldnotlink=no
35
+
36
+ # Files to dlopen/dlpreopen
37
+ dlopen=''
38
+ dlpreopen=''
39
+
40
+ # Directory that this library needs to be installed in:
41
+ libdir='/Users/rogerdpack/mac_dvdid/lib'
metadata ADDED
@@ -0,0 +1,110 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: simple_gui_creator
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.1.0
6
+ platform: ruby
7
+ authors:
8
+ - rogerdpack
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2012-06-19 00:00:00 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: sane
17
+ prerelease: false
18
+ requirement: &id001 !ruby/object:Gem::Requirement
19
+ none: false
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: "0"
24
+ type: :runtime
25
+ version_requirements: *id001
26
+ - !ruby/object:Gem::Dependency
27
+ name: sane
28
+ prerelease: false
29
+ requirement: &id002 !ruby/object:Gem::Requirement
30
+ none: false
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: "0"
35
+ type: :runtime
36
+ version_requirements: *id002
37
+ description: Framework to ease in creation of ruby GUI apps. Makes designing windows a snap.
38
+ email: rogerdpack@gmail.com
39
+ executables:
40
+ - simple_gui_creator
41
+ extensions: []
42
+
43
+ extra_rdoc_files:
44
+ - README
45
+ - TODO
46
+ files:
47
+ - README
48
+ - Rakefile
49
+ - TODO
50
+ - VERSION
51
+ - bin/simple_gui_creator
52
+ - examples/absolute_positioning.rb
53
+ - ext/jl1.0.1.jar
54
+ - lib/simple_gui_creator.rb
55
+ - lib/simple_gui_creator/drive_info.rb
56
+ - lib/simple_gui_creator/mouse_control.rb
57
+ - lib/simple_gui_creator/parse_template.rb
58
+ - lib/simple_gui_creator/play_audio.rb
59
+ - lib/simple_gui_creator/play_mp3_audio.rb
60
+ - lib/simple_gui_creator/ruby_clip.rb
61
+ - lib/simple_gui_creator/simple_gui_creator.rb
62
+ - lib/simple_gui_creator/storage.rb
63
+ - spec/common.rb
64
+ - spec/diesel.mp3
65
+ - spec/drive_info.spec.rb
66
+ - spec/mouse.spec.rb
67
+ - spec/parse_template.spec.rb
68
+ - spec/play_mp3_audio.spec.rb
69
+ - spec/ruby_clip.spec.rb
70
+ - spec/run_drive_info.rb
71
+ - spec/static.wav
72
+ - spec/swing_helpers.spec.rb
73
+ - vendor/dvdid.exe
74
+ - vendor/mac_dvdid/bin/dvdid
75
+ - vendor/mac_dvdid/include/dvdid/dvdid.h
76
+ - vendor/mac_dvdid/include/dvdid/dvdid2.h
77
+ - vendor/mac_dvdid/include/dvdid/export.h
78
+ - vendor/mac_dvdid/lib/libdvdid.0.dylib
79
+ - vendor/mac_dvdid/lib/libdvdid.a
80
+ - vendor/mac_dvdid/lib/libdvdid.dylib
81
+ - vendor/mac_dvdid/lib/libdvdid.la
82
+ homepage: http://github.com/rdp/simple-ruby-gui-creator
83
+ licenses: []
84
+
85
+ post_install_message:
86
+ rdoc_options: []
87
+
88
+ require_paths:
89
+ - lib
90
+ required_ruby_version: !ruby/object:Gem::Requirement
91
+ none: false
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: "0"
96
+ required_rubygems_version: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ version: "0"
102
+ requirements: []
103
+
104
+ rubyforge_project:
105
+ rubygems_version: 1.8.9
106
+ signing_key:
107
+ specification_version: 3
108
+ summary: Framework to ease in creation of ruby GUI apps. Makes designing windows a snap.
109
+ test_files: []
110
+