Process.as
in directory
as/device/src/tv/adobe/extension/process/example/
|
ActionScript side of the real (not the stub)
extension that defines the Process class. It does the following:
-
Creates an ExtensionContext instance.
-
Defines the extension’s ActionScript APIs.
-
Listens for events on the ExtensionContext instance, and redispatches
the events to the Process instance’s listeners.
|
ProcessEvent.as
in directory
as/device/src/tv/adobe/extension/process/example/
|
Defines the ProcessEvent class, which derives
from the Event class.
The AIR application ActionScript listens
for these ProcessEvent notifications.
|
Process.as
in directory
as/distributable/src/tv/adobe/extension/process/example/
|
ActionScript of the stub extension that
defines the Process class. This ActionScript-only stub defines the
extension’s ActionScript APIs. However, the stub implementations
do not call native functions.
|
ProcessExtensionClient.as
in directory
client/simple/src
|
AIR application that uses the extension.
The AIR application is the client of the extension. It provides
an example of how an AIR application uses the Process extension
APIs.
|
ProcessExtensionClient-app.xml
in
directory
client/simple/src
|
AIR application descriptor file. Includes
the
<extensions>
element with the
extensionID
value
tv.adobe.extension.process.Process
.
|
Process.h
in directory
native/
|
The C++ header file of the abstract Process
class.
|
ProcessLinux.h
in directory
native/
|
The C++ header file of the concrete ProcessLinux
class.
The ProcessLinux class derives from the Process class.
It declares private methods and data for a Linux implementation of
the Process class.
|
ProcessLinux.cpp
in directory
native/
|
The C++ implementation file of the ProcessLinux
class. The implementation includes the following functionality:
-
Defines the FREFunction functions. These functions use Linux
system calls to, for example, fork and exec a Linux process and
to interact with
stdin
,
stdout
,
and
stderr
-
Monitors the status of the spawned process. The implementation
creates a thread for this purpose. The thread uses the C extension
API
FREDispatchStatusEventAsync()
to report events.
-
Defines helper functions for creating FREObject variables
for returning information from the FREFunction functions to the ActionScript
side. These helper functions use C API extension functions such
as
FRENewObjectFromBool()
,
FRENewObjectFromUTF8()
,
and
FRENewObjectFromUint32()
.
|
ProcessExtension.cpp
in directory
native/
|
Contains implementations of the following
C API extension functions:
-
FREInitializer()
-
FREContextInitializer()
-
FREContextFinalizer()
-
FREFinalizer()
|
PlatformEDKExtension_Process.mk
|
The makefile for the Process extension.
|
ExtensionUtil.h
in directory
<AIR for TV installation directory>
/products/stagecraft/source/ae/edk
|
Contains macros convenient to coding your
C or C++ implementation.
|
ExtensionBridge.cpp
in directory
<AIR for TV installation directory>
/products/stagecraft/source/ae/edk
|
The AIR for TV extension module implementation.
When you build your native implementation, include this source file
in your build.
|
phonyEdkAneCert
in directory
<AIR for TV installation directory>
/products/stagecraft/source/ae/edk
|
A phony certificate that the make utility
uses for packaging the Process extension into an ANE file.
|
extension.mk
in directory
<AIR for TV installation directory>
/products/stagecraft/source/ae/edk
|
The makefile for the extension module. Do
not modify this file.
|