Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
libnice
Commits
9e62e01f
Commit
9e62e01f
authored
Jan 14, 2009
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add nice_interfaces API
parent
b4a2ec9c
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
598 additions
and
1 deletion
+598
-1
agent/Makefile.am
agent/Makefile.am
+2
-0
agent/interfaces.c
agent/interfaces.c
+518
-0
agent/interfaces.h
agent/interfaces.h
+75
-0
nice/libnice.sym
nice/libnice.sym
+3
-0
nice/libnice.ver
nice/libnice.ver
+0
-1
No files found.
agent/Makefile.am
View file @
9e62e01f
...
...
@@ -53,6 +53,8 @@ libagent_la_SOURCES = \
conncheck.h
\
discovery.c
\
discovery.h
\
interfaces.c
\
interfaces.h
\
$(BUILT_SOURCES)
libagent_la_LIBADD
=
\
...
...
agent/interfaces.c
0 → 100644
View file @
9e62e01f
This diff is collapsed.
Click to expand it.
agent/interfaces.h
0 → 100644
View file @
9e62e01f
/*
* interfaces.h - Source for interface discovery code
*
* Farsight Helper functions
* Copyright (C) 2006 Youness Alaoui <kakaroto@kakaroto.homelinux.net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __INTERFACES_H__
#define __INTERFACES_H__
/**
* SECTION:interfaces
* @short_description: Utility functions to discover local network interfaces
* @include: interfaces.h
* @stability: Stable
*
* These utility functions allow the discovery of local network interfaces
* in a portable manner, they also allow finding the local ip addresses or
* the address allocated to a network interface.
*/
#include <glib.h>
G_BEGIN_DECLS
/**
* fs_interfaces_get_ip_for_interface:
* @interface_name: name of local interface
*
* Retreives the IPv4 address of an interface by its name
*
* Returns: a newly-allocated string with the IP address
*/
gchar
*
nice_interfaces_get_ip_for_interface
(
gchar
*
interface_name
);
/**
* fs_interfaces_get_local_ips:
* @include_loopback: Include any loopback devices
*
* Get a list of local ipv4 interface addresses
*
* Returns: a newly-allocated #GList of strings. The caller must free it.
*/
GList
*
nice_interfaces_get_local_ips
(
gboolean
include_loopback
);
/**
* fs_interfaces_get_local_interfaces:
*
* Get the list of local interfaces
*
* Returns: a newly-allocated #GList of strings. The caller must free it.
*/
GList
*
nice_interfaces_get_local_interfaces
(
void
);
G_END_DECLS
#endif
nice/libnice.sym
View file @
9e62e01f
...
...
@@ -34,3 +34,6 @@ nice_candidate_free
nice_candidate_new
nice_debug_disable
nice_debug_enable
nice_interfaces_get_ip_for_interface
nice_interfaces_get_local_interfaces
nice_interfaces_get_local_ips
nice/libnice.ver
View file @
9e62e01f
...
...
@@ -2,7 +2,6 @@
libnice {
global:
nice_*;
udp_*;
};
HIDDEN {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment