Commit Graph

42 Commits

Author SHA1 Message Date
Levi Neely 50e49d308c ptools namespace (move to putil namespace someday) 2025-03-01 21:52:07 +01:00
Levi Neely 1b5e4392d4 ptimer namespace 2025-03-01 21:48:48 +01:00
Levi Neely 0c34b53384 pscanner.c => psuggest namespace 2025-03-01 21:45:34 +01:00
Levi Neely 2c8d978c72 prunratelimited => prun with throttling 2025-03-01 21:41:35 +01:00
Levi Neely 0c55d738d4 ppathstatus namespace 2025-03-01 21:33:47 +01:00
Levi Neely d4e89dd448 ppassword namespace 2025-03-01 21:26:17 +01:00
Levi Neely 70a4cfdf51 ppagecache namespace 2025-03-01 21:21:31 +01:00
Levi Neely 52386ecb64 pp2p namespace and cleanup 2025-03-01 21:15:53 +01:00
Levi Neely 4eef4289f3 prpc namespace (got rid of confusing "overlay") 2025-03-01 21:07:27 +01:00
Levi Neely a362cd6733 pnotify formatting 2025-03-01 20:53:04 +01:00
Levi Neely 36fb8d3f52 pnotify namespace 2025-03-01 20:47:36 +01:00
Levi Neely 7c19e8f919 plocks namespace 2025-03-01 20:43:26 +01:00
Levi Neely 990fde0b64 pfscrypto namespace 2025-03-01 20:34:31 +01:00
Levi Neely 97c10b3870 pfoldersync API, start chipping away at the psynclib monster 2025-03-01 20:14:04 +01:00
Levi Neely fef0033fb9 pfileops namespace, fix header inlining abuse 2025-03-01 19:14:11 +01:00
Levi Neely e48fda52a0 pstatus namespace and cleanup 2025-03-01 18:57:55 +01:00
Levi Neely 5c088cb260 pdownload namespace and cleanup 2025-03-01 18:15:33 +01:00
Levi Neely d76916d644 pdiff namespace 2025-03-01 18:06:51 +01:00
Levi Neely f491fcc6f9 pdevmon namespace and cleanup 2025-03-01 18:02:40 +01:00
Levi Neely 9df41fc2be pcrypto more consistency 2025-03-01 17:57:38 +01:00
Levi Neely 2c2f31b45e pcrypto consistency 2025-03-01 17:56:17 +01:00
Levi Neely c797aa2617 pcrypto cleanup 2025-03-01 17:54:03 +01:00
Levi Neely 21e542383f pcrypto namespace 2025-03-01 17:40:06 +01:00
Levi Neely 62d184ead8 pdeflate namespace and cleanup 2025-03-01 15:34:04 +01:00
Levi Neely fe309bab20 pcryptofolder missed a rename 2025-03-01 15:29:06 +01:00
Levi Neely c56dcb8315 pcryptofolder namespace and cleanup 2025-03-01 15:27:50 +01:00
Levi Neely c2cc0e9590 refactor pcallbacks into pqevent and ptevent 2025-03-01 14:43:07 +01:00
Levi Neely 4733b575a4 pcache namespace and cleanup 2025-03-01 12:46:17 +01:00
Levi Neely 94d960655e ptask namespace and cleanup 2025-03-01 11:07:06 +01:00
Levi Neely 4dbea61178 papi namespace, remove some transient dependencies 2025-03-01 00:19:24 +01:00
Levi Neely 2b6508a275
eliminate pcompat (#92)
* code cleanup and removal
- remove useless wrapper functions
- remove obfuscating typedefs
- code reorganization and reformatting
- function renames for clarification

* prepare pcompat.h for decomposition

* remove dead function psync_rebuild_icons, reorganize pfsstatic.c headers

* separate pdevice from pcompat

* reorg function prototypes, remove more compat stuff

* renamed mutex for brevity

* remove dead debug code; plibs version is more sophisticated

* remove dead code, stale comments

* moved psync_delete_cached_crypto_keys to psynclib

* forgot to remove the function prototype from pdiff.h

* reorganized functions by accessibility, inlined useless psync_cache_contacts function

* remove unused header

* ppath object decomposed from pcompat

* ppath namespace

* ppath struct renames

* ppath final cleanup

* refactor, remove compatibility code

* format

* prun decomposed from pcompat for thread mgmt

* slim down prun.c

* remove useless comments

* move pagesize to pmemlock, pmemlock namespace

* pmem decomposed from pcompat, pmem namespace

* decompose psys from pcompat

* fix psys function names, remove more compatibility junk

* prand decomposed from pcompat

* psock decomposed from pcompat

* types renamed for ns consistency, brevity

* cleanup psock, remove unused proxy code

* remove unused headers psock

* putil for utility macros and functions

* forgot to move some psock constants

* move time macro to psys

* eliminate pcompat completely; new pfile namespace

* cleanup
- moved thread name definition
- explicit externs in implementation instead of headers for now
- better extern name
2025-02-28 22:47:32 +01:00
Levi Neely c04f887249
prevent multiple execution of psync_fs_do_stop, and use atexit in the signal handler (#91) 2025-02-26 20:31:25 +01:00
Levi Neely f87367211d
migrate mbedtls to 3.x (#89)
* migrate mbedtls to 3.x

* update github c-cpp workflow to use trixie

* update README and container-build
- default image and tag for container-build is now debian:trixie
- README for debian bookworm users

* final readme tweaks

* second attempt to update ci build workflow

* third attempt on ci build workflow

* fix deprecated calls in pssl.c
2025-02-26 19:18:01 +01:00
Levi Neely 5ecece7547
#64 simplify messaging and #71 deserialize failed (#88)
* small lsp error fixes

* simplify messaging and remove serialize/deserialize
- messaging is reverted to API requests and responses only
- remove serialize and deserialize functions
- implement shared memory (pshm) for overlay callback return values

* fix memory leak

Fix #64 and #71
2025-02-25 09:46:46 +01:00
Levi Neely 8d4baaa1b4
fix sync add command, help text for other cmds (#82)
Problem was that the way the add sync folder command was handling local and remote path was based on the previous CLI processor, i.e., one string for all args. This patch updates it for CLI11.hpp
2024-12-14 11:56:30 +01:00
Levi Neely ca80afd658
Appease the LSP server (#73)
* newline conversions

* formatting changes and lsp appeasement
2024-11-26 19:36:49 +01:00
Levi Neely c687484707
Implement add, remove, and list sync folder commands (#59)
* list_sync_folders seems to work

* list_sync_folders breaks with sync folders in db; message size problem?

* fixed sync folders list

* fix double free and buffer overflow

* wip: add and remove sync folder; need to fix request->value in instance_thread

* remove comment

* removed pclsync_lib_c.{h,cpp}

* cleanup get_answer_to_request

* update comment

* changed reply struct to type response containing payload and msg

* cleanup

* refactored overlay_client, and poverlay; added docs

* better naming

* sock path in poverlay_protocol.h

* clarify comment

* refactor psync_overlay_get_response

* clarifications

* response_messages work with and without payload

* removed commented code

* syncadd works, but i need to fix the error handling

* remove sync folder

* remove commented code, change printfs to debug or simply remove

* removed unnecessary print

* removed more prints

* removed dead var

* update error handling in add_sync_folder, fix memleak

* simplified finalize
2024-08-25 21:54:41 +02:00
Levi Neely cb8f905298
fixed (#55) 2024-08-20 22:26:20 +02:00
Levi Neely ed06599b7d
Bug fixes, build containers, minor updates (#54)
* openssl is a dependency

* openssl is not a real dpendency

* static link by default

* wip: build containers

* rm comments

* build containers, fix DEADLYSIGNAL on run with no args

* debug tools in deb/ubuntu, fix #44

* no slack container :(

* ensure P_LINUX_OS always defined

* error check fuse unmount ops

* fsanitize=thread temporarily

* undo

* clang static analysis

* fix dead assignment

* makefile quality of life stuff

* make install and uninstall; ignore scan results

* addressed dead assignments from static analysis

* debug and release builds possible

* gcc still default compiler

* debug symbols on debug build only
2024-08-20 22:00:38 +02:00
Levi Neely 0a3b596492
Merge pclsync and poverlay_linux (#46)
* fixed 2 of the 3 memory leaks

* fixed more memleaks

* more leaks

* another one

* BUGHUNT mode to look for more mem leaks

* merge poverlay_linux and pclsync
2024-08-18 15:09:21 +02:00
Levi Neely 8d3c496754
memleak fixes (#40)
* fixed 2 of the 3 memory leaks

* fixed more memleaks

* more leaks

* another one

* BUGHUNT mode to look for more mem leaks
2024-08-15 23:06:55 +02:00
Levi Neely bec97722cd
reorg source tree, link system mbedtls (#38)
* reorg source tree, link system mbedtls

* remove cmakelists.txt

* update ci workflow

* -Werror to -Wall

* libpcloudcc_so in makefile

* single makefile works

* removed extra makefiles
2024-08-15 19:49:57 +02:00