Skip to content

Commit

Permalink
#232 Remove DLEXPORT comments
Browse files Browse the repository at this point in the history
  • Loading branch information
docktermj committed Sep 10, 2024
1 parent bc7c055 commit e0d46d7
Show file tree
Hide file tree
Showing 7 changed files with 97 additions and 180 deletions.
12 changes: 0 additions & 12 deletions szconfig/szconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,6 @@ func (client *Szconfig) UnregisterObserver(ctx context.Context, observer observe
// ----------------------------------------------------------------------------

func (client *Szconfig) addDataSource(ctx context.Context, configHandle uintptr, dataSourceCode string) (string, error) {
// _DLEXPORT int SzConfig_addDataSource(ConfigHandle configHandle, const char *inputJson, char **responseBuf, size_t *bufSize, void *(*resizeFunc)(void *ptr, size_t newSize));
runtime.LockOSThread()
defer runtime.UnlockOSThread()
var err error
Expand All @@ -466,7 +465,6 @@ func (client *Szconfig) addDataSource(ctx context.Context, configHandle uintptr,
}

func (client *Szconfig) close(ctx context.Context, configHandle uintptr) error {
// _DLEXPORT int SzConfig_close(ConfigHandle configHandle);
runtime.LockOSThread()
defer runtime.UnlockOSThread()
var err error
Expand All @@ -478,7 +476,6 @@ func (client *Szconfig) close(ctx context.Context, configHandle uintptr) error {
}

func (client *Szconfig) create(ctx context.Context) (uintptr, error) {
// _DLEXPORT int SzConfig_create(ConfigHandle* configHandle);
runtime.LockOSThread()
defer runtime.UnlockOSThread()
var err error
Expand All @@ -492,7 +489,6 @@ func (client *Szconfig) create(ctx context.Context) (uintptr, error) {
}

func (client *Szconfig) deleteDataSource(ctx context.Context, configHandle uintptr, dataSourceCode string) error {
// _DLEXPORT int SzConfig_deleteDataSource(ConfigHandle configHandle, const char *inputJson);
runtime.LockOSThread()
defer runtime.UnlockOSThread()
var err error
Expand All @@ -507,7 +503,6 @@ func (client *Szconfig) deleteDataSource(ctx context.Context, configHandle uintp
}

func (client *Szconfig) destroy(ctx context.Context) error {
// _DLEXPORT int SzConfig_destroy();
runtime.LockOSThread()
defer runtime.UnlockOSThread()
var err error
Expand All @@ -519,7 +514,6 @@ func (client *Szconfig) destroy(ctx context.Context) error {
}

func (client *Szconfig) save(ctx context.Context, configHandle uintptr) (string, error) {
// _DLEXPORT int SzConfig_save(ConfigHandle configHandle, char **responseBuf, size_t *bufSize, void *(*resizeFunc)(void *ptr, size_t newSize) );
runtime.LockOSThread()
defer runtime.UnlockOSThread()
var err error
Expand All @@ -534,7 +528,6 @@ func (client *Szconfig) save(ctx context.Context, configHandle uintptr) (string,
}

func (client *Szconfig) listDataSources(ctx context.Context, configHandle uintptr) (string, error) {
// _DLEXPORT int SzConfig_listDataSources(ConfigHandle configHandle, char **responseBuf, size_t *bufSize, void *(*resizeFunc)(void *ptr, size_t newSize));
runtime.LockOSThread()
defer runtime.UnlockOSThread()
var err error
Expand All @@ -549,7 +542,6 @@ func (client *Szconfig) listDataSources(ctx context.Context, configHandle uintpt
}

func (client *Szconfig) load(ctx context.Context, configDefinition string) (uintptr, error) {
// _DLEXPORT int SzConfig_load(const char *jsonConfig,ConfigHandle* configHandle);
runtime.LockOSThread()
defer runtime.UnlockOSThread()
var err error
Expand All @@ -565,7 +557,6 @@ func (client *Szconfig) load(ctx context.Context, configDefinition string) (uint
}

func (client *Szconfig) init(ctx context.Context, instanceName string, settings string, verboseLogging int64) error {
// _DLEXPORT int SzConfig_init(const char *moduleName, const char *iniParams, const int verboseLogging);
runtime.LockOSThread()
defer runtime.UnlockOSThread()
var err error
Expand Down Expand Up @@ -650,7 +641,6 @@ Input
- ctx: A context to control lifecycle.
*/
func (client *Szconfig) clearLastException(ctx context.Context) error {
// _DLEXPORT void SzConfig_clearLastException();
_ = ctx
var err error
if client.isTrace {
Expand All @@ -672,7 +662,6 @@ Output
- A string containing the error received from Senzing's Szconfig.
*/
func (client *Szconfig) getLastException(ctx context.Context) (string, error) {
// _DLEXPORT int SzConfig_getLastException(char *buffer, const size_t bufSize);
_ = ctx
var err error
var result string
Expand All @@ -697,7 +686,6 @@ Output:
- An int containing the error received from Senzing's SzConfig.
*/
func (client *Szconfig) getLastExceptionCode(ctx context.Context) (int, error) {
// _DLEXPORT int SzConfig_getLastExceptionCode();
_ = ctx
var err error
var result int
Expand Down
11 changes: 0 additions & 11 deletions szconfigmanager/szconfigmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,6 @@ func (client *Szconfigmanager) UnregisterObserver(ctx context.Context, observer
// ----------------------------------------------------------------------------

func (client *Szconfigmanager) addConfig(ctx context.Context, configDefinition string, configComment string) (int64, error) {
// _DLEXPORT int SzConfigMgr_addConfig(const char* configStr, const char* configComments, long long* configID);
runtime.LockOSThread()
defer runtime.UnlockOSThread()
var err error
Expand All @@ -439,7 +438,6 @@ func (client *Szconfigmanager) addConfig(ctx context.Context, configDefinition s
}

func (client *Szconfigmanager) destroy(ctx context.Context) error {
// _DLEXPORT int SzConfigMgr_destroy();
runtime.LockOSThread()
defer runtime.UnlockOSThread()
var err error
Expand All @@ -451,7 +449,6 @@ func (client *Szconfigmanager) destroy(ctx context.Context) error {
}

func (client *Szconfigmanager) getConfig(ctx context.Context, configID int64) (string, error) {
// _DLEXPORT int SzConfigMgr_getConfig(const long long configID, char **responseBuf, size_t *bufSize, void *(*resizeFunc)(void *ptr, size_t newSize));
runtime.LockOSThread()
defer runtime.UnlockOSThread()
var err error
Expand All @@ -466,7 +463,6 @@ func (client *Szconfigmanager) getConfig(ctx context.Context, configID int64) (s
}

func (client *Szconfigmanager) getConfigList(ctx context.Context) (string, error) {
// _DLEXPORT int SzConfigMgr_getConfigList(char **responseBuf, size_t *bufSize, void *(*resizeFunc)(void *ptr, size_t newSize));
runtime.LockOSThread()
defer runtime.UnlockOSThread()
var err error
Expand All @@ -481,7 +477,6 @@ func (client *Szconfigmanager) getConfigList(ctx context.Context) (string, error
}

func (client *Szconfigmanager) getDefaultConfigID(ctx context.Context) (int64, error) {
// _DLEXPORT int SzConfigMgr_getDefaultConfigID(long long* configID);
runtime.LockOSThread()
defer runtime.UnlockOSThread()
var err error
Expand All @@ -495,7 +490,6 @@ func (client *Szconfigmanager) getDefaultConfigID(ctx context.Context) (int64, e
}

func (client *Szconfigmanager) init(ctx context.Context, instanceName string, settings string, verboseLogging int64) error {
// _DLEXPORT int SzConfigMgr_init(const char *moduleName, const char *iniParams, const int verboseLogging);
runtime.LockOSThread()
defer runtime.UnlockOSThread()
var err error
Expand All @@ -511,7 +505,6 @@ func (client *Szconfigmanager) init(ctx context.Context, instanceName string, se
}

func (client *Szconfigmanager) replaceDefaultConfigID(ctx context.Context, currentDefaultConfigID int64, newDefaultConfigID int64) error {
// _DLEXPORT int SzConfigMgr_replaceDefaultConfigID(const long long oldConfigID, const long long newConfigID);
runtime.LockOSThread()
defer runtime.UnlockOSThread()
var err error
Expand All @@ -523,7 +516,6 @@ func (client *Szconfigmanager) replaceDefaultConfigID(ctx context.Context, curre
}

func (client *Szconfigmanager) setDefaultConfigID(ctx context.Context, configID int64) error {
// _DLEXPORT int SzConfigMgr_setDefaultConfigID(const long long configID);
runtime.LockOSThread()
defer runtime.UnlockOSThread()
var err error
Expand Down Expand Up @@ -604,7 +596,6 @@ Input
- ctx: A context to control lifecycle.
*/
func (client *Szconfigmanager) clearLastException(ctx context.Context) error {
// _DLEXPORT void SzConfigMgr_clearLastException();
_ = ctx
var err error
if client.isTrace {
Expand All @@ -626,7 +617,6 @@ Output
- A string containing the error received from Senzing's SzConfigMgr.
*/
func (client *Szconfigmanager) getLastException(ctx context.Context) (string, error) {
// _DLEXPORT int SzConfigMgr_getLastException(char *buffer, const size_t bufSize);
_ = ctx
var err error
var result string
Expand All @@ -651,7 +641,6 @@ Output:
- An int containing the error received from Senzing's SzConfigMgr.
*/
func (client *Szconfigmanager) getLastExceptionCode(ctx context.Context) (int, error) {
// _DLEXPORT int SzConfigMgr_getLastExceptionCode();
_ = ctx
var err error
var result int
Expand Down
12 changes: 1 addition & 11 deletions szdiagnostic/szdiagnostic.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ func (client *Szdiagnostic) GetDatastoreInfo(ctx context.Context) (string, error

/*
Method GetFeature is an experimental method that returns diagnostic information of a feature.
Not recommended for use.
Input
- ctx: A context to control lifecycle.
Expand Down Expand Up @@ -388,7 +389,6 @@ func (client *Szdiagnostic) UnregisterObserver(ctx context.Context, observer obs
// ----------------------------------------------------------------------------

func (client *Szdiagnostic) checkDatastorePerformance(ctx context.Context, secondsToRun int) (string, error) {
// _DLEXPORT int SzDiagnostic_checkDBPerf(int secondsToRun, char **responseBuf, size_t *bufSize, void *(*resizeFunc)(void *ptr, size_t newSize) );
runtime.LockOSThread()
defer runtime.UnlockOSThread()
var err error
Expand All @@ -403,7 +403,6 @@ func (client *Szdiagnostic) checkDatastorePerformance(ctx context.Context, secon
}

func (client *Szdiagnostic) destroy(ctx context.Context) error {
// _DLEXPORT int SzDiagnostic_destroy();
runtime.LockOSThread()
defer runtime.UnlockOSThread()
var err error
Expand All @@ -415,7 +414,6 @@ func (client *Szdiagnostic) destroy(ctx context.Context) error {
}

func (client *Szdiagnostic) getDatastoreInfo(ctx context.Context) (string, error) {
// _DLEXPORT struct SzDiagnostic_getDatastoreInfo_result SzDiagnostic_getDatastoreInfo_helper();
runtime.LockOSThread()
defer runtime.UnlockOSThread()
var err error
Expand All @@ -430,7 +428,6 @@ func (client *Szdiagnostic) getDatastoreInfo(ctx context.Context) (string, error
}

func (client *Szdiagnostic) getFeature(ctx context.Context, featureID int64) (string, error) {
// _DLEXPORT int SzDiagnostic_getFeature(const long long libFeatID);
runtime.LockOSThread()
defer runtime.UnlockOSThread()
var err error
Expand All @@ -455,7 +452,6 @@ Input
- verboseLogging: A flag to enable deeper logging of the Sz processing. 0 for no Senzing logging; 1 for logging.
*/
func (client *Szdiagnostic) init(ctx context.Context, instanceName string, settings string, verboseLogging int64) error {
// _DLEXPORT int SzDiagnostic_init(const char *moduleName, const char *iniParams, const int verboseLogging);
runtime.LockOSThread()
defer runtime.UnlockOSThread()
var err error
Expand All @@ -482,7 +478,6 @@ Input
- verboseLogging: A flag to enable deeper logging of the Sz processing. 0 for no Senzing logging; 1 for logging.
*/
func (client *Szdiagnostic) initWithConfigID(ctx context.Context, instanceName string, settings string, configID int64, verboseLogging int64) error {
// _DLEXPORT int SzDiagnostic_initWithConfigID(const char *moduleName, const char *iniParams, const long long initConfigID, const int verboseLogging);
runtime.LockOSThread()
defer runtime.UnlockOSThread()
var err error
Expand All @@ -498,7 +493,6 @@ func (client *Szdiagnostic) initWithConfigID(ctx context.Context, instanceName s
}

func (client *Szdiagnostic) purgeRepository(ctx context.Context) error {
// _DLEXPORT int SzDiagnostic_purgeRepository();
runtime.LockOSThread()
defer runtime.UnlockOSThread()
var err error
Expand All @@ -510,7 +504,6 @@ func (client *Szdiagnostic) purgeRepository(ctx context.Context) error {
}

func (client *Szdiagnostic) reinit(ctx context.Context, configID int64) error {
// _DLEXPORT int SzDiagnostic_reinit(const long long initConfigID);
runtime.LockOSThread()
defer runtime.UnlockOSThread()
var err error
Expand Down Expand Up @@ -591,7 +584,6 @@ Input
- ctx: A context to control lifecycle.
*/
func (client *Szdiagnostic) clearLastException(ctx context.Context) error {
// _DLEXPORT void SzDiagnostic_clearLastException();
_ = ctx
var err error
if client.isTrace {
Expand All @@ -613,7 +605,6 @@ Output
- A string containing the error received from Senzing's SzDiagnostic.
*/
func (client *Szdiagnostic) getLastException(ctx context.Context) (string, error) {
// _DLEXPORT int SzDiagnostic_getLastException(char *buffer, const size_t bufSize);
_ = ctx
var err error
var result string
Expand All @@ -638,7 +629,6 @@ Output:
- An int containing the error received from Senzing's SzDiagnostic.
*/
func (client *Szdiagnostic) getLastExceptionCode(ctx context.Context) (int, error) {
// _DLEXPORT int SzDiagnostic_getLastExceptionCode();
_ = ctx
var err error
var result int
Expand Down
Loading

0 comments on commit e0d46d7

Please sign in to comment.