diff options
author | Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com> | 2014-04-01 10:55:00 +0300 |
---|---|---|
committer | Patrik Flykt <patrik.flykt@linux.intel.com> | 2014-04-02 15:57:25 +0300 |
commit | a27d206a8ec21f7ea1e3c263a49d24c80334ad18 (patch) | |
tree | 2b429e3d6cf8dbef13c98dbc7a9c84900e5574c1 /include/peer.h | |
parent | 74d31df83fe2516e915d63af10d054383d340ba7 (diff) | |
download | connman-a27d206a8ec21f7ea1e3c263a49d24c80334ad18.tar.gz |
peer: Add basic core logic for P2P peer objects
Create basic peer structure and attributes.
Diffstat (limited to 'include/peer.h')
-rw-r--r-- | include/peer.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/include/peer.h b/include/peer.h new file mode 100644 index 00000000..807c9456 --- /dev/null +++ b/include/peer.h @@ -0,0 +1,45 @@ +/* + * + * Connection Manager + * + * Copyright (C) 2014 Intel Corporation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +#ifndef __CONNMAN_PEER_H +#define __CONNMAN_PEER_H + +#ifdef __cplusplus +extern "C" { +#endif + +struct connman_peer; + +struct connman_peer *connman_peer_create(const char *identifier); +void connman_peer_destroy(struct connman_peer *peer); + +void connman_peer_set_name(struct connman_peer *peer, const char *name); + +int connman_peer_register(struct connman_peer *peer); +void connman_peer_unregister(struct connman_peer *peer); + +struct connman_peer *connman_peer_get(const char *identifier); + +#ifdef __cplusplus +} +#endif + +#endif /* __CONNMAN_PEER_H */ |