[WIP] Refactor project
There are many problems with the way the current version is provided and maintained. This commit or series of commits will fix this.
This commit is contained in:
1 parent
f5ab5f3f27
commit
173a82b9d1
63 files changed
+2663
-2239
No files matched your search
@@ -3,7 +3,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
void rse_read_file(const char* file_name, long* bytes_count, char* buffer)
|
||||
void read_file(const char* file_name, size_t* bytes_count, char* buffer)
|
||||
{
|
||||
FILE* file;
|
||||
|
||||
@@ -24,7 +24,7 @@ void rse_read_file(const char* file_name, long* bytes_count, char* buffer)
|
||||
fclose(file);
|
||||
}
|
||||
|
||||
void rse_write_to_file(const char* file_name, long bytes_count, char* buffer)
|
||||
void write_to_file(const char* file_name, size_t bytes_count, char* buffer)
|
||||
{
|
||||
FILE* file;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "rse_task.h"
|
||||
#include "task.h"
|
||||
|
||||
uint8_t rse_create_task(rse_thread_t* thread_id, thread_worker_t callback, void* args)
|
||||
uint8_t create_task(thread_t* thread_id, thread_worker_t callback, void* args)
|
||||
{
|
||||
uint8_t result = 0;
|
||||
|
||||
@@ -9,7 +9,7 @@ uint8_t rse_create_task(rse_thread_t* thread_id, thread_worker_t callback, void*
|
||||
return result; //TODO: Do error handling
|
||||
}
|
||||
|
||||
uint8_t rse_task_join(rse_thread_t* thread_id)
|
||||
uint8_t task_join(thread_t* thread_id)
|
||||
{
|
||||
uint8_t result = 0;
|
||||
|
||||
@@ -18,7 +18,7 @@ uint8_t rse_task_join(rse_thread_t* thread_id)
|
||||
return result; //TODO: Do error handling
|
||||
}
|
||||
|
||||
void rse_task_exit()
|
||||
void task_exit()
|
||||
{
|
||||
pthread_exit(NULL);
|
||||
}
|
||||
Reference in new issue
Block a user