Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build documentation during build-time, and add a bt-audio implementation #52

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

thatlittlegit
Copy link

The two changes aren't really related, but oh well, I don't want to open too many PRs.

Documentation is now built at build-time, using pod2man within Automake instead of a separate build-mans.sh. The built documentation that was committed has been removed, and *.1 added to the .gitignore. The POD files were also moved to a new docs/ directory, to make it easier to find than contrib/man/.

In addition, a bt-audio implementation was added. This should fix #13, however the manual page's description doesn't really tell me what it did. It seems like before it was using BlueZ 4's org.bluez.Audio.Connect, and I think org.bluez.Device1.Connect is the new version; this would explain why the workaround in #13 (comment) is so simple. It seems to work, since I can type ./src/bt-audio -c <devicename> and audio from it will start playing on my laptop... is that the correct behaviour?

If it is, then I wonder if it would make sense to remove bt-audio again and merge it into bt-device (maybe with a small wrapper for muscle-memory/scripts). It seems like BlueZ 4 has org.bluez.Input.Connect, and that sounds like something that would've ended up in org.bluez.Device1.Connect, meaning that bt-input would also be served by the common implementation. bt-serial seems a little trickier, having something to do with profiles? I don't have a way to test either of bt-input or bt-serial, so I don't know if what I'm saying makes any sense.

If you don't like anything here (e.g. moving manpages to doc/), let me know and I can probably remove it.

thatlittlegit added 2 commits April 16, 2021 11:59
This is a bit of a large commit:

* Move the documentation into a dedicated doc/ folder. This is
  somewhat optional, but it does make it more of a first-class citizen
  instead of being buried in contrib/man. Plus, contrib/ doesn't have
  a Makefile.am, and I wanted the subdirectory in Makefile.am to be a
  direct child.
* Remove the contrib/build-mans.sh, replacing it with the Autotools
  infrastructure. Autotools will use the POD2MAN variable to indicate
  where it is located, and it can be overridden by the user.
* Remove the existing, prebuilt manpages, to clean up the src/ folder.
* Add a --without-manpages option, if the user doesn't want manpages
  for some reason.

I didn't remove the unused manpages (bt-input, bt-monitor, etc.) just
in case they exist in future. They aren't built until they're put into
doc/Makefile.am.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bt-audio depreciated
1 participant