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
6fc76a70
Commit
6fc76a70
authored
Feb 10, 2007
by
Dafydd Harries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nice_address_set_ipv6 ()
darcs-hash:20070210180122-c9803-a47bf1a09c269ebe3927144db35c8ae8f4347f8d.gz
parent
4232ece0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
address/address.c
address/address.c
+10
-0
address/address.h
address/address.h
+3
-0
nice/libnice.symbols
nice/libnice.symbols
+1
-0
No files found.
address/address.c
View file @
6fc76a70
#include <string.h>
#include <arpa/inet.h>
#include <glib.h>
...
...
@@ -21,6 +23,14 @@ nice_address_set_ipv4 (NiceAddress *addr, guint32 addr_ipv4)
}
void
nice_address_set_ipv6
(
NiceAddress
*
addr
,
const
gchar
*
addr_ipv6
)
{
addr
->
type
=
NICE_ADDRESS_TYPE_IPV6
;
memcpy
(
addr
->
addr_ipv6
,
addr_ipv6
,
sizeof
(
addr
->
addr_ipv6
));
}
/**
* address_set_ipv4_from_string ()
*
...
...
address/address.h
View file @
6fc76a70
...
...
@@ -40,6 +40,9 @@ nice_address_dup (NiceAddress *a);
void
nice_address_set_ipv4
(
NiceAddress
*
addr
,
guint32
addr_ipv4
);
void
nice_address_set_ipv6
(
NiceAddress
*
addr
,
const
gchar
*
addr_ipv6
);
G_GNUC_WARN_UNUSED_RESULT
gboolean
nice_address_set_ipv4_from_string
(
NiceAddress
*
addr
,
const
gchar
*
str
);
...
...
nice/libnice.symbols
View file @
6fc76a70
...
...
@@ -5,6 +5,7 @@ T nice_address_is_private
T nice_address_new
T nice_address_set_ipv4
T nice_address_set_ipv4_from_string
T nice_address_set_ipv6
T nice_address_to_string
T nice_agent_add_local_address
...
...
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