Commit ff588b6c authored by Mac Newbold's avatar Mac Newbold

Turn libdb into a proper package, and add all the right exports.

parent 1539fc95
......@@ -2,14 +2,21 @@
use English;
require Mysql;
#
# A library of useful DB stuff. Mostly things that get done a lot.
# Saves typing.
#
#
package libdb;
use Exporter;
@ISA = "Exporter";
@EXPORT =
qw ( NODERELOADING_PID NODERELOADING_EID NODEDEAD_PID NODEDEAD_EID
NODEBOOTSTATUS_OKAY NODEBOOTSTATUS_FAILED NODEBOOTSTATUS_UNKNOWN
NODESTARTSTATUS_NOSTATUS PROJMEMBERTRUST_NONE PROJMEMBERTRUST_USER
PROJMEMBERTRUST_TRUSTED TBAdmin NodeAccessCheck ProjMember ExpLeader
MarkNodeDown SetNodeBootStatus OSFeatureSupported IsShelved
NodeidToExp UIDInfo DBQuery DBQueryFatal DBQueryWarn DBWarn DBFatal );
# Configure variables
#
my $TB = "@prefix@";
my $DBNAME = "@TBDBNAME@";
my $TBOPS = "@TBOPSEMAIL@";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment