cmumble:cmumble.git
4 years agomessage.h: Add wrapper around protobufs ugly func names
Benjamin Franzke [Thu, 21 Nov 2013 09:45:44 +0000 (10:45 +0100)]
message.h: Add wrapper around protobufs ugly func names

They are of cause autogenerated.
Only the one wrapper for the reject enum is added as one makro by hand.

4 years agomessage: Quit on G_TLS_ERROR_MISC error
Benjamin Franzke [Thu, 21 Nov 2013 09:52:31 +0000 (10:52 +0100)]
message: Quit on G_TLS_ERROR_MISC error

Dont know why this happens sometimes, but quit at least.
The szenario seems to be:
 - mute mic
 - wait around 10
 - unmute mic
 -> G_TLS_ERROR_MSG on next write to socket

4 years agocmumble.c: Inline a makro
Benjamin Franzke [Thu, 21 Nov 2013 09:51:31 +0000 (10:51 +0100)]
cmumble.c: Inline a makro

Does not take 80 columns at all, no linebreak needed.

4 years agoAdd missing headers
Benjamin Franzke [Thu, 21 Nov 2013 09:49:21 +0000 (10:49 +0100)]
Add missing headers

There were not warnings yet,
since gstreamer 0.10 includes them implicitly.
This will change with gstreamer 1.0.

4 years agomumble.proto: Rephrase the copy warning
Benjamin Franzke [Thu, 21 Nov 2013 09:50:46 +0000 (10:50 +0100)]
mumble.proto: Rephrase the copy warning

4 years agogen_message_list.sed: Remove trailing whitespace in output
Benjamin Franzke [Tue, 19 Nov 2013 07:48:28 +0000 (08:48 +0100)]
gen_message_list.sed: Remove trailing whitespace in output

4 years agoRevert "recv_user_state: Verify needed, but optional values"
Benjamin Franzke [Mon, 18 Nov 2013 16:02:33 +0000 (17:02 +0100)]
Revert "recv_user_state: Verify needed, but optional values"

This reverts commit f3b388b80daebb13398f2b6b269eda0aa947e469.

4 years agoconfigure: Fix protoc-c detection
Benjamin Franzke [Mon, 18 Nov 2013 14:37:14 +0000 (15:37 +0100)]
configure: Fix protoc-c detection

 * Use --with-protoc=command instead of env var
 * Error out when protoc is not found.

4 years agorecv_user_state: Verify needed, but optional values
Benjamin Franzke [Mon, 18 Nov 2013 13:37:05 +0000 (14:37 +0100)]
recv_user_state: Verify needed, but optional values

We need at least always the session id.
Didn't looked through the mumble source code,
when this event is useful without.

Store a user only, if we've been given a name, id and channel.

4 years agoImplement channel join
Benjamin Franzke [Mon, 18 Nov 2013 13:17:56 +0000 (14:17 +0100)]
Implement channel join

4 years agoAdd verbose option
Benjamin Franzke [Thu, 16 Feb 2012 10:18:16 +0000 (11:18 +0100)]
Add verbose option

Disable all debug output using that flag for now.

4 years agoImplement reject message
Benjamin Franzke [Mon, 13 Feb 2012 08:25:15 +0000 (09:25 +0100)]
Implement reject message

4 years agoFix typo in cmumble struct name
Benjamin Franzke [Sun, 12 Feb 2012 18:30:35 +0000 (19:30 +0100)]
Fix typo in cmumble struct name

5 years agoDerive message type from position in .proto file
Benjamin Franzke [Fri, 16 Sep 2011 12:28:22 +0000 (14:28 +0200)]
Derive message type from position in .proto file

This involves changing the .proto file, to actually
reflect the type in the protocol.

5 years agoUse sizeof in encode_varint call for buffer size
Benjamin Franzke [Mon, 21 Nov 2011 08:46:49 +0000 (09:46 +0100)]
Use sizeof in encode_varint call for buffer size

5 years agogen_message_list.sed: Add an exmaple
Benjamin Franzke [Fri, 10 Feb 2012 08:05:08 +0000 (09:05 +0100)]
gen_message_list.sed: Add an exmaple

This should help understanding that code easily.

5 years agos/ctx/cm/g; s/struct cmumble_context/struct cmumlbe/g
Benjamin Franzke [Fri, 10 Feb 2012 07:58:01 +0000 (08:58 +0100)]
s/ctx/cm/g; s/struct cmumble_context/struct cmumlbe/g

6 years agoaudio: Another type fix
Benjamin Franzke [Sat, 8 Oct 2011 09:13:17 +0000 (11:13 +0200)]
audio: Another type fix

6 years agoaudio.h: Fix type
Benjamin Franzke [Sat, 8 Oct 2011 09:11:51 +0000 (11:11 +0200)]
audio.h: Fix type

6 years agoSupport delimiter in cmdline arguments
Benjamin Franzke [Thu, 29 Sep 2011 17:59:55 +0000 (19:59 +0200)]
Support delimiter in cmdline arguments

Delimiters are " and '.

6 years agoSupport sending TextMessages
Benjamin Franzke [Wed, 28 Sep 2011 17:17:21 +0000 (19:17 +0200)]
Support sending TextMessages

6 years agoSupport receiving TextMessages
Benjamin Franzke [Wed, 28 Sep 2011 17:13:21 +0000 (19:13 +0200)]
Support receiving TextMessages

6 years agoStore own user in cmumble_context
Benjamin Franzke [Wed, 28 Sep 2011 17:44:32 +0000 (19:44 +0200)]
Store own user in cmumble_context

6 years agoStore channel in cmumble_user
Benjamin Franzke [Wed, 28 Sep 2011 17:31:37 +0000 (19:31 +0200)]
Store channel in cmumble_user

6 years agoPass argc and argv for internal commands
Benjamin Franzke [Wed, 28 Sep 2011 17:12:04 +0000 (19:12 +0200)]
Pass argc and argv for internal commands

6 years agofind_by_id: Fix lookup (v2)
Benjamin Franzke [Wed, 28 Sep 2011 17:19:11 +0000 (19:19 +0200)]
find_by_id: Fix lookup (v2)

The offset should be taken from the (GList *)::data pointer,
not the list directly..

v2: Drop accidentially commited wip stuff

6 years agoRevert "find_by_id: Fix lookup"
Benjamin Franzke [Wed, 28 Sep 2011 17:18:26 +0000 (19:18 +0200)]
Revert "find_by_id: Fix lookup"

This reverts commit c1cf0a71cfd8aa3441e57592e17de0d34823d305.

6 years agofind_by_id: Fix lookup
Benjamin Franzke [Wed, 28 Sep 2011 11:57:14 +0000 (13:57 +0200)]
find_by_id: Fix lookup

The offset should be taken from the (GList *)::data pointer,
not the list directly..

6 years agofind_user: Renmae session to session_id for readability
Benjamin Franzke [Wed, 28 Sep 2011 11:56:55 +0000 (13:56 +0200)]
find_user: Renmae session to session_id for readability

6 years agofind_user: Match against session id
Benjamin Franzke [Wed, 28 Sep 2011 11:45:34 +0000 (13:45 +0200)]
find_user: Match against session id

6 years agomessage: Fix segfault when error is Null but ret <= 0
Benjamin Franzke [Wed, 28 Sep 2011 11:33:38 +0000 (13:33 +0200)]
message: Fix segfault when error is Null but ret <= 0

6 years agoPrint welcome message
Benjamin Franzke [Wed, 28 Sep 2011 11:29:45 +0000 (13:29 +0200)]
Print welcome message

6 years agoFix lines with more than 80 characters.
Jan Klemkow [Wed, 28 Sep 2011 11:28:27 +0000 (13:28 +0200)]
Fix lines with more than 80 characters.

6 years agoRename: cmumble_command_{complete=>expand_shortcut}
Benjamin Franzke [Tue, 27 Sep 2011 09:35:31 +0000 (11:35 +0200)]
Rename: cmumble_command_{complete=>expand_shortcut}

6 years agoFix connection finish, if not connected
Benjamin Franzke [Tue, 27 Sep 2011 08:42:26 +0000 (10:42 +0200)]
Fix connection finish, if not connected

6 years agoCatch connection lost
Benjamin Franzke [Tue, 27 Sep 2011 08:41:52 +0000 (10:41 +0200)]
Catch connection lost

6 years agoAdd readline command completion
Benjamin Franzke [Tue, 27 Sep 2011 05:56:26 +0000 (07:56 +0200)]
Add readline command completion

6 years agoHandle whitespace around commands
Benjamin Franzke [Tue, 27 Sep 2011 06:04:53 +0000 (08:04 +0200)]
Handle whitespace around commands

6 years agoAdd support for command shortcuts
Benjamin Franzke [Tue, 27 Sep 2011 04:45:43 +0000 (06:45 +0200)]
Add support for command shortcuts

So that distinct substrings of commands,
can be used as shortcuts.

6 years agoAdd udp message targets
Benjamin Franzke [Sun, 25 Sep 2011 11:42:19 +0000 (13:42 +0200)]
Add udp message targets

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