| Age | Commit message (Collapse) | Author |
|
Added option to change mirror, tmp, staging directoryfrom the user
interface of the pkgman library. Added TRY and TRY_IFNOT macros for
better code readability.
|
|
Creates an default option to heap-init string view to be used by
complex operation where memory needs to be fine-grained.
|
|
cookbook_recipe_run() now returns the return code of fork() to manage
success state.
|
|
Seperates cryptographic verification from pkgman_upstream_integrity_download
to its own function for better code structure, and to create space for future
cryptographic functions.
|
|
Added url structures, cookbook, archive management to automate
the installation process of packages. Refactored main logic from
main.c to pkgman.c for cleaner seperation of concerns and future
library integration of pkgman to other projects.
|
|
Add more error codes to prepare for future improvements. Add FORKERR,
INTEGRITYERR, URLPATHERR, URLINITERR.
|
|
Creates a write_opts argument in net_send_request() where you can
specify WRITE_OPT_MEMORY or WRITE_OPT_FILE. Modifies existing calls.
|
|
Linked list now implements FREE, ADD, functionalities. This
modification allows for easier use of linked list and less bugs.
The linked list functions now also have header and implementation
macros to allow for external use of linked list functions in other
translation units.
|
|
SV() no longer calls sv_create, instead initializes the struct
in-place.
|
|
Optimized and bug-prone equality operation for string_view struct.
This function will replace the equality checks operations between
char* + string_view, and string_view + string_view.
|
|
Added error returns to subcommands and searching utility in main()
and error codes PKGNOTFOUND and USAGE were added to err.h. The
functions will now be able to return error states to main().
|
|
Added a string view copy function to lib/sv.h. The function is
created to make it easier to copy string_views, and it is user's
responsibility to free the string_view's.
|
|
Remove userdata argument from um_init() temporarily.
|
|
um.h and um.c is modified to accept the linked list ll_manifest
inside um_user_data struct. um_on_kv() now adds to the linked
list in parser->userdata.
|
|
O(n) add linked list was created with an add function. A foreach
macro is also implemented as LL_FOREACH(). This linked list is
temporary, and consists only of nodes.
|
|
|