Add a basic .clang-tidy file and fix typedef warnings
[lttng-tools.git] / src / common / fs-handle-internal.hpp
index 08824673d3e1e93165dabe2e0aa47739eb989689..5d1e1340972a1828c13f1917e315b5c2ba3b3ee1 100644 (file)
@@ -18,10 +18,10 @@ struct fs_handle;
  * to use an fd-tracker.
  */
 
-typedef int (*fs_handle_get_fd_cb)(struct fs_handle *);
-typedef void (*fs_handle_put_fd_cb)(struct fs_handle *);
-typedef int (*fs_handle_unlink_cb)(struct fs_handle *);
-typedef int (*fs_handle_close_cb)(struct fs_handle *);
+using fs_handle_get_fd_cb = int (*)(struct fs_handle *);
+using fs_handle_put_fd_cb = void (*)(struct fs_handle *);
+using fs_handle_unlink_cb = int (*)(struct fs_handle *);
+using fs_handle_close_cb = int (*)(struct fs_handle *);
 
 struct fs_handle {
        fs_handle_get_fd_cb get_fd;
This page took 0.022767 seconds and 4 git commands to generate.