* [PATCH] avctp: Move avctp.c|h from profiles/audio to protocol/
@ 2013-12-18 11:24 Ravi kumar Veeramally
2013-12-18 11:39 ` Marcel Holtmann
0 siblings, 1 reply; 4+ messages in thread
From: Ravi kumar Veeramally @ 2013-12-18 11:24 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Ravi kumar Veeramally
This is an initial patch for decoupling avctp.c|h from profiles/audio.
Goal is to remove external dependency (glib is enough) and reusable
to android/* sources.
---
Makefile.plugins | 2 +-
{profiles/audio => protocol}/avctp.c | 7 +------
{profiles/audio => protocol}/avctp.h | 0
3 files changed, 2 insertions(+), 7 deletions(-)
rename {profiles/audio => protocol}/avctp.c (99%)
rename {profiles/audio => protocol}/avctp.h (100%)
diff --git a/Makefile.plugins b/Makefile.plugins
index 6a1ddbf..a64d4f5 100644
--- a/Makefile.plugins
+++ b/Makefile.plugins
@@ -41,7 +41,7 @@ builtin_sources += profiles/audio/source.h profiles/audio/source.c \
builtin_modules += avrcp
builtin_sources += profiles/audio/control.h profiles/audio/control.c \
- profiles/audio/avctp.h profiles/audio/avctp.c \
+ protocol/avctp.h protocol/avctp.c \
profiles/audio/avrcp.h profiles/audio/avrcp.c \
profiles/audio/player.h profiles/audio/player.c
diff --git a/profiles/audio/avctp.c b/protocol/avctp.c
similarity index 99%
rename from profiles/audio/avctp.c
rename to protocol/avctp.c
index 6669ddc..a09cd93 100644
--- a/profiles/audio/avctp.c
+++ b/protocol/avctp.c
@@ -32,12 +32,7 @@
#include <stdbool.h>
#include <errno.h>
#include <unistd.h>
-#include <assert.h>
-#include <signal.h>
-#include <sys/types.h>
-#include <sys/stat.h>
#include <fcntl.h>
-#include <netinet/in.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/sdp.h>
@@ -54,7 +49,7 @@
#include "error.h"
#include "uinput.h"
#include "avctp.h"
-#include "avrcp.h"
+#include <profiles/audio/avrcp.h>
/* AV/C Panel 1.23, page 76:
* command with the pressed value is valid for two seconds
diff --git a/profiles/audio/avctp.h b/protocol/avctp.h
similarity index 100%
rename from profiles/audio/avctp.h
rename to protocol/avctp.h
--
1.8.3.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] avctp: Move avctp.c|h from profiles/audio to protocol/
2013-12-18 11:24 [PATCH] avctp: Move avctp.c|h from profiles/audio to protocol/ Ravi kumar Veeramally
@ 2013-12-18 11:39 ` Marcel Holtmann
2013-12-18 11:49 ` Ravi kumar Veeramally
2013-12-18 11:57 ` Luiz Augusto von Dentz
0 siblings, 2 replies; 4+ messages in thread
From: Marcel Holtmann @ 2013-12-18 11:39 UTC (permalink / raw)
To: Ravi kumar Veeramally; +Cc: linux-bluetooth@vger.kernel.org development
Hi Ravi,
> This is an initial patch for decoupling avctp.c|h from profiles/audio.
> Goal is to remove external dependency (glib is enough) and reusable
> to android/* sources.
> ---
> Makefile.plugins | 2 +-
> {profiles/audio => protocol}/avctp.c | 7 +------
> {profiles/audio => protocol}/avctp.h | 0
> 3 files changed, 2 insertions(+), 7 deletions(-)
> rename {profiles/audio => protocol}/avctp.c (99%)
> rename {profiles/audio => protocol}/avctp.h (100%)
actually, no.
The breaks my nicely tab-tab-completion handling when going through the source code. Pro{file,tocol} have a way to close prefix.
Regards
Marcel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] avctp: Move avctp.c|h from profiles/audio to protocol/
2013-12-18 11:39 ` Marcel Holtmann
@ 2013-12-18 11:49 ` Ravi kumar Veeramally
2013-12-18 11:57 ` Luiz Augusto von Dentz
1 sibling, 0 replies; 4+ messages in thread
From: Ravi kumar Veeramally @ 2013-12-18 11:49 UTC (permalink / raw)
To: Marcel Holtmann; +Cc: linux-bluetooth@vger.kernel.org development
Hi Marcel,
Ok, I just had a chat with Luiz now. Actually task description is outdated.
Sorry for inconvenience. Please ignore this patch.
Regards,
Ravi.
On 18.12.2013 13:39, Marcel Holtmann wrote:
> Hi Ravi,
>
>> This is an initial patch for decoupling avctp.c|h from profiles/audio.
>> Goal is to remove external dependency (glib is enough) and reusable
>> to android/* sources.
>> ---
>> Makefile.plugins | 2 +-
>> {profiles/audio => protocol}/avctp.c | 7 +------
>> {profiles/audio => protocol}/avctp.h | 0
>> 3 files changed, 2 insertions(+), 7 deletions(-)
>> rename {profiles/audio => protocol}/avctp.c (99%)
>> rename {profiles/audio => protocol}/avctp.h (100%)
> actually, no.
>
> The breaks my nicely tab-tab-completion handling when going through the source code. Pro{file,tocol} have a way to close prefix.
>
> Regards
>
> Marcel
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] avctp: Move avctp.c|h from profiles/audio to protocol/
2013-12-18 11:39 ` Marcel Holtmann
2013-12-18 11:49 ` Ravi kumar Veeramally
@ 2013-12-18 11:57 ` Luiz Augusto von Dentz
1 sibling, 0 replies; 4+ messages in thread
From: Luiz Augusto von Dentz @ 2013-12-18 11:57 UTC (permalink / raw)
To: Marcel Holtmann
Cc: Ravi kumar Veeramally,
linux-bluetooth@vger.kernel.org development
Hi Marcel, Ravi,
On Wed, Dec 18, 2013 at 1:39 PM, Marcel Holtmann <marcel@holtmann.org> wrote:
> Hi Ravi,
>
>> This is an initial patch for decoupling avctp.c|h from profiles/audio.
>> Goal is to remove external dependency (glib is enough) and reusable
>> to android/* sources.
>> ---
>> Makefile.plugins | 2 +-
>> {profiles/audio => protocol}/avctp.c | 7 +------
>> {profiles/audio => protocol}/avctp.h | 0
>> 3 files changed, 2 insertions(+), 7 deletions(-)
>> rename {profiles/audio => protocol}/avctp.c (99%)
>> rename {profiles/audio => protocol}/avctp.h (100%)
>
> actually, no.
>
> The breaks my nicely tab-tab-completion handling when going through the source code. Pro{file,tocol} have a way to close prefix.
Lets handle these similar to AVDTP by copying it to android, remove
dependencies to core the add to android build and create proper unit
tests for it, eventually it should replace all the existing
implementation of AVCTP but first we need to have the unit tests done.
Later we can decide where it should be, perhaps it can even be inside
lib/ for example (though internally it might still depend on glib.)
--
Luiz Augusto von Dentz
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-12-18 11:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-18 11:24 [PATCH] avctp: Move avctp.c|h from profiles/audio to protocol/ Ravi kumar Veeramally
2013-12-18 11:39 ` Marcel Holtmann
2013-12-18 11:49 ` Ravi kumar Veeramally
2013-12-18 11:57 ` Luiz Augusto von Dentz
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.