Skip to content

Commit a24d863

Browse files
Make more consistent with Amazon impl?
1 parent 0163f8a commit a24d863

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

extractor/main.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,7 @@ void remove_file(const char* path, const char* filename, char* uuid) {
377377

378378
int extractor(const struct scanner_event* event) {
379379
Log("Extractor called with event type %i\n", event->event_type);
380+
Log("\n.event_type=%i\n.filename=%s\n.glob=%s\n.lipchandle=%u\n.path=%s\n.uuid=%s\n\n", event->event_type, event->filename, event->glob, event->lipchandle, event->path, event->uuid);
380381
switch (event->event_type) {
381382
case SCANNER_ADD:
382383
index_file(event->path, event->filename, true);
@@ -389,6 +390,10 @@ int extractor(const struct scanner_event* event) {
389390
remove_file(event->path, event->filename, event->uuid); // Remove SDR and entry
390391
index_file(event->path, event->filename, false); // Re-index with new metadata and such
391392
break;
393+
case SCANNER_ADD_THUMB:
394+
break;
395+
case SCANNER_UPDATE_THUMB:
396+
break;
392397
default:
393398
// Don't run install hooks and such willy-nilly
394399
//index_file(event->path, event->filename);

tests/extractor_test_unknown_event.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ int main()
1616
scanner_gen_uuid(uuid, 37);
1717

1818
struct scanner_event event = {
19-
.event_type = 99,
19+
.event_type = 3,
2020
.path = ".",
2121
.lipchandle = NULL,
2222
.filename = "test.sh",

0 commit comments

Comments
 (0)