Archived
1
0
Fork 0
This repository has been archived on 2026-05-10. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
archived/test/t_stdout.c
2010-10-22 13:59:11 +02:00

33 lines
533 B
C

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "../src/output/output.h"
#include "../src/notify/event.h"
int main(int argc, char *argv[]) {
int r;
notify_event ev;
ev.path = "/home/kalle/bilder";
ev.filename = "kalle.jpg";
ev.type = NOTIFY_CREATE;
output_init(NULL);
r = output_process(&ev);
ev.type = NOTIFY_DELETE;
r = output_process(&ev);
if (r != 0)
printf("Error: %s\n", output_error(r));
output_exit();
return 0;
}