-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support Write Protect in Disk2 load dialog, etc
Also fixes a crashing bug in cg.c, and various other bits.
- Loading branch information
Showing
21 changed files
with
444 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/* | ||
* mii_loadbin.c | ||
* | ||
* Copyright (C) 2023 Michel Pollet <[email protected]> | ||
* | ||
* SPDX-License-Identifier: MIT | ||
*/ | ||
|
||
|
||
#include <stdio.h> | ||
#include <stdlib.h> | ||
#include <string.h> | ||
#include <ctype.h> | ||
#include <unistd.h> | ||
#include <sys/inotify.h> | ||
#include <pthread.h> | ||
|
||
#include "mii.h" | ||
#include "mii_bank.h" | ||
#include "mii_mui_settings.h" | ||
|
||
|
||
typedef struct mii_loadbin_t { | ||
mii_t * mii; | ||
pthread_t thread; | ||
|
||
mii_loadbin_conf_t conf; | ||
} mii_loadbin_t; | ||
|
||
static mii_loadbin_t * _mii_loadbin = NULL; | ||
|
||
static void * | ||
mii_thread_loadbin( | ||
void *arg) | ||
{ | ||
|
||
return NULL; | ||
} | ||
|
||
mii_loadbin_t * | ||
mii_loadbin_start( | ||
struct mii_t *mii, | ||
struct mii_loadbin_conf_t *conf) | ||
{ | ||
mii_loadbin_t * res = NULL; | ||
if (_mii_loadbin) { | ||
return _mii_loadbin; | ||
} | ||
_mii_loadbin = res = calloc(1, sizeof(*res)); | ||
res->mii = mii; | ||
res->conf = *conf; | ||
|
||
pthread_create(&res->thread, NULL, mii_thread_loadbin, res); | ||
|
||
return res; | ||
} |
Oops, something went wrong.