Skip to content
Snippets Groups Projects
Commit 5148204c authored by GANIZADE NAZIM's avatar GANIZADE NAZIM
Browse files

Merge branch 'headers' into 'main'

Headers of some essential modules added

See merge request !1
parents a981d695 1897644d
Branches
Tags
1 merge request!1Headers of some essential modules added
// parser.h
#ifndef PARSER_H
#define PARSER_H
#include "process.h"
int parse_workload(const char *filename, workload_item *items, size_t *count);
#endif
#ifndef PROCESS_H
#define PROCESS_H
#include <stddef.h>
typedef struct {
int pid;
int ppid;
size_t ts;
size_t tf;
size_t idle;
char cmd[32]; // assuming max command length
int prio;
} workload_item;
#endif
// scheduler.h
#ifndef SCHEDULER_H
#define SCHEDULER_H
#include "process.h"
void run_scheduler(workload_item *items, size_t count);
#endif
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment