#! /bin/sh #------------------------------------------------------------------------------ # /var/install/include/cuieismanlib - script interface for eisman # # Copyright (c) 2016 eisfair-Team # # Creation: 2010-04-08 dv # Last update: $Id$ # # This program 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 2 of the License, or # (at your option) any later version. #---------------------------------------------------------------------------- EISMAN_API_PACKAGESTOLIST=10 eisman_module_offs="99000" #------------------------------------------------------------------------------ # Load eisman module # Expects: # Returns: but success or failure #------------------------------------------------------------------------------ eisman_initmodule() { cui_load_addon "/usr/lib/cui-addons/libeisman-addon.so.1.0.0" if [ "$p2" != 0 ] then eisman_module_offs="$p2" return 0 else return 1 fi } #------------------------------------------------------------------------------ # Transfer packages to listview window # Expects: $1 <-- Handle : listview window handle # $2 <-- File : File to load packages from # Returns: nothing #------------------------------------------------------------------------------ eisman_packages_tolist() { cui_send "C" "$[${eisman_module_offs} + ${EISMAN_API_PACKAGESTOLIST}]" "$@" cui_wait_ack return $? } #------------------------------------------------------------------------------ # End #------------------------------------------------------------------------------