chiark / gitweb /
api: add C++ guards
[elogind.git] / src / systemd / sd-bus-vtable.h
index 82e50d24c83f7f93951eda52fd3172c5b6176e2c..d1642bae5ec69fae0fc41bb8d74f55c1bf2d71ca 100644 (file)
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 typedef struct sd_bus_vtable sd_bus_vtable;
 
 #include "sd-bus.h"
@@ -124,4 +128,8 @@ struct sd_bus_vtable {
                 .type = _SD_BUS_VTABLE_END,                             \
         }
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif