7/21
This commit is contained in:
@@ -60,6 +60,7 @@ void warnlog(char MSG[]);
|
||||
|
||||
/*
|
||||
* errlog
|
||||
*
|
||||
* DESCRIPTION: Errlog outputs a stylized error message. It follows Glacier's uniform CLI style.
|
||||
* PARAMETERS:
|
||||
* char MSG[] -> The message to output
|
||||
|
||||
72
include/glacier_pkgops.h
Normal file
72
include/glacier_pkgops.h
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* glacier_pkgops.h - Package-related function declarations for libglacier
|
||||
*
|
||||
* This file is part of Glacier.
|
||||
*
|
||||
* Glacier is free software: you can redistribute it and/or modify it under the terms of the
|
||||
* GNU General Public License as published by the Free Software Foundation, either
|
||||
* version 3 of the License, or (at your option) any later version.
|
||||
*
|
||||
* Glacier is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
||||
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
* PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with Glacier. If
|
||||
* not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef GLACIERPKGOPS_H_
|
||||
#define GLACIERPKGOPS_H_
|
||||
|
||||
/*
|
||||
* parse_pkg_file
|
||||
*
|
||||
* DESCRIPTION: Parse_pkg_file parses a Glacier-compatible package.
|
||||
* PARAMETERS:
|
||||
* char fname[] -> The package file to parse
|
||||
* RETURN VAUES:
|
||||
* 0 on success, 1 on failure
|
||||
* CAVEATS:
|
||||
* None.
|
||||
* EXAMPLE:
|
||||
* init_config();
|
||||
*/
|
||||
|
||||
int parse_pkg_file();
|
||||
|
||||
/*
|
||||
* download_package_sources
|
||||
*
|
||||
* DESCRIPTION: Download_package_sources downloads the source code for a package.
|
||||
* PARAMETERS:
|
||||
* char PACKAGE[] -> The package name to download
|
||||
* RETURN VALUES:
|
||||
* 0 on success, 1 on failure
|
||||
* CAVEATS:
|
||||
* The URL for the package repository will autofill.
|
||||
* EXAMPLE:
|
||||
* download_package_sources("vim");
|
||||
*/
|
||||
|
||||
int download_package_source();
|
||||
|
||||
/*
|
||||
* run_build_task
|
||||
*
|
||||
* DESCRIPTION: Execute the package's pkgops file with parameter 'build'.
|
||||
* PARAMETERS:
|
||||
* None.
|
||||
* RETURN VALUES:
|
||||
* 0 on success, 1 on failure
|
||||
* CAVEATS:
|
||||
* Can only work on one package at a time. Implement in a loop for multiple.
|
||||
* EXAMPLE:
|
||||
* run_build_task();
|
||||
*/
|
||||
|
||||
int run_build_task();
|
||||
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
@@ -22,3 +22,16 @@
|
||||
* runtime_exists
|
||||
*
|
||||
* DESCRIPTION: runtime_exists checks if all necessary runtime files exist.
|
||||
* PARAMETERS:
|
||||
* None.
|
||||
* RETURN VALUES:
|
||||
* None.
|
||||
* CAVEATS:
|
||||
* None.
|
||||
* EXAMPLE:
|
||||
* runtime_exists();
|
||||
*/
|
||||
|
||||
void runtime_exists();
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user