Commit graph

127 commits

Author SHA1 Message Date
Omar Rizwan bc3b35487d extension: Change some names. 2019-02-28 01:22:33 -08:00
Omar Rizwan 840526a17e extension: Add /text route. 2019-02-28 01:19:37 -08:00
Omar Rizwan a3f25d346f Add tabs/by-title. Fix symlink stuff to make it work?
FUSE readlink needing to return 0 + getattr needing to return correct
st_size was _not_ obvious, lol.
2019-02-28 01:05:28 -08:00
Omar Rizwan b18fc10e14 Report ENOTSUP for Mac xattr files.
Lets me open png files (in Preview) in tree/, at least!
2019-02-27 23:38:12 -08:00
Omar Rizwan 73f8bc754e base64 hack to handle binary files.
add memory fences because why not.
2019-02-27 22:06:37 -08:00
Omar Rizwan 74c794d75c extension: Can read (some) resources in tree/ now!
Also clean up some dead code.
2019-02-25 23:08:52 -08:00
Omar Rizwan 9f235eb438 fs: killall tabfs. 2019-02-25 20:16:01 -08:00
Omar Rizwan d37bd273d7 Add README.md. 2019-02-25 20:13:58 -08:00
Omar Rizwan e48e72aa68 fs: Trying to fix submodules. 2019-02-25 20:03:31 -08:00
Omar Rizwan b55a65081c fs: Trying to fix mmx submodule. 2019-02-25 20:02:56 -08:00
Omar Rizwan cca53bc199 fs: Some comments. 2019-02-25 19:57:07 -08:00
Omar Rizwan a8ce61d9a1 fs: Fix formatting. 2019-02-25 19:29:04 -08:00
Omar Rizwan 784ec83696 Rewrite and refactor C half. No more shared memory! It's fast!
Three C modules:
- tabfs (main thread; talks to FUSE)
- common (tabfs<->ws communication helpers)
- ws (side thread; talks to browser over WebSocket)

It's single-threaded, but I don't think that matters anyway.
2019-02-25 13:02:25 -08:00
Omar Rizwan 90181466bd Add opendir/releasedir support. Relieve ws thread CPU usage. 2018-11-29 09:53:03 -08:00
Omar Rizwan ed5419ae41 Toolbar icon! Simplify file defns! Pretty cool! 2018-11-28 21:43:00 -08:00
Omar Rizwan e734173e6f URL and title kind of work.
direct_io option makes it reliably change.
Big speedup from... removing prints. Did I even need multithreading?
2018-11-24 10:58:33 -08:00
Omar Rizwan c8fad64066 Multithreaded. Is this gonna help?
Only tested with single-thread mode still on so far.
2018-11-24 00:33:04 -08:00
Omar Rizwan 528467a55b open/read work on url file!!!
Use string keys for opcodes to simplify the code.
2018-11-23 22:15:29 -08:00
Omar Rizwan b6f46e166d Checkpoint. Just access JSON directly in FUSE handlers. 2018-11-22 02:52:54 -08:00
Omar Rizwan 66041e333c Route tree! 2018-11-14 23:52:26 -08:00
Omar Rizwan 828a1c33d0 It works! I can hot swap the WS connection! 2018-11-14 01:19:10 -08:00
Omar Rizwan 8e4e7a2a95 Starting to multithread the server. 2018-11-13 00:58:12 -08:00
Omar Rizwan 47d855c730 Tabs subfolder. 2018-11-11 16:31:02 -08:00
Omar Rizwan bf631cfc0f Can ls and see hello.txt. 2018-11-11 16:18:21 -08:00
Omar Rizwan 5c2b15068e Groundwork for response parsing. 2018-11-11 11:44:36 -08:00
Omar Rizwan 4ca75894c1 WebSocket communication seems to work. 2018-11-11 05:32:44 -08:00
Omar Rizwan 3708425a99 Initial commit. C stub with Web grafted on. 2018-11-10 00:20:57 -08:00