📄 connection_local.h
字号:
/*************************************************************************** connection_local.h - Helps connection.c ------------------- begin : 2002 authors : Linus Gasser emails : linus.gasser@epfl.ch ***************************************************************************//*************************************************************************** Changes ------- date - name - description 2002-12-19 - ineiti - init **************************************************************************//*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/#ifndef CONNECTION_LOCAL_H__#define CONNECTION_LOCAL_H__/** * This got split for aesthetical purposes from connection.c */#include "sdb.h"#include "connection.h"#define MAX_CONNECTIONS 1024// One connectiontypedef struct { swr_sdb_id sender; swr_conn_req_t rsend; swr_sdb_id receiver; swr_conn_req_t rrcv; swr_sdb_t *sdb_send, *sdb_rcv; int ID;} connection_t;// The array for all connectionsextern connection_t *conn_table;// The next ID to giveextern int conn_next_id;// Wrapper for the conn_tables#define ENTRY(i) conn_table[ (i) % MAX_CONNECTIONS ]/** * Lots of initialisation for the connection-add part. All this has been * put here so as to make swr_connection_add() a bit more nice. */int conn_get_ids( connection_t *tmp, swr_sdb_id sender, swr_sdb_id receiver, int output, int input );/** * Sends the actual connect-msgs to the subsytem and waits for the * response. */int conn_send( connection_t *tmp );#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -