]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxccontainer.h: Move new fields to the end 4343/head
authorStéphane Graber <stgraber@stgraber.org>
Thu, 31 Aug 2023 04:46:14 +0000 (00:46 -0400)
committerStéphane Graber <stgraber@stgraber.org>
Thu, 31 Aug 2023 04:46:14 +0000 (00:46 -0400)
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
src/lxc/lxccontainer.h

index a87941d5270894d4b1a2a580ed1ebabfd803cc46..4c06183c969a4d6c0e6e92ba556646d64733adc5 100644 (file)
@@ -94,12 +94,6 @@ struct lxc_container {
         */
        struct lxc_conf *lxc_conf;
 
-       /*!
-        * \private
-        * SO_RCVTIMEO for LXC client_fd socket.
-        */
-       int rcv_timeout;
-
        /* public fields */
        /*! Human-readable string representing last error */
        char *error_string;
@@ -873,17 +867,6 @@ struct lxc_container {
         */
        int (*seccomp_notify_fd_active)(struct lxc_container *c);
 
-       /*!
-        * \brief Set response receive timeout for LXC commands
-        *
-        * \param c Container
-        * \param timeout Seconds to wait before returning false.
-        *  (-1 to wait forever).
-        *
-        * \return \c true on success, else \c false.
-        */
-       bool (*set_timeout)(struct lxc_container *c, int timeout);
-
        /*!
         * \brief Retrieve a pidfd for the container's init process.
         *
@@ -901,6 +884,23 @@ struct lxc_container {
         * \return Mount fd of the container's devpts instance.
         */
        int (*devpts_fd)(struct lxc_container *c);
+
+       /*!
+        * \private
+        * SO_RCVTIMEO for LXC client_fd socket.
+        */
+       int rcv_timeout;
+
+       /*!
+        * \brief Set response receive timeout for LXC commands
+        *
+        * \param c Container
+        * \param timeout Seconds to wait before returning false.
+        *  (-1 to wait forever).
+        *
+        * \return \c true on success, else \c false.
+        */
+       bool (*set_timeout)(struct lxc_container *c, int timeout);
 };
 
 /*!