Merge pull request #9468 from yuwata/small-cleanups

small fixes and cleanups for comments
This commit is contained in:
Lennart Poettering 2018-06-29 11:35:57 +02:00 committed by GitHub
commit 0a2fcbd2ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
167 changed files with 10 additions and 268 deletions

View file

@ -79,7 +79,7 @@
for <parameter>slot</parameter> in the <parameter>callback</parameter> parameter.</para>
<para><function>sd_bus_track_set_destroy_callback()</function> and
<function>sd_bus_track_get_destroy_callback</function> provide equivalent functionality for the
<function>sd_bus_track_get_destroy_callback()</function> provide equivalent functionality for the
<parameter>userdata</parameter> pointer associated with bus peer tracking objects. For details about bus peer
tracking objects, see
<citerefentry><refentrytitle>sd_bus_track_new</refentrytitle><manvolnum>3</manvolnum></citerefentry>.</para>
@ -93,7 +93,7 @@
negative errno-style error code.</para>
<para><function>sd_bus_slot_get_destroy_callback()</function> and
<function>sd_bus_track_get_destroy_callback</function> return positive if the destroy callback function is set, 0
<function>sd_bus_track_get_destroy_callback()</function> return positive if the destroy callback function is set, 0
if not. On failure, they return a negative errno-style error code.</para>
</refsect1>

View file

@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include <stdbool.h>
#include <stdint.h>
#include <sys/types.h>

View file

@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include <stdbool.h>
#include "hashmap.h"

View file

@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
enum {
CONF_FILES_EXECUTABLE = 1 << 0,
CONF_FILES_REGULAR = 1 << 1,

View file

@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include <sched.h>
#include "macro.h"

View file

@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include <net/ethernet.h>
#include <stdbool.h>

View file

@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include <stdio.h>
#include "fileio.h"

View file

@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include <inttypes.h>
#if SIZEOF_PID_T == 4

View file

@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include "macro.h"
#include "siphash24.h"

View file

@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include <limits.h>
#include <stdbool.h>
#include <stddef.h>

View file

@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include <stddef.h>
struct pool;

View file

@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include <sys/types.h>
typedef enum MkdirFlags {

View file

@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include "securebits.h"
int secure_bits_to_string_alloc(int i, char **s);

View file

@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include <stddef.h>
#include <stdint.h>
#include <sys/types.h>

View file

@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include <stddef.h>
#include "macro.h"

View file

@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include <endian.h>
#include <stdint.h>

View file

@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include <inttypes.h>
#include "unit.h"

View file

@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include "conf-parser.h"
#include "in-addr-util.h"
#include "list.h"

View file

@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include "sd-bus.h"
#include "bus-util.h"

View file

@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include "sd-id128.h"
#include "macro.h"

View file

@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include "sd-event.h"
#include "sd-lldp.h"

View file

@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include "sd-event.h"
int lldp_network_bind_raw_socket(int ifindex);

View file

@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include <stdbool.h>
#include "sd-dhcp-lease.h"

View file

@ -1,9 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
/***
***/
#include "bus-error.h"
#define BUS_ERROR_NO_SUCH_UNIT "org.freedesktop.systemd1.NoSuchUnit"

View file

@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <fcntl.h>
#include <unistd.h>

View file

@ -1,9 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
/***
***/
#include "sd-bus.h"
int bus_container_connect_socket(sd_bus *b);

View file

@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#if HAVE_VALGRIND_MEMCHECK_H
#include <valgrind/memcheck.h>

View file

@ -1,9 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
/***
***/
#include "sd-bus.h"
int bus_add_match_internal(sd_bus *bus, const char *match);

View file

@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include "bus-internal.h"
#include "bus-message.h"

View file

@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <linux/capability.h>
#include <stdlib.h>

View file

@ -1,9 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
/***
***/
#include <stdbool.h>
#include "sd-bus.h"

View file

@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include "alloc-util.h"
#include "bus-dump.h"

View file

@ -1,9 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
/***
***/
#include <stdbool.h>
#include <stdio.h>

View file

@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <errno.h>
#include <stdarg.h>

View file

@ -1,9 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
/***
***/
#include <stdbool.h>
#include "sd-bus.h"

View file

@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <errno.h>
#include <string.h>

View file

@ -1,9 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
/***
***/
#include "macro.h"
int bus_gvariant_get_size(const char *signature) _pure_;

View file

@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include "alloc-util.h"
#include "bus-internal.h"

View file

@ -1,9 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
/***
***/
#include <pthread.h>
#include <sys/socket.h>

View file

@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <stdio_ext.h>

View file

@ -1,9 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
/***
***/
#include <stdio.h>
#include "sd-bus.h"

View file

@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#if HAVE_VALGRIND_MEMCHECK_H
#include <valgrind/memcheck.h>

View file

@ -1,9 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
/***
***/
#include "sd-bus.h"
#define MEMFD_CACHE_MAX 32

View file

@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <stdio_ext.h>

View file

@ -1,9 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
/***
***/
#include "sd-bus.h"
#include "hashmap.h"

View file

@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <errno.h>
#include <fcntl.h>

View file

@ -1,9 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
/***
***/
#include <byteswap.h>
#include <stdbool.h>
#include <sys/socket.h>

View file

@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include "alloc-util.h"
#include "bus-internal.h"

View file

@ -1,9 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
/***
***/
#include "bus-internal.h"
int bus_process_object(sd_bus *bus, sd_bus_message *m);

View file

@ -1,9 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
/***
***/
#include <endian.h>
#include "macro.h"

View file

@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <util.h>

View file

@ -1,9 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
/***
***/
#include <stdbool.h>
bool signature_is_single(const char *s, bool allow_dict_entry);

View file

@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include "sd-bus.h"

View file

@ -1,9 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
/***
***/
#include "sd-bus.h"
#include "bus-internal.h"

View file

@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <endian.h>
#include <poll.h>

View file

@ -1,9 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
/***
***/
#include "sd-bus.h"
void bus_socket_setup(sd_bus *b);

View file

@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include "sd-bus.h"

View file

@ -1,8 +1,5 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
/***
***/
void bus_track_dispatch(sd_bus_track *track);
void bus_track_close(sd_bus_track *track);

View file

@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <errno.h>

View file

@ -1,9 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
/***
***/
#include <stdbool.h>
#include "macro.h"

View file

@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <endian.h>
#include <netdb.h>

View file

@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <sys/wait.h>

View file

@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <fcntl.h>
#include <pthread.h>

View file

@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include "sd-bus.h"

View file

@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include "sd-bus.h"

View file

@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#if HAVE_GLIB
#include <glib.h>

View file

@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include "bus-introspect.h"
#include "log.h"

View file

@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <math.h>
#include <stdlib.h>

View file

@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include "bus-match.h"
#include "bus-message.h"

View file

@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <pthread.h>
#include <stdlib.h>

View file

@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <pthread.h>
#include <stdlib.h>

View file

@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include "bus-internal.h"
#include "bus-signature.h"

View file

@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <errno.h>
#include <sys/socket.h>

View file

@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <pthread.h>

View file

@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <errno.h>
#include <limits.h>

View file

@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include "sd-device.h"
int device_enumerator_scan_devices(sd_device_enumerator *enumeartor);

View file

@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include "hashmap.h"
#include "set.h"

View file

@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include <inttypes.h>
#include <stdbool.h>
#include <sys/types.h>

View file

@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include "util.h"
#define FOREACH_DEVICE_PROPERTY(device, key, value) \

View file

@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <sys/epoll.h>
#include <sys/timerfd.h>

View file

@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <sys/wait.h>

View file

@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include "sparse-endian.h"
#include "util.h"

View file

@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include "sd-hwdb.h"
#include "util.h"

View file

@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <errno.h>
#include <fcntl.h>

View file

@ -1,9 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
/***
***/
#include <stdbool.h>
#include "sd-id128.h"

View file

@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <errno.h>
#include <fcntl.h>

View file

@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <errno.h>
#include <poll.h>

View file

@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <poll.h>
#include <string.h>

View file

@ -1,9 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
/***
***/
#include "sd-netlink.h"
#include "in-addr-util.h"

View file

@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include <linux/netlink.h>
#include "sd-netlink.h"

View file

@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include "macro.h"
enum {

View file

@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include "sd-netlink.h"
#include "util.h"

View file

@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include "af-list.h"
#include "alloc-util.h"

View file

@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include "alloc-util.h"
#include "fd-util.h"

View file

@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include "sd-network.h"
bool network_is_online(void);

View file

@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include "sd-path.h"

View file

@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include <errno.h>
#include <poll.h>

View file

@ -1,6 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
***/
#include "sd-utf8.h"

View file

@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include "libudev.h"
#include "sd-device.h"

View file

@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include <signal.h>
#include <stdbool.h>
#include <stdint.h>

Some files were not shown because too many files have changed in this diff Show more