NewMadeleine

Documentation

nm_session_interface.h
Go to the documentation of this file.
1/*
2 * NewMadeleine
3 * Copyright (C) 2006-2024 (see AUTHORS file)
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or (at
8 * your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
14 */
15
16#ifndef NM_SESSION_INTERFACE_H
17#define NM_SESSION_INTERFACE_H
18
19#include <nm_public.h>
20#include <nm_core_interface.h>
21#include <Padico/Puk.h>
22
29
30
33int nm_session_open(nm_session_t*pp_session, const char*label);
34
38
42
46
47
50#endif /* NM_SESSION_INTERFACE_H */
uint32_t nm_session_hash_t
a session hashcode in tags, used to multiplex sessions
struct nm_session_s * nm_session_t
int nm_session_open(nm_session_t *pp_session, const char *label)
Open a new session, assuming processes are already connected.
int nm_session_close(nm_session_t p_session)
Disconnect and destroy a session.
const char * nm_session_get_name(nm_session_t p_session)
Get the name of the given session.
nm_session_t nm_session_lookup(nm_session_hash_t hashcode)
Lookup a session by hashcode.
nm_session_hash_t hashcode
the session hashcode
static nm_session_t p_session
This is the common public header for NewMad.
const char * label
plain text session name