root/daemon/room.h
@
2fd730ea55ee6a1df6b457076c67e4a8edae0580
| Revision 2fd730ea55ee6a1df6b457076c67e4a8edae0580, 2.1 KB (checked in by Nedko Arnaudov <nedko@…>, 6 months ago) | |
|---|---|
|
|
| Line | |
|---|---|
| 1 | /* -*- Mode: C ; c-basic-offset: 2 -*- */ |
| 2 | /* |
| 3 | * LADI Session Handler (ladish) |
| 4 | * |
| 5 | * Copyright (C) 2010 Nedko Arnaudov <nedko@arnaudov.name> |
| 6 | * |
| 7 | ************************************************************************** |
| 8 | * This file contains interface of the room object |
| 9 | ************************************************************************** |
| 10 | * |
| 11 | * LADI Session Handler is free software; you can redistribute it and/or modify |
| 12 | * it under the terms of the GNU General Public License as published by |
| 13 | * the Free Software Foundation; either version 2 of the License, or |
| 14 | * (at your option) any later version. |
| 15 | * |
| 16 | * LADI Session Handler is distributed in the hope that it will be useful, |
| 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 19 | * GNU General Public License for more details. |
| 20 | * |
| 21 | * You should have received a copy of the GNU General Public License |
| 22 | * along with LADI Session Handler. If not, see <http://www.gnu.org/licenses/> |
| 23 | * or write to the Free Software Foundation, Inc., |
| 24 | * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
| 25 | */ |
| 26 | |
| 27 | #ifndef ROOM_H__9A1CF253_0A17_402A_BDF8_9BD72B467118__INCLUDED |
| 28 | #define ROOM_H__9A1CF253_0A17_402A_BDF8_9BD72B467118__INCLUDED |
| 29 | |
| 30 | #include "common.h" |
| 31 | |
| 32 | typedef struct ladish_room_tag { int unused; } * ladish_room_handle; |
| 33 | |
| 34 | bool |
| 35 | ladish_room_create( |
| 36 | const uuid_t uuid_ptr, |
| 37 | const char * name, |
| 38 | ladish_room_handle template, |
| 39 | const char * object_path, |
| 40 | ladish_room_handle * room_handle_ptr); |
| 41 | |
| 42 | void |
| 43 | ladish_room_destroy( |
| 44 | ladish_room_handle room_handle); |
| 45 | |
| 46 | struct list_head * ladish_room_get_list_node(ladish_room_handle room_handle); |
| 47 | ladish_room_handle ladish_room_from_list_node(struct list_head * node_ptr); |
| 48 | |
| 49 | const char * ladish_room_get_name(ladish_room_handle room_handle); |
| 50 | const char * ladish_room_get_opath(ladish_room_handle room_handle); |
| 51 | bool ladish_room_get_template_uuid(ladish_room_handle room_handle, uuid_t uuid_ptr); |
| 52 | void ladish_room_get_uuid(ladish_room_handle room_handle, uuid_t uuid_ptr); |
| 53 | |
| 54 | #endif /* #ifndef ROOM_H__9A1CF253_0A17_402A_BDF8_9BD72B467118__INCLUDED */ |
Note: See TracBrowser
for help on using the browser.
