cmumble:cmumble.git
6 years agoFix bitshift for udp type
Benjamin Franzke [Sun, 25 Sep 2011 11:30:28 +0000 (13:30 +0200)]
Fix bitshift for udp type

Its abit unclear in the documentation,
whether the first bits refer to lsb or msb.

6 years agoPrint errors using g_printerr
Benjamin Franzke [Sun, 25 Sep 2011 11:02:51 +0000 (13:02 +0200)]
Print errors using g_printerr

6 years agoFix coding style
Benjamin Franzke [Sun, 25 Sep 2011 11:01:11 +0000 (13:01 +0200)]
Fix coding style

There should not be a ' ' between
functions names and open brackets.
Only after keywords (switch,if,for..)

6 years agoAdd gstreamer option group to cmdline options
Benjamin Franzke [Sun, 25 Sep 2011 11:00:03 +0000 (13:00 +0200)]
Add gstreamer option group to cmdline options

6 years agoPrint session id in list_users
Benjamin Franzke [Sat, 24 Sep 2011 13:49:20 +0000 (15:49 +0200)]
Print session id in list_users

6 years agoDo not assign and check in if
Benjamin Franzke [Sat, 24 Sep 2011 13:35:56 +0000 (15:35 +0200)]
Do not assign and check in if

6 years agoAdd glib parsing function for argc and argv.
Jan Klemkow [Sat, 24 Sep 2011 23:34:31 +0000 (01:34 +0200)]
Add glib parsing function for argc and argv.

6 years agoAdd a general element finding routine to util.c
Benjamin Franzke [Sat, 24 Sep 2011 10:54:31 +0000 (12:54 +0200)]
Add a general element finding routine to util.c

And use this to implement find_user and find_channel
as inline functions.

6 years agoAdd lc (list channels) command
Benjamin Franzke [Sat, 24 Sep 2011 10:20:01 +0000 (12:20 +0200)]
Add lc (list channels) command

6 years agoRename ls commands to lu
Benjamin Franzke [Sat, 24 Sep 2011 10:13:45 +0000 (12:13 +0200)]
Rename ls commands to lu

6 years agoUse an asynchronous connection initiation
Benjamin Franzke [Sat, 24 Sep 2011 09:30:45 +0000 (11:30 +0200)]
Use an asynchronous connection initiation

So we arent blocked, and unable to handle
cmdline interaction while connecting.

6 years agoAdd prefix cmumble_ to struct context and struct user
Benjamin Franzke [Fri, 23 Sep 2011 13:15:47 +0000 (15:15 +0200)]
Add prefix cmumble_ to struct context and struct user

6 years agoAdd a command interface
Benjamin Franzke [Fri, 23 Sep 2011 12:59:45 +0000 (14:59 +0200)]
Add a command interface

Also add two simple commands: help and ls

6 years agoFix indents
Benjamin Franzke [Fri, 23 Sep 2011 12:19:47 +0000 (14:19 +0200)]
Fix indents

6 years agoMove audio-related stuff into audio.c
Benjamin Franzke [Fri, 23 Sep 2011 11:21:57 +0000 (13:21 +0200)]
Move audio-related stuff into audio.c

6 years agoExplicitly add ncurses for readline
Benjamin Franzke [Fri, 23 Sep 2011 10:11:22 +0000 (12:11 +0200)]
Explicitly add ncurses for readline

6 years agoAdd -lncurses for libreadline
Benjamin Franzke [Fri, 23 Sep 2011 10:08:06 +0000 (12:08 +0200)]
Add -lncurses for libreadline

6 years agogen_message_list.sed: Use real tab for OpenBSD's sed
Benjamin Franzke [Fri, 23 Sep 2011 10:02:41 +0000 (12:02 +0200)]
gen_message_list.sed: Use real tab for OpenBSD's sed

6 years agoRename messages.[ch] to message.[ch]
Benjamin Franzke [Fri, 23 Sep 2011 10:00:32 +0000 (12:00 +0200)]
Rename messages.[ch] to message.[ch]

6 years agoRename mumble_message to cmumble_message
Benjamin Franzke [Fri, 23 Sep 2011 09:51:06 +0000 (11:51 +0200)]
Rename mumble_message to cmumble_message

6 years agoAdd cmumble_ prefix to recv/send_msg
Benjamin Franzke [Fri, 23 Sep 2011 09:50:11 +0000 (11:50 +0200)]
Add cmumble_ prefix to recv/send_msg

6 years agoMove recv/send_msg declarations to messages.h
Benjamin Franzke [Fri, 23 Sep 2011 09:48:47 +0000 (11:48 +0200)]
Move recv/send_msg declarations to messages.h

6 years agoRename message.h to message_list.h
Benjamin Franzke [Fri, 23 Sep 2011 09:45:39 +0000 (11:45 +0200)]
Rename message.h to message_list.h

6 years agoStore callbacks in context
Benjamin Franzke [Fri, 23 Sep 2011 08:53:51 +0000 (10:53 +0200)]
Store callbacks in context

6 years agoMove connection related stuff into connection.c
Benjamin Franzke [Fri, 23 Sep 2011 08:29:16 +0000 (10:29 +0200)]
Move connection related stuff into connection.c

6 years agoFix warnings
Benjamin Franzke [Fri, 23 Sep 2011 07:41:22 +0000 (09:41 +0200)]
Fix warnings

6 years agoMakefile.am: Fix typo in gcc cflags
Benjamin Franzke [Fri, 23 Sep 2011 07:34:54 +0000 (09:34 +0200)]
Makefile.am: Fix typo in gcc cflags

6 years agoAdd input support using readline
Benjamin Franzke [Thu, 22 Sep 2011 20:22:20 +0000 (22:22 +0200)]
Add input support using readline

6 years agoUse g_print always, not printf directly
Benjamin Franzke [Thu, 22 Sep 2011 20:20:07 +0000 (22:20 +0200)]
Use g_print always, not printf directly

So we can use glibs print handler later.

6 years agoFixup async read by using GPollableInputStream instead of GSocket
Benjamin Franzke [Thu, 22 Sep 2011 20:16:38 +0000 (22:16 +0200)]
Fixup async read by using GPollableInputStream instead of GSocket

With the GSource created from GSocket hacks were needed
to get all events.
GPollableInputStream is the interface implemented directly
by GTlsInputStream.

6 years agoTypesafe callback initialization
Benjamin Franzke [Fri, 16 Sep 2011 12:35:25 +0000 (14:35 +0200)]
Typesafe callback initialization

6 years agoReplace g_new0(*,1) with g_slice_new0(*)
Benjamin Franzke [Mon, 12 Sep 2011 22:27:09 +0000 (00:27 +0200)]
Replace g_new0(*,1) with g_slice_new0(*)

6 years agogen_messages.sed: Set LC_COLLATE=C
Benjamin Franzke [Mon, 12 Sep 2011 21:49:02 +0000 (23:49 +0200)]
gen_messages.sed: Set LC_COLLATE=C

And unset LC_ALL, since LC_COLLATE is whats actually needed here.

6 years agoShip mumble.pb-c.[ch] is releases
Benjamin Franzke [Mon, 12 Sep 2011 21:48:32 +0000 (23:48 +0200)]
Ship mumble.pb-c.[ch] is releases

6 years agoUse AC_PATH_PROG for protoc-c
Benjamin Franzke [Tue, 6 Sep 2011 13:18:26 +0000 (15:18 +0200)]
Use AC_PATH_PROG for protoc-c

Also move PROTOC_C substution directly into
src/protoc-c.sh.in instead of src/Makefile.am

6 years agogen_messages.sed: Rewrite to be posix compatible
Benjamin Franzke [Tue, 12 Jul 2011 19:06:36 +0000 (21:06 +0200)]
gen_messages.sed: Rewrite to be posix compatible

Posix sed doesnt have lower/uppercase (\L,\R) substitution qualifier.

6 years agogen_messages.sed: Simplify rules
Benjamin Franzke [Tue, 12 Jul 2011 13:30:03 +0000 (15:30 +0200)]
gen_messages.sed: Simplify rules

6 years agoRun sed with LC_ALL=C
Benjamin Franzke [Tue, 12 Jul 2011 12:36:36 +0000 (14:36 +0200)]
Run sed with LC_ALL=C

FIXME: figure out whats broken on some machines with other locales.

6 years agoprotoc-c.sh: Build in suffixed-subdirs
Benjamin Franzke [Mon, 11 Jul 2011 15:35:39 +0000 (17:35 +0200)]
protoc-c.sh: Build in suffixed-subdirs

Fixes race in parallel build.

6 years agosrc/Makefile.am: s/$(top_srcdir)\/src/$(srcdir)/g
Benjamin Franzke [Mon, 11 Jul 2011 14:11:42 +0000 (16:11 +0200)]
src/Makefile.am: s/$(top_srcdir)\/src/$(srcdir)/g

6 years agoChange build order of mumumble.pb-c.h and messages.h
Benjamin Franzke [Mon, 11 Jul 2011 13:41:29 +0000 (15:41 +0200)]
Change build order of mumumble.pb-c.h and messages.h

Just looks nicer when building :)

6 years agosrc/Makefile.am: Fix 80-columns linewrap
Benjamin Franzke [Mon, 11 Jul 2011 13:40:01 +0000 (15:40 +0200)]
src/Makefile.am: Fix 80-columns linewrap

6 years agoAdd protoc-c wrapper build script
Benjamin Franzke [Mon, 11 Jul 2011 13:30:18 +0000 (15:30 +0200)]
Add protoc-c wrapper build script

 - Fixes simultaneous generation of mumble.pb-c.[ch]
 - Fixes out of source build  (protoc-c's --c_out=. is somewhat
      broken since it outputs relative to the input files)

6 years agoFix out-of source build of messages.h
Benjamin Franzke [Mon, 11 Jul 2011 13:34:53 +0000 (15:34 +0200)]
Fix out-of source build of messages.h

6 years agoMake use of BUILT_SOURCES variables
Benjamin Franzke [Mon, 11 Jul 2011 13:02:07 +0000 (15:02 +0200)]
Make use of BUILT_SOURCES variables

6 years agoRemove unneeded m4 dir
Benjamin Franzke [Mon, 11 Jul 2011 12:37:49 +0000 (14:37 +0200)]
Remove unneeded m4 dir

6 years agoUse a sed script for generating messages.h
Benjamin Franzke [Mon, 11 Jul 2011 11:24:47 +0000 (13:24 +0200)]
Use a sed script for generating messages.h

Drop the prior used shell script.

6 years agoGenerate underscore messages names without prefix
Benjamin Franzke [Mon, 11 Jul 2011 09:31:28 +0000 (11:31 +0200)]
Generate underscore messages names without prefix

6 years agoDrop stringified parameter in MUMBLE_MSG macros
Benjamin Franzke [Mon, 11 Jul 2011 09:07:00 +0000 (11:07 +0200)]
Drop stringified parameter in MUMBLE_MSG macros

Use #foo instead to stringify.

6 years agoAdjust protocol/header generation rules for silent rules
Benjamin Franzke [Mon, 11 Jul 2011 08:28:46 +0000 (10:28 +0200)]
Adjust protocol/header generation rules for silent rules

6 years agoconfigure.ac: Fix libprotbuf-c typo
Benjamin Franzke [Sat, 9 Jul 2011 09:56:09 +0000 (11:56 +0200)]
configure.ac: Fix libprotbuf-c typo

6 years agoconfigure.ac: Remove libtool macros
Benjamin Franzke [Sat, 9 Jul 2011 09:26:45 +0000 (11:26 +0200)]
configure.ac: Remove libtool macros

6 years agoconfigure: Call silent rules macro only if defined
Benjamin Franzke [Sat, 9 Jul 2011 09:21:13 +0000 (11:21 +0200)]
configure: Call silent rules macro only if defined

6 years agoSet "cmumble [%user%]" name for sinks if type is pulse
Benjamin Franzke [Mon, 30 May 2011 16:45:32 +0000 (18:45 +0200)]
Set "cmumble [%user%]" name for sinks if type is pulse

6 years agoAdd mumble.proto,messages.txt,gen_message.sh to EXTRA_DIST
Benjamin Franzke [Sat, 28 May 2011 12:26:08 +0000 (14:26 +0200)]
Add mumble.proto,messages.txt,gen_message.sh to EXTRA_DIST

6 years agocleanup
Benjamin Franzke [Sat, 28 May 2011 11:29:58 +0000 (13:29 +0200)]
cleanup

6 years agoRemove unnecessary callbacks
Benjamin Franzke [Sat, 28 May 2011 11:19:46 +0000 (13:19 +0200)]
Remove unnecessary callbacks

6 years agoUse gst_parse_launch for recording pipeline
Benjamin Franzke [Sat, 28 May 2011 11:19:00 +0000 (13:19 +0200)]
Use gst_parse_launch for recording pipeline

6 years agoMake use of gst_parse_launch for playback pipeline
Benjamin Franzke [Sat, 28 May 2011 10:56:17 +0000 (12:56 +0200)]
Make use of gst_parse_launch for playback pipeline

6 years agoAdd binrary to .gitignore
Benjamin Franzke [Sat, 28 May 2011 10:45:06 +0000 (12:45 +0200)]
Add binrary to .gitignore

6 years agoMove send_msg and recv_msg to messages.c
Benjamin Franzke [Sat, 28 May 2011 10:44:37 +0000 (12:44 +0200)]
Move send_msg and recv_msg to messages.c

6 years agoUse enum values for callback positions
Benjamin Franzke [Sat, 28 May 2011 10:28:17 +0000 (12:28 +0200)]
Use enum values for callback positions

6 years agoPass UDPTunnel msg as regular protobufcmessage to sendmsg
Benjamin Franzke [Sat, 28 May 2011 10:19:42 +0000 (12:19 +0200)]
Pass UDPTunnel msg as regular protobufcmessage to sendmsg

6 years agoMake receive udp tunnel a fake protobufcmessage
Benjamin Franzke [Sat, 28 May 2011 09:53:25 +0000 (11:53 +0200)]
Make receive udp tunnel a fake protobufcmessage

6 years agoAutogenerate message macro list, not directly info struct
Benjamin Franzke [Sat, 28 May 2011 09:39:43 +0000 (11:39 +0200)]
Autogenerate message macro list, not directly info struct

6 years agoRemove hardcoded server ip
Benjamin Franzke [Fri, 27 May 2011 15:26:39 +0000 (17:26 +0200)]
Remove hardcoded server ip

6 years agoAdd support for playback from multiple sessions
Benjamin Franzke [Fri, 27 May 2011 15:25:06 +0000 (17:25 +0200)]
Add support for playback from multiple sessions

6 years agoUse PACKAGE_STRING from config.h rather than hardcoding version number
Benjamin Franzke [Fri, 27 May 2011 14:32:06 +0000 (16:32 +0200)]
Use PACKAGE_STRING from config.h rather than hardcoding version number

6 years agoCheck for errors when connecting
Benjamin Franzke [Fri, 27 May 2011 12:22:30 +0000 (14:22 +0200)]
Check for errors when connecting

6 years agoExplicitly set dependencies for generated headers
Benjamin Franzke [Fri, 27 May 2011 12:15:19 +0000 (14:15 +0200)]
Explicitly set dependencies for generated headers

6 years agoconfigure: Fix typo
Benjamin Franzke [Fri, 27 May 2011 12:07:19 +0000 (14:07 +0200)]
configure: Fix typo

6 years agoconfigure:ac fix protobuf check
Benjamin Franzke [Fri, 27 May 2011 11:56:39 +0000 (13:56 +0200)]
configure:ac fix protobuf check

6 years agoconfigure: Add AC_CHECK_LIB fallback for protobuf on debian
Benjamin Franzke [Fri, 27 May 2011 11:38:52 +0000 (13:38 +0200)]
configure: Add AC_CHECK_LIB fallback for protobuf on debian

6 years agoconfigure.ac: Remove unecessary AC_MSG_ERRORs
Benjamin Franzke [Fri, 27 May 2011 11:31:47 +0000 (13:31 +0200)]
configure.ac: Remove unecessary AC_MSG_ERRORs

6 years agoRemove unnecessary header
Benjamin Franzke [Fri, 27 May 2011 11:27:42 +0000 (13:27 +0200)]
Remove unnecessary header

6 years agoconfigure.ac: Check for needed gstreamer elements
Benjamin Franzke [Fri, 27 May 2011 11:23:34 +0000 (13:23 +0200)]
configure.ac: Check for needed gstreamer elements

6 years agoAdd build system (autoconf/make)
Benjamin Franzke [Fri, 27 May 2011 10:30:04 +0000 (12:30 +0200)]
Add build system (autoconf/make)

6 years agoRename socket.c to cmumble.c
Benjamin Franzke [Fri, 27 May 2011 08:19:16 +0000 (10:19 +0200)]
Rename socket.c to cmumble.c

6 years agoAdd some protocol output
Benjamin Franzke [Fri, 27 May 2011 08:17:46 +0000 (10:17 +0200)]
Add some protocol output

6 years agoPing every 5 seconds do not get disconnected
Benjamin Franzke [Wed, 25 May 2011 15:41:59 +0000 (17:41 +0200)]
Ping every 5 seconds do not get disconnected

6 years agoUse gio tls socket instead of polarssl
Benjamin Franzke [Wed, 25 May 2011 15:35:14 +0000 (17:35 +0200)]
Use gio tls socket instead of polarssl

Still need to figure out how to get pending bytes.

6 years agoUse glib mutex
Benjamin Franzke [Wed, 25 May 2011 12:51:27 +0000 (14:51 +0200)]
Use glib mutex

6 years agoTalk!
Benjamin Franzke [Wed, 25 May 2011 11:59:21 +0000 (13:59 +0200)]
Talk!

6 years agoUse gstreamer for playback and celt decoding
Benjamin Franzke [Tue, 24 May 2011 11:12:34 +0000 (13:12 +0200)]
Use gstreamer for playback and celt decoding

6 years agoinitial commit
Benjamin Franzke [Mon, 23 May 2011 16:03:39 +0000 (18:03 +0200)]
initial commit