00001 /* ***** BEGIN LICENSE BLOCK ***** 00002 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 00003 * 00004 * The contents of this file are subject to the Mozilla Public License Version 00005 * 1.1 (the "License"); you may not use this file except in compliance with 00006 * the License. You may obtain a copy of the License at 00007 * http://www.mozilla.org/MPL/ 00008 * 00009 * Software distributed under the License is distributed on an "AS IS" basis, 00010 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 00011 * for the specific language governing rights and limitations under the 00012 * License. 00013 * 00014 * The Original Code is the Mozilla SIP client project. 00015 * 00016 * The Initial Developer of the Original Code is 8x8 Inc. 00017 * Portions created by the Initial Developer are Copyright (C) 2005 00018 * the Initial Developer. All Rights Reserved. 00019 * 00020 * Contributor(s): 00021 * Alex Fritze <alex@croczilla.com> (original author) 00022 * 00023 * Alternatively, the contents of this file may be used under the terms of 00024 * either the GNU General Public License Version 2 or later (the "GPL"), or 00025 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), 00026 * in which case the provisions of the GPL or the LGPL are applicable instead 00027 * of those above. If you wish to allow use of your version of this file only 00028 * under the terms of either the GPL or the LGPL, and not to allow others to 00029 * use your version of this file under the terms of the MPL, indicate your 00030 * decision by deleting the provisions above and replace them with the notice 00031 * and other provisions required by the GPL or the LGPL. If you do not delete 00032 * the provisions above, a recipient may use your version of this file under 00033 * the terms of any one of the MPL, the GPL or the LGPL. 00034 * 00035 * ***** END LICENSE BLOCK ***** */ 00036 00037 #include "nsISupports.idl" 00038 interface nsIPropertyBag2; 00039 interface zapIMediaNode; 00040 00041 [ptr] native zapIMediaNodeRawPtr(zapIMediaNode); 00042 00051 [scriptable, uuid(f79833a3-7344-4925-b7e4-db02591274b7)] 00052 interface zapIMediaGraph : nsISupports 00053 { 00063 ACString addNode(in ACString type, in nsIPropertyBag2 node_pars); 00064 00075 [noscript] ACString addExternalNode(in zapIMediaNodeRawPtr node, 00076 in nsIPropertyBag2 node_pars); 00077 00084 void removeNode(in ACString id_or_alias); 00085 00089 void getNode(in ACString id_or_alias, in nsIIDRef uuid, 00090 in boolean synchronous, 00091 [iid_is(uuid),retval] out nsQIResult result); 00092 00097 void setAlias(in ACString alias, in ACString id_or_alias); 00098 00105 ACString connect(in ACString source_node, in nsIPropertyBag2 source_pars, 00106 in ACString sink_node, in nsIPropertyBag2 sink_pars); 00107 00114 void disconnect(in ACString connection_id); 00115 00122 void shutdown(); 00123 }; 00124 00125 %{ C++ 00126 // {CF53EEE9-5A2E-4533-92C4-0E37E50B2E01} 00127 #define ZAP_MEDIAGRAPH_CID \ 00128 { 0xcf53eee9, 0x5a2e, 0x4533, { 0x92, 0xc4, 0x0e, 0x37, 0xe5, 0x0b, 0x2e, 0x01 } } 00129 00130 #define ZAP_MEDIAGRAPH_CONTRACTID "@mozilla.org/zap/mediagraph;1" 00131 %} 00132
1.4.4