summaryrefslogtreecommitdiff
path: root/i
diff options
context:
space:
mode:
authorburg2004-09-23 22:27:30 +0000
committerburg2004-09-23 22:27:30 +0000
commitce1909a893f3a4c799eb2f876b78cfb0cf16cbf6 (patch)
tree7b29cb4df4a77c91dde2acd353044156a49c7754 /i
parent69e32322c8a0656ed61ec7c3619e586380a6fefd (diff)
Plannification d'ajout d'un systeme d'enregistrement
Diffstat (limited to 'i')
-rw-r--r--i/serialplot/serialplot.c1
-rw-r--r--i/serialplot/serialplot_io.c29
-rw-r--r--i/serialplot/serialplot_io.h3
3 files changed, 32 insertions, 1 deletions
diff --git a/i/serialplot/serialplot.c b/i/serialplot/serialplot.c
index ec412e2..2e59e71 100644
--- a/i/serialplot/serialplot.c
+++ b/i/serialplot/serialplot.c
@@ -2,6 +2,7 @@
* faire un système d'échelle plus lisible : partiellement fait
* intégrer la lecture serie dans le programme : OK
* plus de protection sur l'option t :
+ * Faudrait rajouté: une fonction de sauvegarde
*/
#include <SDL.h>
diff --git a/i/serialplot/serialplot_io.c b/i/serialplot/serialplot_io.c
index fa45433..56b4fd0 100644
--- a/i/serialplot/serialplot_io.c
+++ b/i/serialplot/serialplot_io.c
@@ -52,3 +52,32 @@ write_serial(int fd,char *command)
{
return fputs(command,fdopen(fd,"r+"));
}
+
+
+void
+find_name(char *filename)
+{
+
+//#include <stdio.h>
+//#include <sys/types.h>
+//#include <dirent.h>
+//
+//int
+//main (void)
+//{
+// DIR *dp;
+// struct dirent *ep;
+//
+// dp = opendir ("./");
+// if (dp != NULL)
+// {
+// while (ep = readdir (dp))
+// puts (ep->d_name);
+// (void) closedir (dp);
+// }
+// else
+// perror ("Couldn't open the directory");
+//
+// return 0;
+//}
+}
diff --git a/i/serialplot/serialplot_io.h b/i/serialplot/serialplot_io.h
index f7780c6..1dd9a31 100644
--- a/i/serialplot/serialplot_io.h
+++ b/i/serialplot/serialplot_io.h
@@ -9,6 +9,7 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include <dirent.h>
#define BAUDRATE B115200
@@ -17,5 +18,5 @@ extern struct termios oldconf;
int init_serial (char *cvalue);
void close_serial(int fd);
int write_serial(int fd,char *command);
-
+void find_name(char *filename);
#endif