Get rid of dependency on HAL, using libgudev instead. Fix up the plugin API to no longer use either HAL or udev defines, but let plugins use whatever mechanism they want for getting more information out of the device given the subsystem and device node name. Modems are now defined as "master" devices which "own" a one or more ports. A port could be a serial tty device or a network device or whatever. The plugin figures out whether it supports a given port or not and then assigns it to a new or existing modem. Modems now have a 'valid' property that should be set to TRUE when the modem has enough ports to operate correctly. For devices (ex. 'hso') that use a network device for data transfer, the modem would need to grab at least one TTY and the network device associated with that physical device to be 'valid'. Also move the generic modem support code to a plugin like other modem plugins, and change the I-support-this-device mechanism to return a number indicating the level of support. For example, the generic plugin would return a quite low number if the device indicates via probing that it can do GSM or CDMA, but a more specific plugin can indicate better support for the device, and thus the more specific plugin would win control.
49 lines
1.1 KiB
Makefile
49 lines
1.1 KiB
Makefile
if WITH_DOCS
|
|
|
|
all:
|
|
|
|
XSLTPROC = xsltproc --xinclude --nonet
|
|
|
|
XMLS = $(wildcard introspection/mm-*.xml)
|
|
# Figure out if we need ASYNC_INTROSPECT and add it later
|
|
|
|
GENERATED_FILES = \
|
|
docs/spec.html
|
|
|
|
docs/spec.html: $(XMLS) introspection/all.xml doc-generator.xsl
|
|
@install -d docs
|
|
$(XSLTPROC) doc-generator.xsl introspection/all.xml > $@
|
|
|
|
all: $(GENERATED_FILES)
|
|
|
|
clean:
|
|
rm -f $(GENERATED_FILES)
|
|
endif
|
|
|
|
SUBDIRS = marshallers callouts src plugins introspection test
|
|
|
|
dbusservicedir = $(DBUS_SYS_DIR)
|
|
dbusservice_DATA = org.freedesktop.ModemManager.conf
|
|
|
|
dbusactivationdir = $(datadir)/dbus-1/system-services
|
|
dbusactivation_in_files = org.freedesktop.ModemManager.service.in
|
|
dbusactivation_DATA = $(dbusactivation_in_files:.service.in=.service)
|
|
|
|
%service: %service.in
|
|
$(edit) $< >$@
|
|
|
|
edit = @sed \
|
|
-e 's|@sbindir[@]|$(sbindir)|g' \
|
|
-e 's|@sysconfdir[@]|$(sysconfdir)|g' \
|
|
-e 's|@localstatedir[@]|$(localstatedir)|g' \
|
|
-e 's|@libexecdir[@]|$(libexecdir)|g'
|
|
|
|
DISTCLEANFILES = \
|
|
$(dbusactivation_DATA)
|
|
|
|
|
|
EXTRA_DIST = \
|
|
doc-generator.xsl \
|
|
$(dbusservice_DATA) \
|
|
$(dbusactivation_in_files)
|