-
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.
Add no_ip.c since ip.c is POSIX-only, also add new USB api from libus…
…b.c to libwpd.c
- Loading branch information
Showing
8 changed files
with
71 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// Include this if you wish to never use TCP/IP | ||
// Copyright 2022 by Daniel C (https://github.com/petabyt/camlib) | ||
#include <camlib.h> | ||
#include <ptp.h> | ||
|
||
int ptpip_new_timeout_socket(char *addr, int port) { | ||
return -1; | ||
} | ||
|
||
int ptpip_connect(struct PtpRuntime *r, char *addr, int port) { | ||
return -1; | ||
} | ||
|
||
int ptpip_connect_events(struct PtpRuntime *r, char *addr, int port) { | ||
return -1; | ||
} | ||
|
||
int ptpip_close(struct PtpRuntime *r) { | ||
return -1; | ||
} | ||
|
||
int ptpip_cmd_write(struct PtpRuntime *r, void *data, int size) { | ||
return -1; | ||
} | ||
|
||
int ptpip_cmd_read(struct PtpRuntime *r, void *data, int size) { | ||
return -1; | ||
} | ||
|
||
int ptpip_event_send(struct PtpRuntime *r, void *data, int size) { | ||
return -1; | ||
} | ||
|
||
int ptpip_event_read(struct PtpRuntime *r, void *data, int size) { | ||
return -1; | ||
} |
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,9 @@ | ||
#include <camlib.h> | ||
|
||
int ptp_pack_fuji_object_info(struct PtpRuntime *r, struct PtpObjectInfo *oi, void *buffer, int max) { | ||
void **ptr = (void **)(&buffer); | ||
|
||
memcpy(*ptr, oi, PTP_FUJI_OBJ_INFO_VAR_START); | ||
(*ptr) += PTP_FUJI_OBJ_INFO_VAR_START; | ||
|
||
} |
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