freebsd11_network: Move callout struct definition to _callout.h.

This is how FreeBSD does it.
This commit is contained in:
Augustin Cavalier 2018-10-27 15:10:43 -04:00
parent c1e79d9431
commit 05cf5e3d73
2 changed files with 27 additions and 16 deletions

View File

@ -0,0 +1,26 @@
/*
* Copyright 2018, Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _FBSD_COMPAT_SYS__CALLOUT_H_
#define _FBSD_COMPAT_SYS__CALLOUT_H_
#include <util/list.h>
#include <sys/queue.h>
#include <sys/_mutex.h>
struct callout {
struct list_link link;
bigtime_t due;
uint32 flags;
void * c_arg;
void (*c_func)(void *);
struct mtx * c_mtx;
int c_flags;
};
#endif /* _FBSD_COMPAT_SYS__CALLOUT_H_ */

View File

@ -9,22 +9,7 @@
#include <sys/haiku-module.h>
#include <sys/queue.h>
#include <util/list.h>
struct callout {
struct list_link link;
bigtime_t due;
uint32 flags;
void * c_arg;
void (*c_func)(void *);
struct mtx * c_mtx;
int c_flags;
};
#include <sys/_callout.h>
#define CALLOUT_MPSAFE 0x0008 /* deprecated */