]> rtime.felk.cvut.cz Git - frescor/fwp.git/blobdiff - fwp/lib/fwp/fwp_utils.h
Bug fix in vres tx thread. Fixed budgeting.
[frescor/fwp.git] / fwp / lib / fwp / fwp_utils.h
index 62ef25f749313ecaf9e2c0126f6501b83df6805c..c99ec65fdbc13d66f34dda5250f4424615e26926 100644 (file)
@@ -128,16 +128,15 @@ _fwp_recv(int s, void *buf, size_t len, int flags)
        return ret;
 }
 
-inline void fwp_timespec_add (struct timespec *sum, const struct timespec *left,
-             const struct timespec *right);
-
+inline void fwp_timespec_add (struct timespec *sum, const struct timespec *left, 
+                               const struct timespec *right);
 inline void fwp_timespec_sub (struct timespec *diff, const struct timespec *left,
-             const struct timespec *right);
+                               const struct timespec *right);
+void fwp_timespec_modulo(struct timespec *dividend, struct timespec *dividor,
+                               struct timespec *remainder);
 
 int fwp_set_rt_prio(int priority);
-
 int fwp_create_unix_socket(char *path, struct sockaddr_un *addr);
-
 int fwp_create_inet_socket(unsigned int port, struct sockaddr_in *addr);
 
 #endif /* _FWP_UTILS_H */