Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Adds ZSS dataservice to the App Store #541

Open
wants to merge 3 commits into
base: new/system-app/app-store
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

All notable changes to the Zlux App Manager will be documented in this file.

## `2.11.0`
- Added App Store for installing plugins in Zowe Desktop

## `2.10.0`
- Bugfix: Fixed a timing issue with the iframe-adapter for Firefox (#532)

Expand Down
36 changes: 36 additions & 0 deletions system-apps/app-store/zssServer/build/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/bin/sh
# © 2022-2024 Rocket Software, Inc. or its affiliates. All Rights Reserved.
# ROCKET SOFTWARE, INC. CONFIDENTIAL

mkdir tmp 2>/dev/null
cd tmp

if [ -z "$ZSS_DIR" ]
then
echo "Set ZSS_DIR env var to build"
exit 1
fi


ZOWECOMMON=${ZSS_DIR}/deps/zowe-common-c

mkdir ../../../lib 2>/dev/null

xlc \
-D_OPEN_THREADS \
-D_XOPEN_SOURCE=600 \
-DAPF_AUTHORIZED=0 \
-DNOIBMHTTP \
"-Wa,goff" "-Wc,langlvl(EXTC99),float(HEX),agg,expo,list(),so(),search(),\
goff,xref,gonum,roconst,gonum,asm,asmlib('SYS1.MACLIB'),asmlib('CEE.SCEEMAC'),dll" -Wl,dll \
-I ${ZSS_DIR}/h -I ${ZOWECOMMON}/h \
-I ${ZOWECOMMON}/platform/posix \
-o ../../../lib/appStoreDataService.so \
../../c/appStoreDataService.c \
../pluginAPI.x \

echo "Compile finished with rc=$?"

extattr +p ../../../lib/appStoreDataService.so


144 changes: 144 additions & 0 deletions system-apps/app-store/zssServer/build/pluginAPI.x
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
IMPORT CODE,'zssServer','makeHttpDataService'
IMPORT CODE,'zssServer','makeWebSocketService'
IMPORT CODE,'zssServer','makeWSEndpoint'
IMPORT CODE,'zssServer','makeWSMessageHandler'
IMPORT CODE,'zssServer','zowelog'
IMPORT CODE,'zssServer','zowedump'
IMPORT CODE,'zssServer','dumpbuffer'
IMPORT CODE,'zssServer','recoveryPush'
IMPORT CODE,'zssServer','recoveryPop'
IMPORT CODE,'zssServer','convertCharset'
IMPORT CODE,'zssServer','firstStringListElt'
IMPORT CODE,'zssServer','makeStringList'
IMPORT CODE,'zssServer','addToStringList'
IMPORT CODE,'zssServer','stringListPrint'
IMPORT CODE,'zssServer','stringListLength'
IMPORT CODE,'zssServer','stringListContains'
IMPORT CODE,'zssServer','stringListLast'
IMPORT CODE,'zssServer','addToStringListUnique'
IMPORT CODE,'zssServer','stringConcatenate'
IMPORT CODE,'zssServer','nullTerminate'
IMPORT CODE,'zssServer','indexOf'
IMPORT CODE,'zssServer','lastIndexOf'
IMPORT CODE,'zssServer','indexOfString'
IMPORT CODE,'zssServer','safeMalloc'
IMPORT CODE,'zssServer','safeMalloc31'
IMPORT CODE,'zssServer','safeMalloc64'
IMPORT CODE,'zssServer','safeFree'
IMPORT CODE,'zssServer','safeFree31'
IMPORT CODE,'zssServer','safeFree64'
IMPORT CODE,'zssServer','htCreate'
IMPORT CODE,'zssServer','fileInfo'
IMPORT CODE,'zssServer','fileInfoIsDirectory'
IMPORT CODE,'zssServer','fileDelete'
IMPORT CODE,'zssServer','htDestroy'
IMPORT CODE,'zssServer','htPut'
IMPORT CODE,'zssServer','htGet'
IMPORT CODE,'zssServer','htMap'
IMPORT CODE,'zssServer','makeQueue'
IMPORT CODE,'zssServer','destroyQueue'
IMPORT CODE,'zssServer','qRemove'
IMPORT CODE,'zssServer','qInsert'
IMPORT CODE,'zssServer','makeShortLivedHeap'
IMPORT CODE,'zssServer','makeShortLivedHeap64'
IMPORT CODE,'zssServer','stringHash'
IMPORT CODE,'zssServer','stringCompare'
IMPORT CODE,'zssServer','SLHAlloc'
IMPORT CODE,'zssServer','SLHFree'
IMPORT CODE,'zssServer','setDefaultJSONRESTHeaders'
IMPORT CODE,'zssServer','respondWithJsonError'
IMPORT CODE,'zssServer','respondWithError'
IMPORT CODE,'zssServer','makeCustomJsonPrinter'
IMPORT CODE,'zssServer','makeJsonPrinter'
IMPORT CODE,'zssServer','freeJsonPrinter'
IMPORT CODE,'zssServer','jsonPrintObject'
IMPORT CODE,'zssServer','respondWithJsonPrinter'
IMPORT CODE,'zssServer','setResponseStatus'
IMPORT CODE,'zssServer','setContentType'
IMPORT CODE,'zssServer','addStringHeader'
IMPORT CODE,'zssServer','addIntHeader'
IMPORT CODE,'zssServer','addHeader'
IMPORT CODE,'zssServer','writeHeader'
IMPORT CODE,'zssServer','getHeader'
IMPORT CODE,'zssServer','getQueryParam'
IMPORT CODE,'zssServer','getCheckedParam'
IMPORT CODE,'zssServer','makeIntParamSpec'
IMPORT CODE,'zssServer','makeInt64ParamSpec'
IMPORT CODE,'zssServer','makeStringParamSpec'
IMPORT CODE,'zssServer','jsonStart'
IMPORT CODE,'zssServer','jsonAddString'
IMPORT CODE,'zssServer','jsonAddUnterminatedString'
IMPORT CODE,'zssServer','jsonAddLimitedString'
IMPORT CODE,'zssServer','jsonAddInt'
IMPORT CODE,'zssServer','jsonAddUInt'
IMPORT CODE,'zssServer','jsonAddInt64'
IMPORT CODE,'zssServer','jsonAddBoolean'
IMPORT CODE,'zssServer','jsonEnd'
IMPORT CODE,'zssServer','jsonStartObject'
IMPORT CODE,'zssServer','jsonEndObject'
IMPORT CODE,'zssServer','jsonStartArray'
IMPORT CODE,'zssServer','jsonEndArray'
IMPORT CODE,'zssServer','jsonEnablePrettyPrint'
IMPORT CODE,'zssServer','jsonStartMultipartString'
IMPORT CODE,'zssServer','jsonAppendStringPart'
IMPORT CODE,'zssServer','jsonEndMultipartString'
IMPORT CODE,'zssServer','finishResponse'
IMPORT CODE,'zssServer','jsonObjectGetFirstProperty'
IMPORT CODE,'zssServer','jsonObjectGetNextProperty'
IMPORT CODE,'zssServer','jsonPropertyGetValue'
IMPORT CODE,'zssServer','jsonPropertyGetKey'
IMPORT CODE,'zssServer','jsonObjectGetPropertyValue'
IMPORT CODE,'zssServer','jsonObjectHasKey'
IMPORT CODE,'zssServer','jsonObjectGetNumber'
IMPORT CODE,'zssServer','jsonObjectGetString'
IMPORT CODE,'zssServer','jsonObjectGetObject'
IMPORT CODE,'zssServer','jsonObjectGetBoolean'
IMPORT CODE,'zssServer','jsonObjectGetArray'
IMPORT CODE,'zssServer','jsonArrayGetCount'
IMPORT CODE,'zssServer','jsonArrayGetItem'
IMPORT CODE,'zssServer','jsonArrayGetArray'
IMPORT CODE,'zssServer','jsonArrayGetBoolean'
IMPORT CODE,'zssServer','jsonArrayGetNumber'
IMPORT CODE,'zssServer','jsonArrayGetObject'
IMPORT CODE,'zssServer','jsonArrayGetString'
IMPORT CODE,'zssServer','jsonVerifyHomogeneity'
IMPORT CODE,'zssServer','jsonArrayContainsString'
IMPORT CODE,'zssServer','jsonAsBoolean'
IMPORT CODE,'zssServer','jsonAsNumber'
IMPORT CODE,'zssServer','jsonAsString'
IMPORT CODE,'zssServer','jsonAsArray'
IMPORT CODE,'zssServer','jsonAsObject'
IMPORT CODE,'zssServer','jsonIsArray'
IMPORT CODE,'zssServer','jsonIsBoolean'
IMPORT CODE,'zssServer','jsonIsNull'
IMPORT CODE,'zssServer','jsonIsNumber'
IMPORT CODE,'zssServer','jsonIsObject'
IMPORT CODE,'zssServer','jsonIsString'
IMPORT CODE,'zssServer','jsonObjectProperty'
IMPORT CODE,'zssServer','jsonArrayProperty'
IMPORT CODE,'zssServer','jsonIntProperty'
IMPORT CODE,'zssServer','jsonStringProperty'
IMPORT CODE,'zssServer','jsonPrint'
IMPORT CODE,'zssServer','jsonPrintArray'
IMPORT CODE,'zssServer','jsonPrintObject'
IMPORT CODE,'zssServer','jsonPrintProperty'
IMPORT CODE,'zssServer','reportJSONDataProblem'
IMPORT CODE,'zssServer','jsonParseFile'
IMPORT CODE,'zssServer','jsonParseUnterminatedString'
IMPORT CODE,'zssServer','jsonParseString'
IMPORT CODE,'zssServer','copyStringToNative'
IMPORT CODE,'zssServer','makeXmlPrinter'
IMPORT CODE,'zssServer','makeCustomXmlPrinter'
IMPORT CODE,'zssServer','xmlClose'
IMPORT CODE,'zssServer','xmlStart'
IMPORT CODE,'zssServer','xmlEnd'
IMPORT CODE,'zssServer','xmlAddString'
IMPORT CODE,'zssServer','xmlAddTextElement'
IMPORT CODE,'zssServer','xmlAddCData'
IMPORT CODE,'zssServer','xmlAddBooleanElement'
IMPORT CODE,'zssServer','xmlAddIntElement'
IMPORT CODE,'zssServer','xmlPrintInt'
IMPORT CODE,'zssServer','xmlPrintBoolean'
IMPORT CODE,'zssServer','xmlPrint'
IMPORT CODE,'zssServer','xmlPrintln'
IMPORT CODE,'zssServer','xmlPrintPartial'
Loading
Loading