NetworkManager/src/core/ppp
Thomas Haller afe80171b2
ppp: move ppp code to "nm-pppd-compat.c"
Using the ppp code is rather ugly.

Historically, the pppd headers don't follow a good naming convention,
and define things that cause conflicts with our headers:

  /usr/include/pppd/patchlevel.h:#define VERSION          "2.4.9"
  /usr/include/pppd/pppd.h:typedef unsigned char  bool;

Hence we had to include the pppd headers in certain order, and be
careful.

ppp 2.5 changes API and cleans that up. But since we need to support
also old versions, it does not immediately simplify anything.

Only include "pppd" headers in "nm-pppd-compat.c" and expose a wrapper
API from "nm-pppd-compat.h". The purpose is that "nm-pppd-compat.h"
exposes clean names, while all the handling of ppp is in the source
file.
2023-04-17 18:27:50 +02:00
..
meson.build ppp: move ppp code to "nm-pppd-compat.c" 2023-04-17 18:27:50 +02:00
nm-ppp-manager-call.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nm-ppp-manager-call.h format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nm-ppp-manager.c ppp: move ppp code to "nm-pppd-compat.c" 2023-04-17 18:27:50 +02:00
nm-ppp-manager.h format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nm-ppp-mgr.c ppp: move ppp code to "nm-pppd-compat.c" 2023-04-17 18:27:50 +02:00
nm-ppp-mgr.h format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nm-ppp-plugin-api.h format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nm-ppp-plugin.ver all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
nm-ppp-status.h ppp: move ppp code to "nm-pppd-compat.c" 2023-04-17 18:27:50 +02:00
nm-pppd-compat.c ppp: move ppp code to "nm-pppd-compat.c" 2023-04-17 18:27:50 +02:00
nm-pppd-compat.h ppp: move ppp code to "nm-pppd-compat.c" 2023-04-17 18:27:50 +02:00
nm-pppd-plugin.c ppp: move ppp code to "nm-pppd-compat.c" 2023-04-17 18:27:50 +02:00
nm-pppd-plugin.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00