Building against nm master
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/merge_requests/24 was merged so I tried to build against current master:
$ meson build
The Meson build system
Version: 0.49.2
Source dir: /home/alberto/projects/c/gnome-screencast
Build dir: /home/alberto/projects/c/gnome-screencast/build
Build type: native build
Project name: gnome-screencast
Project version: 0.1.0
Native C compiler: ccache cc (gcc 8.2.1 "cc (GCC) 8.2.1 20181127")
Build machine cpu family: x86_64
Build machine cpu: x86_64
Configuring gnome-screencast-config.h using configuration
Program desktop-file-validate found: YES (/usr/bin/desktop-file-validate)
Program appstream-util found: YES (/usr/bin/appstream-util)
Program glib-compile-schemas found: YES (/usr/bin/glib-compile-schemas)
Found pkg-config: /usr/bin/pkg-config (1.6.0)
Dependency gstreamer-video-1.0 found: YES 1.14.4
Dependency gstreamer-rtsp-1.0 found: YES 1.14.4
Dependency gstreamer-rtsp-server-1.0 found: YES 1.14.4
Dependency gio-2.0 found: YES 2.58.3
Dependency gtk+-3.0 found: YES 3.24.5
Dependency libnm found: YES 1.15.2
Dependency gstreamer-1.0 found: YES 1.14.4
Dependency libpulse-mainloop-glib found: YES 12.2
Program build-aux/meson/postinstall.py found: YES (/home/alberto/projects/c/gnome-screencast/build-aux/meson/postinstall.py)
Build targets in project: 11
Found ninja-1.9.0 at /usr/bin/ninja
$ ninja -C build
ninja: Entering directory `build'
[1/2] Compiling C object 'src/25a6634@@gnome-screencast@exe/screencast-wfd-p2p-provider.c.o'.
FAILED: src/25a6634@@gnome-screencast@exe/screencast-wfd-p2p-provider.c.o
ccache cc -Isrc/25a6634@@gnome-screencast@exe -Isrc -I../src -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/libffi-3.2.1/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/libdrm -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/libnm -I/usr/include/gstreamer-1.0 -I/usr/include/orc-0.4 -I/home/alberto/projects/c/gnome-screencast/build -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -g -pthread -D_REENTRANT -MD -MQ 'src/25a6634@@gnome-screencast@exe/screencast-wfd-p2p-provider.c.o' -MF 'src/25a6634@@gnome-screencast@exe/screencast-wfd-p2p-provider.c.o.d' -o 'src/25a6634@@gnome-screencast@exe/screencast-wfd-p2p-provider.c.o' -c ../src/screencast-wfd-p2p-provider.c
../src/screencast-wfd-p2p-provider.c: En la función ‘device_restart_find_timeout’:
../src/screencast-wfd-p2p-provider.c:128:3: error: faltan argumentos para la función ‘nm_device_wifi_p2p_start_find’
nm_device_wifi_p2p_start_find (NM_DEVICE_WIFI_P2P (provider->nm_device), NULL, NULL, NULL);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/libnm/NetworkManager.h:54,
from ../src/screencast-wfd-p2p-provider.h:21,
from ../src/screencast-wfd-p2p-provider.c:20:
/usr/include/libnm/nm-device-wifi-p2p.h:62:26: nota: se declara aquí
void nm_device_wifi_p2p_start_find (NMDeviceWifiP2P *device,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/screencast-wfd-p2p-provider.c: En la función ‘screencast_wfd_p2p_provider_set_property’:
../src/screencast-wfd-p2p-provider.c:167:11: error: faltan argumentos para la función ‘nm_device_wifi_p2p_start_find’
nm_device_wifi_p2p_start_find (NM_DEVICE_WIFI_P2P (provider->nm_device), NULL, NULL, NULL);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/libnm/NetworkManager.h:54,
from ../src/screencast-wfd-p2p-provider.h:21,
from ../src/screencast-wfd-p2p-provider.c:20:
/usr/include/libnm/nm-device-wifi-p2p.h:62:26: nota: se declara aquí
void nm_device_wifi_p2p_start_find (NMDeviceWifiP2P *device,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/screencast-wfd-p2p-provider.c:183:11: error: faltan argumentos para la función ‘nm_device_wifi_p2p_start_find’
nm_device_wifi_p2p_start_find (NM_DEVICE_WIFI_P2P (provider->nm_device), NULL, NULL, NULL);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/libnm/NetworkManager.h:54,
from ../src/screencast-wfd-p2p-provider.h:21,
from ../src/screencast-wfd-p2p-provider.c:20:
/usr/include/libnm/nm-device-wifi-p2p.h:62:26: nota: se declara aquí
void nm_device_wifi_p2p_start_find (NMDeviceWifiP2P *device,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ninja: build stopped: subcommand failed.
Should I try on top of merge commit? Which seems to be https://gitlab.freedesktop.org/NetworkManager/NetworkManager/commit/ce3f7bf812c21773251748693cd39d2fb54b9055