00001 /* libIntegra multimedia module definition interface 00002 * 00003 * Copyright (C) 2007 Jamie Bullock, Henrik Frisk 00004 * 00005 * This program is free software; you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License as published by 00007 * the Free Software Foundation; either version 2 of the License, or 00008 * (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 00018 * USA. 00019 */ 00020 00021 #ifndef INTEGRA_CONNECTION_H 00022 #define INTEGRA_CONNECTION_H 00023 00024 #ifdef __cplusplus 00025 extern "C" { 00026 #endif 00027 00028 #ifdef HAVE_CONFIG_H 00029 #include "config.h" 00030 #endif 00031 00032 #include <Integra/integra_port.h> 00033 #include <Integra/integra_id.h> 00034 #include <Integra/integra_error.h> 00035 #include "memory.h" 00036 00037 typedef struct ntg_connection_ { 00038 00039 int id; /* corresponds to connection instance id */ 00040 ntg_port *source; 00041 ntg_port *target; 00042 struct ntg_connection_ *next; 00043 struct ntg_connection_ *prev; 00044 00045 } ntg_connection; 00046 00047 ntg_connection *ntg_connection_new(ntg_id id); 00048 00049 ntg_error_code ntg_connection_unlink(ntg_connection *connection); 00050 00051 ntg_error_code ntg_connection_free(ntg_connection *connection); 00052 00053 #ifdef __cplusplus 00054 } 00055 #endif 00056 00057 #endif