Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
videolan
vlc-gpu
Commits
a558333f
Commit
a558333f
authored
Feb 15, 2006
by
Jérome Decoodt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure.ac: try to fix beos build
growl.c: add --growl-ttl option
parent
9aaa91d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
configure.ac
configure.ac
+2
-2
modules/misc/growl.c
modules/misc/growl.c
+10
-5
No files found.
configure.ac
View file @
a558333f
...
...
@@ -240,9 +240,9 @@ case "${target_os}" in
dnl Check for BONE
if test -f /boot/beos/system/lib/libbind.so; then
VLC_ADD_LDFLAGS([access_file access_ftp access_mms access_output_udp telnet netsync sap ipv4 vlc],[-lbind -lsocket])
VLC_ADD_LDFLAGS([access_file access_ftp access_mms access_output_udp telnet netsync sap ipv4 vlc
growl
],[-lbind -lsocket])
else
VLC_ADD_LDFLAGS([access_file access_ftp access_mms access_output_udp telnet netsync sap ipv4 vlc],[-lnet])
VLC_ADD_LDFLAGS([access_file access_ftp access_mms access_output_udp telnet netsync sap ipv4 vlc
growl
],[-lnet])
fi
dnl Ugly check for Zeta
...
...
modules/misc/growl.c
View file @
a558333f
...
...
@@ -56,14 +56,16 @@ static int CheckAndSend( vlc_object_t *p_this, uint8_t* p_data, int i_offset );
* have MSN 7 or newer) to "advertise" what you are playing in VLC.
* You need to enable the "What I'm Listening To" option in MSN.
*****************************************************************************/
#define PORT_TEXT N_("Growl UDP port")
#define PORT_LONGTEXT N_("Growl UPD port on the server.")
#define SERVER_DEFAULT "127.0.0.1"
#define SERVER_TEXT N_("Growl server")
#define SERVER_LONGTEXT N_("Growl server receiving notifications.")
#define PASS_DEFAULT ""
#define PASS_TEXT N_("Growl password")
#define PASS_LONGTEXT N_("Growl password on the server.")
#define PORT_TEXT N_("Growl UDP port")
#define PORT_LONGTEXT N_("Growl UPD port on the server.")
#define TTL_TEXT N_("Growl TTL")
#define TTL_LONGTEXT N_("Growl TTL.")
vlc_module_begin
();
set_category
(
CAT_INTERFACE
);
...
...
@@ -71,12 +73,14 @@ vlc_module_begin();
set_shortname
(
N_
(
"growl"
)
);
set_description
(
_
(
"Growl Notification Plugin"
)
);
add_integer
(
"growl-port"
,
9887
,
NULL
,
PORT_TEXT
,
PORT_LONGTEXT
,
VLC_TRUE
);
add_string
(
"growl-server"
,
SERVER_DEFAULT
,
NULL
,
SERVER_TEXT
,
SERVER_LONGTEXT
,
VLC_FALSE
);
add_string
(
"growl-password"
,
PASS_DEFAULT
,
NULL
,
PASS_TEXT
,
PASS_LONGTEXT
,
VLC_FALSE
);
add_integer
(
"growl-port"
,
9887
,
NULL
,
PORT_TEXT
,
PORT_LONGTEXT
,
VLC_TRUE
);
add_integer
(
"growl-ttl"
,
12
,
NULL
,
TTL_TEXT
,
TTL_LONGTEXT
,
VLC_TRUE
);
set_capability
(
"interface"
,
0
);
set_callbacks
(
Open
,
Close
);
...
...
@@ -260,6 +264,7 @@ static int CheckAndSend( vlc_object_t *p_this, uint8_t* p_data, int i_offset )
char
*
psz_password
=
config_GetPsz
(
p_intf
,
"growl-password"
);
char
*
psz_server
=
config_GetPsz
(
p_intf
,
"growl-server"
);
int
i_port
=
config_GetInt
(
p_intf
,
"growl-port"
);
int
i_ttl
=
config_GetInt
(
p_intf
,
"growl-ttl"
);
strcpy
(
(
char
*
)(
p_data
+
i_offset
),
psz_password
);
i
=
i_offset
+
strlen
(
psz_password
);
...
...
@@ -276,7 +281,7 @@ static int CheckAndSend( vlc_object_t *p_this, uint8_t* p_data, int i_offset )
p_data
[
i_offset
++
]
=
(
md5
.
p_digest
[
i
]
>>
24
)
&
0xFF
;
}
i_handle
=
net_ConnectUDP
(
p_this
,
psz_server
,
i_port
,
0
);
i_handle
=
net_ConnectUDP
(
p_this
,
psz_server
,
i_port
,
i_ttl
);
if
(
i_handle
==
-
1
)
{
msg_Err
(
p_this
,
"failed to open a connection (udp)"
);
...
...
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