X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/hmcfgusb/blobdiff_plain/0edcd7f291b728aee5e0c99434d2d8d9d81f6af6..ee8d07d894fa10e47b4441a4db473496c701cb0f:/culfw.h diff --git a/culfw.h b/culfw.h index 29aacaf..9c98eb7 100644 --- a/culfw.h +++ b/culfw.h @@ -1,6 +1,6 @@ /* culfw driver * - * Copyright (c) 2014 Michael Gernoth + * Copyright (c) 2014-16 Michael Gernoth * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to @@ -32,6 +32,7 @@ struct culfw_dev { }; struct culfw_dev *culfw_init(char *device, uint32_t speed, culfw_cb_fn cb, void *data); -int culfw_send(struct culfw_dev *dev, char *cmd, int cmdlen); +int culfw_send(struct culfw_dev *dev, const char *cmd, int cmdlen); int culfw_poll(struct culfw_dev *dev, int timeout); void culfw_close(struct culfw_dev *dev); +void culfw_flush(struct culfw_dev *dev);