Skip to content

Commit 47a9bdf

Browse files
author
Manoj Kumar
committed
updated with 3.2.0 GA
Tested on samsung galaxy quattro with android 4.1.2
1 parent ffbda10 commit 47a9bdf

File tree

89 files changed

+4393
-405
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+4393
-405
lines changed

media/CHANGELOG.txt CHANGELOG.txt

File renamed without changes.

media/LICENSE LICENSE

File renamed without changes.

media/LICENSE.txt LICENSE.txt

File renamed without changes.

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ Refer example\app.js
3939
4040
var masterWin = Ti.UI.createWindow({
4141
navBarHidden : false,
42-
backgroundColor : "#fff"
42+
backgroundColor : "#fff",
43+
exitOnClose: true
4344
});
4445
masterWin.open();
4546

media/assets/README assets/README

File renamed without changes.
Binary file not shown.
2.33 KB
Binary file not shown.
9.29 KB
Binary file not shown.

build.properties

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
titanium.platform=/Users/Aditi/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.GA/android
2+
android.platform=/Applications/android_sdk/platforms/android-10
3+
google.apis=/Applications/android_sdk/add-ons/addon-google_apis-google-10

media/build.xml build.xml

File renamed without changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"modules":{"com.mykingdom.media.MediaModule":{"apiName":"Media","createProxies":[{"proxyClassName":"com.mykingdom.media.ExampleProxy","id":"com.mykingdom.media.ExampleProxy","propertyAccessors":[],"isTopLevel":false,"name":"Example","parentModule":"org.appcelerator.kroll.annotations.Kroll.DEFAULT","creatableInModule":"com.mykingdom.media.MediaModule","fullAPIName":"Media.Example"}]}},"proxies":{"com.mykingdom.media.ExampleProxy":{"methods":{"setMessage":{"hasInvocation":false,"apiName":"setMessage","defaultValueProvider":"org.appcelerator.kroll.KrollConverter","args":[{"defaultValueProvider":"org.appcelerator.kroll.KrollConverter","converter":"org.appcelerator.kroll.KrollConverter","sourceName":"message","name":"message","type":"java.lang.String"}],"converter":"org.appcelerator.kroll.KrollConverter","runOnUiThread":false,"name":"__default_name__","returnType":"void"},"getMessage":{"hasInvocation":false,"apiName":"getMessage","defaultValueProvider":"org.appcelerator.kroll.KrollConverter","args":[],"converter":"org.appcelerator.kroll.KrollConverter","runOnUiThread":false,"name":"__default_name__","returnType":"java.lang.String"},"printMessage":{"hasInvocation":false,"apiName":"printMessage","defaultValueProvider":"org.appcelerator.kroll.KrollConverter","args":[{"defaultValueProvider":"org.appcelerator.kroll.KrollConverter","converter":"org.appcelerator.kroll.KrollConverter","sourceName":"message","name":"message","type":"java.lang.String"}],"converter":"org.appcelerator.kroll.KrollConverter","runOnUiThread":false,"name":"__default_name__","returnType":"void"}},"proxyClassName":"ExampleProxy","superProxyClassName":"TiViewProxy","proxyAttrs":{"proxyClassName":"com.mykingdom.media.ExampleProxy","id":"com.mykingdom.media.ExampleProxy","propertyAccessors":[],"isTopLevel":false,"name":"Example","parentModule":"org.appcelerator.kroll.annotations.Kroll.DEFAULT","creatableInModule":"com.mykingdom.media.MediaModule","fullAPIName":"Media.Example"},"superProxyBindingClassName":"org.appcelerator.titanium.proxy.TiViewProxyBindingGen","packageName":"com.mykingdom.media","dynamicProperties":{"message":{"setDefaultProviders":["org.appcelerator.kroll.KrollConverter"],"getMethodArgs":[],"get":true,"runOnUiThread":false,"set":true,"getHasInvocation":false,"getMethodName":"getMessage","getReturnType":"java.lang.String","setMethodArgs":[{"defaultValueProvider":"org.appcelerator.kroll.KrollConverter","converter":"org.appcelerator.kroll.KrollConverter","sourceName":"message","name":"message","type":"java.lang.String"}],"setReturnType":"void","javascriptConverter":"org.appcelerator.kroll.KrollConverter","getDefaultProviders":[],"defaultValueProvider":"org.appcelerator.kroll.KrollConverter","converter":"org.appcelerator.kroll.KrollConverter","name":"message","retain":true,"setMethodName":"setMessage","nativeConverter":"org.appcelerator.kroll.KrollConverter","setHasInvocation":false}},"sourceName":"com.mykingdom.media.ExampleProxyBindingGen","genClassName":"ExampleProxyBindingGen","isModule":false,"superPackageName":"org.appcelerator.titanium.proxy"},"com.mykingdom.media.MediaModule":{"methods":{"getImageAtTime":{"hasInvocation":false,"apiName":"getImageAtTime","defaultValueProvider":"org.appcelerator.kroll.KrollConverter","args":[{"defaultValueProvider":"org.appcelerator.kroll.KrollConverter","converter":"org.appcelerator.kroll.KrollConverter","sourceName":"videoPath","name":"videoPath","type":"java.lang.String"},{"defaultValueProvider":"org.appcelerator.kroll.KrollConverter","converter":"org.appcelerator.kroll.KrollConverter","sourceName":"time","name":"time","type":"java.lang.Long"}],"converter":"org.appcelerator.kroll.KrollConverter","runOnUiThread":false,"name":"__default_name__","returnType":"org.appcelerator.titanium.TiBlob"},"getImageThumbnail":{"hasInvocation":false,"apiName":"getImageThumbnail","defaultValueProvider":"org.appcelerator.kroll.KrollConverter","args":[{"defaultValueProvider":"org.appcelerator.kroll.KrollConverter","converter":"org.appcelerator.kroll.KrollConverter","sourceName":"imageId","name":"imageId","type":"java.lang.Long"},{"defaultValueProvider":"org.appcelerator.kroll.KrollConverter","converter":"org.appcelerator.kroll.KrollConverter","sourceName":"thumbnailSize","name":"thumbnailSize","type":"java.lang.Integer"}],"converter":"org.appcelerator.kroll.KrollConverter","runOnUiThread":false,"name":"__default_name__","returnType":"org.appcelerator.titanium.TiBlob"},"getItems":{"hasInvocation":false,"apiName":"getItems","defaultValueProvider":"org.appcelerator.kroll.KrollConverter","args":[{"defaultValueProvider":"org.appcelerator.kroll.KrollConverter","converter":"org.appcelerator.kroll.KrollConverter","sourceName":"args","name":"args","type":"java.lang.Object[]"}],"converter":"org.appcelerator.kroll.KrollConverter","runOnUiThread":false,"name":"__default_name__","returnType":"java.util.HashMap"},"getVideoThumbnail":{"hasInvocation":false,"apiName":"getVideoThumbnail","defaultValueProvider":"org.appcelerator.kroll.KrollConverter","args":[{"defaultValueProvider":"org.appcelerator.kroll.KrollConverter","converter":"org.appcelerator.kroll.KrollConverter","sourceName":"videoId","name":"videoId","type":"java.lang.Long"},{"defaultValueProvider":"org.appcelerator.kroll.KrollConverter","converter":"org.appcelerator.kroll.KrollConverter","sourceName":"thumbnailSize","name":"thumbnailSize","type":"java.lang.Integer"}],"converter":"org.appcelerator.kroll.KrollConverter","runOnUiThread":false,"name":"__default_name__","returnType":"org.appcelerator.titanium.TiBlob"},"getAlbumArt":{"hasInvocation":false,"apiName":"getAlbumArt","defaultValueProvider":"org.appcelerator.kroll.KrollConverter","args":[{"defaultValueProvider":"org.appcelerator.kroll.KrollConverter","converter":"org.appcelerator.kroll.KrollConverter","sourceName":"albumId","name":"albumId","type":"java.lang.Long"}],"converter":"org.appcelerator.kroll.KrollConverter","runOnUiThread":false,"name":"__default_name__","returnType":"org.appcelerator.titanium.TiBlob"}},"proxyClassName":"MediaModule","superProxyClassName":"KrollModule","proxyAttrs":{"proxyClassName":"com.mykingdom.media.MediaModule","id":"com.mykingdom.media","propertyAccessors":[],"isTopLevel":false,"name":"Media","fullAPIName":"Media"},"superProxyBindingClassName":"org.appcelerator.kroll.KrollModuleBindingGen","packageName":"com.mykingdom.media","sourceName":"com.mykingdom.media.MediaModuleBindingGen","constants":{"MEDIA_TYPE_AUDIO":{"name":"MEDIA_TYPE_AUDIO","value":3,"proxyName":"MEDIA_TYPE_AUDIO","type":"int"},"MEDIA_TYPE_ALL":{"name":"MEDIA_TYPE_ALL","value":0,"proxyName":"MEDIA_TYPE_ALL","type":"int"},"MEDIA_TYPE_VIDEO":{"name":"MEDIA_TYPE_VIDEO","value":2,"proxyName":"MEDIA_TYPE_VIDEO","type":"int"},"THUMBANIL_MICRO":{"name":"THUMBANIL_MICRO","value":3,"proxyName":"THUMBANIL_MICRO","type":"int"},"MEDIA_TYPE_IMAGE":{"name":"MEDIA_TYPE_IMAGE","value":1,"proxyName":"MEDIA_TYPE_IMAGE","type":"int"},"THUMBANIL_MINI":{"name":"THUMBANIL_MINI","value":1,"proxyName":"THUMBANIL_MINI","type":"int"}},"genClassName":"MediaModuleBindingGen","isModule":true,"superPackageName":"org.appcelerator.kroll","onAppCreate":"onAppCreate"}}}

build/docs/index.html

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<h1>media Module</h1>
2+
<h2>Description</h2>
3+
<p>TODO: Enter your module description here</p>
4+
<h2>Accessing the media Module</h2>
5+
<p>To access this module from JavaScript, you would do the following:</p>
6+
<pre><code>var media = require("com.mykingdom.media");
7+
</code></pre>
8+
<p>The media variable is a reference to the Module object. </p>
9+
<h2>Reference</h2>
10+
<p>TODO: If your module has an API, you should document
11+
the reference here.</p>
12+
<h3><strong>_PROJECTNAMEASIDENTIFIER</strong>.function</h3>
13+
<p>TODO: This is an example of a module function.</p>
14+
<h3><strong>_PROJECTNAMEASIDENTIFIER</strong>.property</h3>
15+
<p>TODO: This is an example of a module property.</p>
16+
<h2>Usage</h2>
17+
<p>TODO: Enter your usage example here</p>
18+
<h2>Author</h2>
19+
<p>TODO: Enter your author name, email and other contact
20+
details you want to share here. </p>
21+
<h2>License</h2>
22+
<p>TODO: Enter your license/legal information here.</p>

build/generated/Application.mk

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Main NDK build script for com.mykingdom.media
2+
3+
APP_BUILD_SCRIPT := jni/Android.mk
4+
TARGET_PLATFORM := android-10
5+
APP_STL := stlport_shared
6+
APP_ABI := armeabi armeabi-v7a x86

build/generated/BootstrapJS.cpp

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#ifndef KROLL_NATIVES_H
2+
#define KROLL_NATIVES_H
3+
4+
#include <stdint.h>
5+
6+
namespace titanium {
7+
8+
const char bootstrap_native[] = { 47, 42, 42, 10, 32, 42, 32, 65, 112, 112, 99, 101, 108, 101, 114, 97, 116, 111, 114, 32, 84, 105, 116, 97, 110, 105, 117, 109, 32, 77, 111, 98, 105, 108, 101, 10, 32, 42, 32, 67, 111, 112, 121, 114, 105, 103, 104, 116, 32, 40, 99, 41, 32, 50, 48, 49, 49, 32, 98, 121, 32, 65, 112, 112, 99, 101, 108, 101, 114, 97, 116, 111, 114, 44, 32, 73, 110, 99, 46, 32, 65, 108, 108, 32, 82, 105, 103, 104, 116, 115, 32, 82, 101, 115, 101, 114, 118, 101, 100, 46, 10, 32, 42, 32, 76, 105, 99, 101, 110, 115, 101, 100, 32, 117, 110, 100, 101, 114, 32, 116, 104, 101, 32, 116, 101, 114, 109, 115, 32, 111, 102, 32, 116, 104, 101, 32, 65, 112, 97, 99, 104, 101, 32, 80, 117, 98, 108, 105, 99, 32, 76, 105, 99, 101, 110, 115, 101, 10, 32, 42, 32, 80, 108, 101, 97, 115, 101, 32, 115, 101, 101, 32, 116, 104, 101, 32, 76, 73, 67, 69, 78, 83, 69, 32, 105, 110, 99, 108, 117, 100, 101, 100, 32, 119, 105, 116, 104, 32, 116, 104, 105, 115, 32, 100, 105, 115, 116, 114, 105, 98, 117, 116, 105, 111, 110, 32, 102, 111, 114, 32, 100, 101, 116, 97, 105, 108, 115, 46, 10, 32, 42, 10, 32, 42, 32, 87, 97, 114, 110, 105, 110, 103, 58, 32, 84, 104, 105, 115, 32, 102, 105, 108, 101, 32, 105, 115, 32, 71, 69, 78, 69, 82, 65, 84, 69, 68, 44, 32, 97, 110, 100, 32, 115, 104, 111, 117, 108, 100, 32, 110, 111, 116, 32, 98, 101, 32, 109, 111, 100, 105, 102, 105, 101, 100, 10, 32, 42, 47, 10, 118, 97, 114, 32, 98, 111, 111, 116, 115, 116, 114, 97, 112, 32, 61, 32, 107, 114, 111, 108, 108, 46, 78, 97, 116, 105, 118, 101, 77, 111, 100, 117, 108, 101, 46, 114, 101, 113, 117, 105, 114, 101, 40, 34, 98, 111, 111, 116, 115, 116, 114, 97, 112, 34, 41, 44, 10, 9, 105, 110, 118, 111, 107, 101, 114, 32, 61, 32, 107, 114, 111, 108, 108, 46, 78, 97, 116, 105, 118, 101, 77, 111, 100, 117, 108, 101, 46, 114, 101, 113, 117, 105, 114, 101, 40, 34, 105, 110, 118, 111, 107, 101, 114, 34, 41, 44, 10, 9, 84, 105, 116, 97, 110, 105, 117, 109, 32, 61, 32, 107, 114, 111, 108, 108, 46, 98, 105, 110, 100, 105, 110, 103, 40, 34, 84, 105, 116, 97, 110, 105, 117, 109, 34, 41, 46, 84, 105, 116, 97, 110, 105, 117, 109, 59, 10, 10, 102, 117, 110, 99, 116, 105, 111, 110, 32, 109, 111, 100, 117, 108, 101, 66, 111, 111, 116, 115, 116, 114, 97, 112, 40, 109, 111, 100, 117, 108, 101, 66, 105, 110, 100, 105, 110, 103, 41, 32, 123, 10, 9, 102, 117, 110, 99, 116, 105, 111, 110, 32, 108, 97, 122, 121, 71, 101, 116, 40, 111, 98, 106, 101, 99, 116, 44, 32, 98, 105, 110, 100, 105, 110, 103, 44, 32, 110, 97, 109, 101, 44, 32, 110, 97, 109, 101, 115, 112, 97, 99, 101, 41, 32, 123, 10, 9, 9, 114, 101, 116, 117, 114, 110, 32, 98, 111, 111, 116, 115, 116, 114, 97, 112, 46, 108, 97, 122, 121, 71, 101, 116, 40, 111, 98, 106, 101, 99, 116, 44, 32, 98, 105, 110, 100, 105, 110, 103, 44, 10, 9, 9, 9, 110, 97, 109, 101, 44, 32, 110, 97, 109, 101, 115, 112, 97, 99, 101, 44, 32, 109, 111, 100, 117, 108, 101, 66, 105, 110, 100, 105, 110, 103, 46, 103, 101, 116, 66, 105, 110, 100, 105, 110, 103, 41, 59, 10, 9, 125, 10, 10, 9, 118, 97, 114, 32, 109, 111, 100, 117, 108, 101, 32, 61, 32, 109, 111, 100, 117, 108, 101, 66, 105, 110, 100, 105, 110, 103, 46, 103, 101, 116, 66, 105, 110, 100, 105, 110, 103, 40, 34, 99, 111, 109, 46, 109, 121, 107, 105, 110, 103, 100, 111, 109, 46, 109, 101, 100, 105, 97, 46, 77, 101, 100, 105, 97, 77, 111, 100, 117, 108, 101, 34, 41, 91, 34, 77, 101, 100, 105, 97, 34, 93, 59, 10, 9, 118, 97, 114, 32, 105, 110, 118, 111, 99, 97, 116, 105, 111, 110, 65, 80, 73, 115, 32, 61, 32, 109, 111, 100, 117, 108, 101, 46, 105, 110, 118, 111, 99, 97, 116, 105, 111, 110, 65, 80, 73, 115, 32, 61, 32, 91, 93, 59, 10, 9, 109, 111, 100, 117, 108, 101, 46, 97, 112, 105, 78, 97, 109, 101, 32, 61, 32, 34, 77, 101, 100, 105, 97, 34, 59, 10, 10, 9, 102, 117, 110, 99, 116, 105, 111, 110, 32, 97, 100, 100, 73, 110, 118, 111, 99, 97, 116, 105, 111, 110, 65, 80, 73, 40, 109, 111, 100, 117, 108, 101, 44, 32, 109, 111, 100, 117, 108, 101, 78, 97, 109, 101, 115, 112, 97, 99, 101, 44, 32, 110, 97, 109, 101, 115, 112, 97, 99, 101, 44, 32, 97, 112, 105, 41, 32, 123, 10, 9, 9, 105, 110, 118, 111, 99, 97, 116, 105, 111, 110, 65, 80, 73, 115, 46, 112, 117, 115, 104, 40, 123, 32, 110, 97, 109, 101, 115, 112, 97, 99, 101, 58, 32, 110, 97, 109, 101, 115, 112, 97, 99, 101, 44, 32, 97, 112, 105, 58, 32, 97, 112, 105, 32, 125, 41, 59, 10, 9, 125, 10, 10, 9, 9, 97, 100, 100, 73, 110, 118, 111, 99, 97, 116, 105, 111, 110, 65, 80, 73, 40, 109, 111, 100, 117, 108, 101, 44, 32, 34, 77, 101, 100, 105, 97, 34, 44, 32, 34, 77, 101, 100, 105, 97, 34, 44, 32, 34, 99, 114, 101, 97, 116, 101, 69, 120, 97, 109, 112, 108, 101, 34, 41, 59, 10, 10, 9, 9, 9, 105, 102, 32, 40, 33, 40, 34, 95, 95, 112, 114, 111, 112, 101, 114, 116, 105, 101, 115, 68, 101, 102, 105, 110, 101, 100, 95, 95, 34, 32, 105, 110, 32, 109, 111, 100, 117, 108, 101, 41, 41, 32, 123, 9, 9, 10, 9, 9, 79, 98, 106, 101, 99, 116, 46, 100, 101, 102, 105, 110, 101, 80, 114, 111, 112, 101, 114, 116, 105, 101, 115, 40, 109, 111, 100, 117, 108, 101, 44, 32, 123, 10, 9, 9, 9, 34, 69, 120, 97, 109, 112, 108, 101, 34, 58, 32, 123, 10, 9, 9, 9, 9, 103, 101, 116, 58, 32, 102, 117, 110, 99, 116, 105, 111, 110, 40, 41, 32, 123, 10, 9, 9, 9, 9, 9, 118, 97, 114, 32, 69, 120, 97, 109, 112, 108, 101, 32, 61, 32, 108, 97, 122, 121, 71, 101, 116, 40, 116, 104, 105, 115, 44, 32, 34, 99, 111, 109, 46, 109, 121, 107, 105, 110, 103, 100, 111, 109, 46, 109, 101, 100, 105, 97, 46, 69, 120, 97, 109, 112, 108, 101, 80, 114, 111, 120, 121, 34, 44, 32, 34, 69, 120, 97, 109, 112, 108, 101, 34, 44, 32, 34, 69, 120, 97, 109, 112, 108, 101, 34, 41, 59, 10, 9, 9, 9, 9, 9, 114, 101, 116, 117, 114, 110, 32, 69, 120, 97, 109, 112, 108, 101, 59, 10, 9, 9, 9, 9, 125, 44, 10, 9, 9, 9, 9, 99, 111, 110, 102, 105, 103, 117, 114, 97, 98, 108, 101, 58, 32, 116, 114, 117, 101, 10, 9, 9, 9, 125, 44, 10, 9, 9, 10, 9, 9, 125, 41, 59, 10, 9, 9, 109, 111, 100, 117, 108, 101, 46, 99, 111, 110, 115, 116, 114, 117, 99, 116, 111, 114, 46, 112, 114, 111, 116, 111, 116, 121, 112, 101, 46, 99, 114, 101, 97, 116, 101, 69, 120, 97, 109, 112, 108, 101, 32, 61, 32, 102, 117, 110, 99, 116, 105, 111, 110, 40, 41, 32, 123, 10, 9, 9, 9, 114, 101, 116, 117, 114, 110, 32, 110, 101, 119, 32, 109, 111, 100, 117, 108, 101, 46, 69, 120, 97, 109, 112, 108, 101, 40, 97, 114, 103, 117, 109, 101, 110, 116, 115, 41, 59, 10, 9, 9, 125, 10, 9, 9, 125, 10, 9, 9, 109, 111, 100, 117, 108, 101, 46, 95, 95, 112, 114, 111, 112, 101, 114, 116, 105, 101, 115, 68, 101, 102, 105, 110, 101, 100, 95, 95, 32, 61, 32, 116, 114, 117, 101, 59, 10, 9, 9, 114, 101, 116, 117, 114, 110, 32, 109, 111, 100, 117, 108, 101, 59, 10, 10, 125, 10, 101, 120, 112, 111, 114, 116, 115, 46, 98, 111, 111, 116, 115, 116, 114, 97, 112, 32, 61, 32, 109, 111, 100, 117, 108, 101, 66, 111, 111, 116, 115, 116, 114, 97, 112, 59, 10, 0 };
9+
10+
struct _native {
11+
const char* name;
12+
const char* source;
13+
size_t source_length;
14+
};
15+
16+
static const struct _native natives[] = {
17+
18+
{ "bootstrap", bootstrap_native, sizeof(bootstrap_native) - 1 },
19+
20+
{ NULL, NULL, 0 } /* sentinel */
21+
22+
};
23+
24+
}
25+
#endif
+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
/* C++ code produced by gperf version 3.0.3 */
2+
/* Command-line: gperf -L C++ -E -t /private/var/folders/dz/11lc735d1vbc55kgztnn28r40000gn/T/Aditi/media-generated/KrollGeneratedBindings.gperf */
3+
/* Computed positions: -k'' */
4+
5+
#line 3 "/private/var/folders/dz/11lc735d1vbc55kgztnn28r40000gn/T/Aditi/media-generated/KrollGeneratedBindings.gperf"
6+
7+
8+
#include <string.h>
9+
#include <v8.h>
10+
#include <KrollBindings.h>
11+
12+
#include "com.mykingdom.media.ExampleProxy.h"
13+
#include "com.mykingdom.media.MediaModule.h"
14+
15+
16+
#line 14 "/private/var/folders/dz/11lc735d1vbc55kgztnn28r40000gn/T/Aditi/media-generated/KrollGeneratedBindings.gperf"
17+
struct titanium::bindings::BindEntry;
18+
/* maximum key range = 2, duplicates = 0 */
19+
20+
class MediaBindings
21+
{
22+
private:
23+
static inline unsigned int hash (const char *str, unsigned int len);
24+
public:
25+
static struct titanium::bindings::BindEntry *lookupGeneratedInit (const char *str, unsigned int len);
26+
};
27+
28+
inline /*ARGSUSED*/
29+
unsigned int
30+
MediaBindings::hash (register const char *str, register unsigned int len)
31+
{
32+
return len;
33+
}
34+
35+
struct titanium::bindings::BindEntry *
36+
MediaBindings::lookupGeneratedInit (register const char *str, register unsigned int len)
37+
{
38+
enum
39+
{
40+
TOTAL_KEYWORDS = 2,
41+
MIN_WORD_LENGTH = 31,
42+
MAX_WORD_LENGTH = 32,
43+
MIN_HASH_VALUE = 31,
44+
MAX_HASH_VALUE = 32
45+
};
46+
47+
static struct titanium::bindings::BindEntry wordlist[] =
48+
{
49+
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
50+
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
51+
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
52+
{""}, {""}, {""}, {""},
53+
#line 17 "/private/var/folders/dz/11lc735d1vbc55kgztnn28r40000gn/T/Aditi/media-generated/KrollGeneratedBindings.gperf"
54+
{"com.mykingdom.media.MediaModule", ::com::mykingdom::media::MediaModule::bindProxy, ::com::mykingdom::media::MediaModule::dispose},
55+
#line 16 "/private/var/folders/dz/11lc735d1vbc55kgztnn28r40000gn/T/Aditi/media-generated/KrollGeneratedBindings.gperf"
56+
{"com.mykingdom.media.ExampleProxy", ::com::mykingdom::media::media::ExampleProxy::bindProxy, ::com::mykingdom::media::media::ExampleProxy::dispose}
57+
};
58+
59+
if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
60+
{
61+
register int key = hash (str, len);
62+
63+
if (key <= MAX_HASH_VALUE && key >= 0)
64+
{
65+
register const char *s = wordlist[key].name;
66+
67+
if (*str == *s && !strcmp (str + 1, s + 1))
68+
return &wordlist[key];
69+
}
70+
}
71+
return 0;
72+
}
73+
#line 18 "/private/var/folders/dz/11lc735d1vbc55kgztnn28r40000gn/T/Aditi/media-generated/KrollGeneratedBindings.gperf"
74+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
%define lookup-function-name lookupGeneratedInit
2+
%define class-name MediaBindings
3+
%{
4+
5+
#include <string.h>
6+
#include <v8.h>
7+
#include <KrollBindings.h>
8+
9+
#include "com.mykingdom.media.ExampleProxy.h"
10+
#include "com.mykingdom.media.MediaModule.h"
11+
12+
13+
%}
14+
struct titanium::bindings::BindEntry;
15+
%%
16+
com.mykingdom.media.ExampleProxy, ::com::mykingdom::media::media::ExampleProxy::bindProxy, ::com::mykingdom::media::media::ExampleProxy::dispose
17+
com.mykingdom.media.MediaModule, ::com::mykingdom::media::MediaModule::bindProxy, ::com::mykingdom::media::MediaModule::dispose
18+
%%

0 commit comments

Comments
 (0)