From fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 8 Jul 2015 20:46:52 -0400 Subject: Initial commit --- vendor/voclient/libsamp/doc/html/annotated.html | 36 + vendor/voclient/libsamp/doc/html/classes.html | 36 + vendor/voclient/libsamp/doc/html/doxygen.css | 441 ++ vendor/voclient/libsamp/doc/html/doxygen.png | Bin 0 -> 1281 bytes vendor/voclient/libsamp/doc/html/files.html | 46 + vendor/voclient/libsamp/doc/html/functions.html | 170 + .../voclient/libsamp/doc/html/functions_vars.html | 170 + vendor/voclient/libsamp/doc/html/globals.html | 61 + vendor/voclient/libsamp/doc/html/globals_0x6c.html | 56 + vendor/voclient/libsamp/doc/html/globals_0x6d.html | 59 + vendor/voclient/libsamp/doc/html/globals_0x6e.html | 65 + vendor/voclient/libsamp/doc/html/globals_0x6f.html | 55 + vendor/voclient/libsamp/doc/html/globals_0x70.html | 56 + vendor/voclient/libsamp/doc/html/globals_0x73.html | 671 ++ vendor/voclient/libsamp/doc/html/globals_defs.html | 48 + vendor/voclient/libsamp/doc/html/globals_func.html | 652 ++ vendor/voclient/libsamp/doc/html/globals_type.html | 57 + vendor/voclient/libsamp/doc/html/globals_vars.html | 68 + vendor/voclient/libsamp/doc/html/index.html | 25 + .../voclient/libsamp/doc/html/sampClient_8c.html | 497 ++ .../voclient/libsamp/doc/html/sampCommands_8c.html | 362 + vendor/voclient/libsamp/doc/html/sampDecl_8h.html | 6737 +++++++++++++++++++ .../libsamp/doc/html/sampDecl_8h_source.html | 410 ++ .../voclient/libsamp/doc/html/sampHandlers_8c.html | 1819 +++++ vendor/voclient/libsamp/doc/html/sampHub_8c.html | 624 ++ vendor/voclient/libsamp/doc/html/sampList_8c.html | 544 ++ vendor/voclient/libsamp/doc/html/sampLog_8c.html | 169 + .../voclient/libsamp/doc/html/sampMTypes_8c.html | 1012 +++ vendor/voclient/libsamp/doc/html/sampMap_8c.html | 593 ++ .../voclient/libsamp/doc/html/sampMethods_8c.html | 294 + vendor/voclient/libsamp/doc/html/sampMsg_8c.html | 163 + vendor/voclient/libsamp/doc/html/sampParam_8c.html | 392 ++ vendor/voclient/libsamp/doc/html/sampUtil_8c.html | 278 + vendor/voclient/libsamp/doc/html/samp_8c.html | 1285 ++++ vendor/voclient/libsamp/doc/html/samp_8h.html | 7080 ++++++++++++++++++++ .../voclient/libsamp/doc/html/samp_8h_source.html | 481 ++ vendor/voclient/libsamp/doc/html/structClient.html | 61 + vendor/voclient/libsamp/doc/html/structHub.html | 287 + vendor/voclient/libsamp/doc/html/structSamp.html | 479 ++ vendor/voclient/libsamp/doc/html/structSubs.html | 111 + vendor/voclient/libsamp/doc/html/structappMD.html | 174 + vendor/voclient/libsamp/doc/html/tab_b.gif | Bin 0 -> 35 bytes vendor/voclient/libsamp/doc/html/tab_l.gif | Bin 0 -> 706 bytes vendor/voclient/libsamp/doc/html/tab_r.gif | Bin 0 -> 2585 bytes vendor/voclient/libsamp/doc/html/tabs.css | 105 + vendor/voclient/libsamp/doc/latex/Makefile | 19 + vendor/voclient/libsamp/doc/latex/annotated.tex | 8 + vendor/voclient/libsamp/doc/latex/doxygen.sty | 97 + vendor/voclient/libsamp/doc/latex/files.tex | 18 + vendor/voclient/libsamp/doc/latex/refman.tex | 80 + .../voclient/libsamp/doc/latex/sampClient_8c.tex | 246 + .../voclient/libsamp/doc/latex/sampCommands_8c.tex | 223 + vendor/voclient/libsamp/doc/latex/sampDecl_8h.tex | 3333 +++++++++ .../voclient/libsamp/doc/latex/sampHandlers_8c.tex | 785 +++ vendor/voclient/libsamp/doc/latex/sampHub_8c.tex | 421 ++ vendor/voclient/libsamp/doc/latex/sampList_8c.tex | 301 + vendor/voclient/libsamp/doc/latex/sampLog_8c.tex | 109 + .../voclient/libsamp/doc/latex/sampMTypes_8c.tex | 396 ++ vendor/voclient/libsamp/doc/latex/sampMap_8c.tex | 308 + .../voclient/libsamp/doc/latex/sampMethods_8c.tex | 209 + vendor/voclient/libsamp/doc/latex/sampMsg_8c.tex | 105 + vendor/voclient/libsamp/doc/latex/sampParam_8c.tex | 215 + vendor/voclient/libsamp/doc/latex/sampUtil_8c.tex | 182 + vendor/voclient/libsamp/doc/latex/samp_8c.tex | 733 ++ vendor/voclient/libsamp/doc/latex/samp_8h.tex | 3583 ++++++++++ vendor/voclient/libsamp/doc/latex/structClient.tex | 37 + vendor/voclient/libsamp/doc/latex/structHub.tex | 167 + vendor/voclient/libsamp/doc/latex/structSamp.tex | 271 + vendor/voclient/libsamp/doc/latex/structSubs.tex | 48 + vendor/voclient/libsamp/doc/latex/structappMD.tex | 103 + vendor/voclient/libsamp/doc/mkdoc | 10 + vendor/voclient/libsamp/doc/samp.man | 152 + 72 files changed, 38888 insertions(+) create mode 100644 vendor/voclient/libsamp/doc/html/annotated.html create mode 100644 vendor/voclient/libsamp/doc/html/classes.html create mode 100644 vendor/voclient/libsamp/doc/html/doxygen.css create mode 100644 vendor/voclient/libsamp/doc/html/doxygen.png create mode 100644 vendor/voclient/libsamp/doc/html/files.html create mode 100644 vendor/voclient/libsamp/doc/html/functions.html create mode 100644 vendor/voclient/libsamp/doc/html/functions_vars.html create mode 100644 vendor/voclient/libsamp/doc/html/globals.html create mode 100644 vendor/voclient/libsamp/doc/html/globals_0x6c.html create mode 100644 vendor/voclient/libsamp/doc/html/globals_0x6d.html create mode 100644 vendor/voclient/libsamp/doc/html/globals_0x6e.html create mode 100644 vendor/voclient/libsamp/doc/html/globals_0x6f.html create mode 100644 vendor/voclient/libsamp/doc/html/globals_0x70.html create mode 100644 vendor/voclient/libsamp/doc/html/globals_0x73.html create mode 100644 vendor/voclient/libsamp/doc/html/globals_defs.html create mode 100644 vendor/voclient/libsamp/doc/html/globals_func.html create mode 100644 vendor/voclient/libsamp/doc/html/globals_type.html create mode 100644 vendor/voclient/libsamp/doc/html/globals_vars.html create mode 100644 vendor/voclient/libsamp/doc/html/index.html create mode 100644 vendor/voclient/libsamp/doc/html/sampClient_8c.html create mode 100644 vendor/voclient/libsamp/doc/html/sampCommands_8c.html create mode 100644 vendor/voclient/libsamp/doc/html/sampDecl_8h.html create mode 100644 vendor/voclient/libsamp/doc/html/sampDecl_8h_source.html create mode 100644 vendor/voclient/libsamp/doc/html/sampHandlers_8c.html create mode 100644 vendor/voclient/libsamp/doc/html/sampHub_8c.html create mode 100644 vendor/voclient/libsamp/doc/html/sampList_8c.html create mode 100644 vendor/voclient/libsamp/doc/html/sampLog_8c.html create mode 100644 vendor/voclient/libsamp/doc/html/sampMTypes_8c.html create mode 100644 vendor/voclient/libsamp/doc/html/sampMap_8c.html create mode 100644 vendor/voclient/libsamp/doc/html/sampMethods_8c.html create mode 100644 vendor/voclient/libsamp/doc/html/sampMsg_8c.html create mode 100644 vendor/voclient/libsamp/doc/html/sampParam_8c.html create mode 100644 vendor/voclient/libsamp/doc/html/sampUtil_8c.html create mode 100644 vendor/voclient/libsamp/doc/html/samp_8c.html create mode 100644 vendor/voclient/libsamp/doc/html/samp_8h.html create mode 100644 vendor/voclient/libsamp/doc/html/samp_8h_source.html create mode 100644 vendor/voclient/libsamp/doc/html/structClient.html create mode 100644 vendor/voclient/libsamp/doc/html/structHub.html create mode 100644 vendor/voclient/libsamp/doc/html/structSamp.html create mode 100644 vendor/voclient/libsamp/doc/html/structSubs.html create mode 100644 vendor/voclient/libsamp/doc/html/structappMD.html create mode 100644 vendor/voclient/libsamp/doc/html/tab_b.gif create mode 100644 vendor/voclient/libsamp/doc/html/tab_l.gif create mode 100644 vendor/voclient/libsamp/doc/html/tab_r.gif create mode 100644 vendor/voclient/libsamp/doc/html/tabs.css create mode 100644 vendor/voclient/libsamp/doc/latex/Makefile create mode 100644 vendor/voclient/libsamp/doc/latex/annotated.tex create mode 100644 vendor/voclient/libsamp/doc/latex/doxygen.sty create mode 100644 vendor/voclient/libsamp/doc/latex/files.tex create mode 100644 vendor/voclient/libsamp/doc/latex/refman.tex create mode 100644 vendor/voclient/libsamp/doc/latex/sampClient_8c.tex create mode 100644 vendor/voclient/libsamp/doc/latex/sampCommands_8c.tex create mode 100644 vendor/voclient/libsamp/doc/latex/sampDecl_8h.tex create mode 100644 vendor/voclient/libsamp/doc/latex/sampHandlers_8c.tex create mode 100644 vendor/voclient/libsamp/doc/latex/sampHub_8c.tex create mode 100644 vendor/voclient/libsamp/doc/latex/sampList_8c.tex create mode 100644 vendor/voclient/libsamp/doc/latex/sampLog_8c.tex create mode 100644 vendor/voclient/libsamp/doc/latex/sampMTypes_8c.tex create mode 100644 vendor/voclient/libsamp/doc/latex/sampMap_8c.tex create mode 100644 vendor/voclient/libsamp/doc/latex/sampMethods_8c.tex create mode 100644 vendor/voclient/libsamp/doc/latex/sampMsg_8c.tex create mode 100644 vendor/voclient/libsamp/doc/latex/sampParam_8c.tex create mode 100644 vendor/voclient/libsamp/doc/latex/sampUtil_8c.tex create mode 100644 vendor/voclient/libsamp/doc/latex/samp_8c.tex create mode 100644 vendor/voclient/libsamp/doc/latex/samp_8h.tex create mode 100644 vendor/voclient/libsamp/doc/latex/structClient.tex create mode 100644 vendor/voclient/libsamp/doc/latex/structHub.tex create mode 100644 vendor/voclient/libsamp/doc/latex/structSamp.tex create mode 100644 vendor/voclient/libsamp/doc/latex/structSubs.tex create mode 100644 vendor/voclient/libsamp/doc/latex/structappMD.tex create mode 100755 vendor/voclient/libsamp/doc/mkdoc create mode 100644 vendor/voclient/libsamp/doc/samp.man (limited to 'vendor/voclient/libsamp/doc') diff --git a/vendor/voclient/libsamp/doc/html/annotated.html b/vendor/voclient/libsamp/doc/html/annotated.html new file mode 100644 index 00000000..50be4f37 --- /dev/null +++ b/vendor/voclient/libsamp/doc/html/annotated.html @@ -0,0 +1,36 @@ + + +SAMP Client Library: Data Structures + + + + + +
+

Data Structures

Here are the data structures with brief descriptions: + + + + + +
appMD
Client
Hub
Samp
Subs
+
+
Generated on Wed Feb 27 21:10:16 2013 for SAMP Client Library by  + +doxygen 1.5.9
+ + diff --git a/vendor/voclient/libsamp/doc/html/classes.html b/vendor/voclient/libsamp/doc/html/classes.html new file mode 100644 index 00000000..6ce31513 --- /dev/null +++ b/vendor/voclient/libsamp/doc/html/classes.html @@ -0,0 +1,36 @@ + + +SAMP Client Library: Alphabetical List + + + + + +
+

Data Structure Index

A | C | H | S

+ +
  A  
+
  C  
+
  H  
+
  S  
+
Subs   
appMD   Client   Hub   Samp   

A | C | H | S

+

+
Generated on Wed Feb 27 21:10:16 2013 for SAMP Client Library by  + +doxygen 1.5.9
+ + diff --git a/vendor/voclient/libsamp/doc/html/doxygen.css b/vendor/voclient/libsamp/doc/html/doxygen.css new file mode 100644 index 00000000..3767dc95 --- /dev/null +++ b/vendor/voclient/libsamp/doc/html/doxygen.css @@ -0,0 +1,441 @@ +body, table, div, p, dl { + font-family: Lucida Grande, Verdana, Geneva, Arial, sans-serif; + font-size: 12px; +} + +/* @group Heading Levels */ + +h1 { + text-align: center; + font-size: 150%; +} + +h2 { + font-size: 120%; +} + +h3 { + font-size: 100%; +} + +/* @end */ + +caption { + font-weight: bold; +} + +div.qindex, div.navtab{ + background-color: #e8eef2; + border: 1px solid #84b0c7; + text-align: center; + margin: 2px; + padding: 2px; +} + +div.qindex, div.navpath { + width: 100%; + line-height: 140%; +} + +div.navtab { + margin-right: 15px; +} + +/* @group Link Styling */ + +a { + color: #153788; + font-weight: normal; + text-decoration: none; +} + +.contents a:visited { + color: #1b77c5; +} + +a:hover { + text-decoration: underline; +} + +a.qindex { + font-weight: bold; +} + +a.qindexHL { + font-weight: bold; + background-color: #6666cc; + color: #ffffff; + border: 1px double #9295C2; +} + +.contents a.qindexHL:visited { + color: #ffffff; +} + +a.el { + font-weight: bold; +} + +a.elRef { +} + +a.code { +} + +a.codeRef { +} + +/* @end */ + +dl.el { + margin-left: -1cm; +} + +.fragment { + font-family: monospace, fixed; + font-size: 105%; +} + +pre.fragment { + border: 1px solid #CCCCCC; + background-color: #f5f5f5; + padding: 4px 6px; + margin: 4px 8px 4px 2px; +} + +div.ah { + background-color: black; + font-weight: bold; + color: #ffffff; + margin-bottom: 3px; + margin-top: 3px +} + +div.groupHeader { + margin-left: 16px; + margin-top: 12px; + margin-bottom: 6px; + font-weight: bold; +} + +div.groupText { + margin-left: 16px; + font-style: italic; +} + +body { + background: white; + color: black; + margin-right: 20px; + margin-left: 20px; +} + +td.indexkey { + background-color: #e8eef2; + font-weight: bold; + border: 1px solid #CCCCCC; + margin: 2px 0px 2px 0; + padding: 2px 10px; +} + +td.indexvalue { + background-color: #e8eef2; + border: 1px solid #CCCCCC; + padding: 2px 10px; + margin: 2px 0px; +} + +tr.memlist { + background-color: #f0f0f0; +} + +p.formulaDsp { + text-align: center; +} + +img.formulaDsp { + +} + +img.formulaInl { + vertical-align: middle; +} + +/* @group Code Colorization */ + +span.keyword { + color: #008000 +} + +span.keywordtype { + color: #604020 +} + +span.keywordflow { + color: #e08000 +} + +span.comment { + color: #800000 +} + +span.preprocessor { + color: #806020 +} + +span.stringliteral { + color: #002080 +} + +span.charliteral { + color: #008080 +} + +span.vhdldigit { + color: #ff00ff +} + +span.vhdlchar { + color: #000000 +} + +span.vhdlkeyword { + color: #700070 +} + +span.vhdllogic { + color: #ff0000 +} + +/* @end */ + +.search { + color: #003399; + font-weight: bold; +} + +form.search { + margin-bottom: 0px; + margin-top: 0px; +} + +input.search { + font-size: 75%; + color: #000080; + font-weight: normal; + background-color: #e8eef2; +} + +td.tiny { + font-size: 75%; +} + +.dirtab { + padding: 4px; + border-collapse: collapse; + border: 1px solid #84b0c7; +} + +th.dirtab { + background: #e8eef2; + font-weight: bold; +} + +hr { + height: 0; + border: none; + border-top: 1px solid #666; +} + +/* @group Member Descriptions */ + +.mdescLeft, .mdescRight, +.memItemLeft, .memItemRight, +.memTemplItemLeft, .memTemplItemRight, .memTemplParams { + background-color: #FAFAFA; + border: none; + margin: 4px; + padding: 1px 0 0 8px; +} + +.mdescLeft, .mdescRight { + padding: 0px 8px 4px 8px; + color: #555; +} + +.memItemLeft, .memItemRight, .memTemplParams { + border-top: 1px solid #ccc; +} + +.memTemplParams { + color: #606060; +} + +/* @end */ + +/* @group Member Details */ + +/* Styles for detailed member documentation */ + +.memtemplate { + font-size: 80%; + color: #606060; + font-weight: normal; + margin-left: 3px; +} + +.memnav { + background-color: #e8eef2; + border: 1px solid #84b0c7; + text-align: center; + margin: 2px; + margin-right: 15px; + padding: 2px; +} + +.memitem { + padding: 0; +} + +.memname { + white-space: nowrap; + font-weight: bold; +} + +.memproto, .memdoc { + border: 1px solid #84b0c7; +} + +.memproto { + padding: 0; + background-color: #d5e1e8; + font-weight: bold; + -webkit-border-top-left-radius: 8px; + -webkit-border-top-right-radius: 8px; + -moz-border-radius-topleft: 8px; + -moz-border-radius-topright: 8px; +} + +.memdoc { + padding: 2px 5px; + background-color: #eef3f5; + border-top-width: 0; + -webkit-border-bottom-left-radius: 8px; + -webkit-border-bottom-right-radius: 8px; + -moz-border-radius-bottomleft: 8px; + -moz-border-radius-bottomright: 8px; +} + +.paramkey { + text-align: right; +} + +.paramtype { + white-space: nowrap; +} + +.paramname { + color: #602020; + white-space: nowrap; +} +.paramname em { + font-style: normal; +} + +/* @end */ + +/* @group Directory (tree) */ + +/* for the tree view */ + +.ftvtree { + font-family: sans-serif; + margin: 0.5em; +} + +/* these are for tree view when used as main index */ + +.directory { + font-size: 9pt; + font-weight: bold; +} + +.directory h3 { + margin: 0px; + margin-top: 1em; + font-size: 11pt; +} + +/* +The following two styles can be used to replace the root node title +with an image of your choice. Simply uncomment the next two styles, +specify the name of your image and be sure to set 'height' to the +proper pixel height of your image. +*/ + +/* +.directory h3.swap { + height: 61px; + background-repeat: no-repeat; + background-image: url("yourimage.gif"); +} +.directory h3.swap span { + display: none; +} +*/ + +.directory > h3 { + margin-top: 0; +} + +.directory p { + margin: 0px; + white-space: nowrap; +} + +.directory div { + display: none; + margin: 0px; +} + +.directory img { + vertical-align: -30%; +} + +/* these are for tree view when not used as main index */ + +.directory-alt { + font-size: 100%; + font-weight: bold; +} + +.directory-alt h3 { + margin: 0px; + margin-top: 1em; + font-size: 11pt; +} + +.directory-alt > h3 { + margin-top: 0; +} + +.directory-alt p { + margin: 0px; + white-space: nowrap; +} + +.directory-alt div { + display: none; + margin: 0px; +} + +.directory-alt img { + vertical-align: -30%; +} + +/* @end */ + +address { + font-style: normal; + color: #333; +} diff --git a/vendor/voclient/libsamp/doc/html/doxygen.png b/vendor/voclient/libsamp/doc/html/doxygen.png new file mode 100644 index 00000000..f0a274bb Binary files /dev/null and b/vendor/voclient/libsamp/doc/html/doxygen.png differ diff --git a/vendor/voclient/libsamp/doc/html/files.html b/vendor/voclient/libsamp/doc/html/files.html new file mode 100644 index 00000000..cb9fd771 --- /dev/null +++ b/vendor/voclient/libsamp/doc/html/files.html @@ -0,0 +1,46 @@ + + +SAMP Client Library: File Index + + + + + +
+

File List

Here is a list of all documented files with brief descriptions: + + + + + + + + + + + + + + + +
samp.cTop-level interface to the SAMP library
samp.h [code]SAMP interface include file
sampClient.cClient callable methods
sampCommands.cSAMP commands used by app to send administrative messages
sampDecl.h [code]SAMP interface method declarations
sampHandlers.cMessage handlers for the interface
sampHub.cMethods related to the SAMP Hub interface
sampList.c(Internal) interface to support the List structure
sampLog.cSAMP trace and logging interface
sampMap.c(Internal) Interface to support the Map structure
sampMethods.cSAMP methods implemented by a callable client
sampMsg.c(Internal) Interface to Message objects
sampMTypes.cSAMP interface procedures for application mtypes
sampParam.c(Internal) Interface to Param objects
sampUtil.cUtility methods to convert struct pointers to user handles
+
+
Generated on Wed Feb 27 21:10:16 2013 for SAMP Client Library by  + +doxygen 1.5.9
+ + diff --git a/vendor/voclient/libsamp/doc/html/functions.html b/vendor/voclient/libsamp/doc/html/functions.html new file mode 100644 index 00000000..fcce9c07 --- /dev/null +++ b/vendor/voclient/libsamp/doc/html/functions.html @@ -0,0 +1,170 @@ + + +SAMP Client Library: Data Fields + + + + + +
+Here is a list of all documented struct and union fields with links to the struct/union documentation for each field: +

+

- a -

+

- c -

+

- d -

+

- e -

+

- h -

+

- i -

+

- l -

+

- m -

+

- n -

+

- p -

+

- s -

+

- t -

+

- u -

+

- v -

+
+
Generated on Wed Feb 27 21:10:16 2013 for SAMP Client Library by  + +doxygen 1.5.9
+ + diff --git a/vendor/voclient/libsamp/doc/html/functions_vars.html b/vendor/voclient/libsamp/doc/html/functions_vars.html new file mode 100644 index 00000000..6d72cb8e --- /dev/null +++ b/vendor/voclient/libsamp/doc/html/functions_vars.html @@ -0,0 +1,170 @@ + + +SAMP Client Library: Data Fields - Variables + + + + + +
+  +

+

- a -

+

- c -

+

- d -

+

- e -

+

- h -

+

- i -

+

- l -

+

- m -

+

- n -

+

- p -

+

- s -

+

- t -

+

- u -

+

- v -

+
+
Generated on Wed Feb 27 21:10:16 2013 for SAMP Client Library by  + +doxygen 1.5.9
+ + diff --git a/vendor/voclient/libsamp/doc/html/globals.html b/vendor/voclient/libsamp/doc/html/globals.html new file mode 100644 index 00000000..8e0c8d64 --- /dev/null +++ b/vendor/voclient/libsamp/doc/html/globals.html @@ -0,0 +1,61 @@ + + +SAMP Client Library: Data Fields + + + + + +
+Here is a list of all documented functions, variables, defines, enums, and typedefs with links to the documentation: +

+

- h -

+
+
Generated on Wed Feb 27 21:10:16 2013 for SAMP Client Library by  + +doxygen 1.5.9
+ + diff --git a/vendor/voclient/libsamp/doc/html/globals_0x6c.html b/vendor/voclient/libsamp/doc/html/globals_0x6c.html new file mode 100644 index 00000000..8bfefc64 --- /dev/null +++ b/vendor/voclient/libsamp/doc/html/globals_0x6c.html @@ -0,0 +1,56 @@ + + +SAMP Client Library: Data Fields + + + + + +
+Here is a list of all documented functions, variables, defines, enums, and typedefs with links to the documentation: +

+

- l -

+
+
Generated on Wed Feb 27 21:10:16 2013 for SAMP Client Library by  + +doxygen 1.5.9
+ + diff --git a/vendor/voclient/libsamp/doc/html/globals_0x6d.html b/vendor/voclient/libsamp/doc/html/globals_0x6d.html new file mode 100644 index 00000000..8e11ad5f --- /dev/null +++ b/vendor/voclient/libsamp/doc/html/globals_0x6d.html @@ -0,0 +1,59 @@ + + +SAMP Client Library: Data Fields + + + + + +
+Here is a list of all documented functions, variables, defines, enums, and typedefs with links to the documentation: +

+

- m -

+
+
Generated on Wed Feb 27 21:10:16 2013 for SAMP Client Library by  + +doxygen 1.5.9
+ + diff --git a/vendor/voclient/libsamp/doc/html/globals_0x6e.html b/vendor/voclient/libsamp/doc/html/globals_0x6e.html new file mode 100644 index 00000000..3d4bdbf9 --- /dev/null +++ b/vendor/voclient/libsamp/doc/html/globals_0x6e.html @@ -0,0 +1,65 @@ + + +SAMP Client Library: Data Fields + + + + + +
+Here is a list of all documented functions, variables, defines, enums, and typedefs with links to the documentation: +

+

- n -

+
+
Generated on Wed Feb 27 21:10:16 2013 for SAMP Client Library by  + +doxygen 1.5.9
+ + diff --git a/vendor/voclient/libsamp/doc/html/globals_0x6f.html b/vendor/voclient/libsamp/doc/html/globals_0x6f.html new file mode 100644 index 00000000..9b6f518f --- /dev/null +++ b/vendor/voclient/libsamp/doc/html/globals_0x6f.html @@ -0,0 +1,55 @@ + + +SAMP Client Library: Data Fields + + + + + +
+Here is a list of all documented functions, variables, defines, enums, and typedefs with links to the documentation: +

+

- o -

+
+
Generated on Wed Feb 27 21:10:16 2013 for SAMP Client Library by  + +doxygen 1.5.9
+ + diff --git a/vendor/voclient/libsamp/doc/html/globals_0x70.html b/vendor/voclient/libsamp/doc/html/globals_0x70.html new file mode 100644 index 00000000..e8e3097e --- /dev/null +++ b/vendor/voclient/libsamp/doc/html/globals_0x70.html @@ -0,0 +1,56 @@ + + +SAMP Client Library: Data Fields + + + + + +
+Here is a list of all documented functions, variables, defines, enums, and typedefs with links to the documentation: +

+

- p -

+
+
Generated on Wed Feb 27 21:10:16 2013 for SAMP Client Library by  + +doxygen 1.5.9
+ + diff --git a/vendor/voclient/libsamp/doc/html/globals_0x73.html b/vendor/voclient/libsamp/doc/html/globals_0x73.html new file mode 100644 index 00000000..96e37b25 --- /dev/null +++ b/vendor/voclient/libsamp/doc/html/globals_0x73.html @@ -0,0 +1,671 @@ + + +SAMP Client Library: Data Fields + + + + + +
+Here is a list of all documented functions, variables, defines, enums, and typedefs with links to the documentation: +

+

- s -

+
+
Generated on Wed Feb 27 21:10:16 2013 for SAMP Client Library by  + +doxygen 1.5.9
+ + diff --git a/vendor/voclient/libsamp/doc/html/globals_defs.html b/vendor/voclient/libsamp/doc/html/globals_defs.html new file mode 100644 index 00000000..abc68a7f --- /dev/null +++ b/vendor/voclient/libsamp/doc/html/globals_defs.html @@ -0,0 +1,48 @@ + + +SAMP Client Library: Data Fields + + + + + +
+  +

+

+
+
Generated on Wed Feb 27 21:10:16 2013 for SAMP Client Library by  + +doxygen 1.5.9
+ + diff --git a/vendor/voclient/libsamp/doc/html/globals_func.html b/vendor/voclient/libsamp/doc/html/globals_func.html new file mode 100644 index 00000000..19f275e2 --- /dev/null +++ b/vendor/voclient/libsamp/doc/html/globals_func.html @@ -0,0 +1,652 @@ + + +SAMP Client Library: Data Fields + + + + + +
+  +

+

- s -

+
+
Generated on Wed Feb 27 21:10:16 2013 for SAMP Client Library by  + +doxygen 1.5.9
+ + diff --git a/vendor/voclient/libsamp/doc/html/globals_type.html b/vendor/voclient/libsamp/doc/html/globals_type.html new file mode 100644 index 00000000..8f5f5751 --- /dev/null +++ b/vendor/voclient/libsamp/doc/html/globals_type.html @@ -0,0 +1,57 @@ + + +SAMP Client Library: Data Fields + + + + + +
+  +

+

+
+
Generated on Wed Feb 27 21:10:16 2013 for SAMP Client Library by  + +doxygen 1.5.9
+ + diff --git a/vendor/voclient/libsamp/doc/html/globals_vars.html b/vendor/voclient/libsamp/doc/html/globals_vars.html new file mode 100644 index 00000000..7fab33c1 --- /dev/null +++ b/vendor/voclient/libsamp/doc/html/globals_vars.html @@ -0,0 +1,68 @@ + + +SAMP Client Library: Data Fields + + + + + +
+  +

+

+
+
Generated on Wed Feb 27 21:10:16 2013 for SAMP Client Library by  + +doxygen 1.5.9
+ + diff --git a/vendor/voclient/libsamp/doc/html/index.html b/vendor/voclient/libsamp/doc/html/index.html new file mode 100644 index 00000000..baf13dea --- /dev/null +++ b/vendor/voclient/libsamp/doc/html/index.html @@ -0,0 +1,25 @@ + + +SAMP Client Library: Main Page + + + + + +
+

SAMP Client Library Documentation

+

+

v1.0

+
Generated on Wed Feb 27 21:10:15 2013 for SAMP Client Library by  + +doxygen 1.5.9
+ + diff --git a/vendor/voclient/libsamp/doc/html/sampClient_8c.html b/vendor/voclient/libsamp/doc/html/sampClient_8c.html new file mode 100644 index 00000000..5627b620 --- /dev/null +++ b/vendor/voclient/libsamp/doc/html/sampClient_8c.html @@ -0,0 +1,497 @@ + + +SAMP Client Library: sampClient.c File Reference + + + + + +
+

sampClient.c File Reference

Client callable methods. +More... +

+#include <stdlib.h>
+#include <stdio.h>
+#include <unistd.h>
+#include <string.h>
+#include "samp.h"
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Functions

void samp_notify (handle_t handle, String recipId, Map msg)
 Make a notify() call to the Hub.
List samp_notifyAll (handle_t handle, Map msg)
 Make a notifyAll() call to the Hub.
String samp_call (handle_t handle, String recipId, String msg_tag, Map msg)
 Make a call() call to the Hub.
int samp_callAll (handle_t handle, String msg_tag, Map msg)
 Make a callAll() call to the Hub.
int samp_callAndWait (handle_t handle, String recipId, String msg_tag, Map msg)
 Make a callAndWait() call to the Hub.
int samp_Reply (handle_t handle, String msg_id, Map response)
 Reply to a message.
String samp_clientName (handle_t handle, String pubId)
 Get the Client name from a pubic-id.
int samp_setErr (handle_t handle, Map resp)
 Set the error response string.
String samp_getErr (handle_t handle)
 Get the error response string.
+


Detailed Description

+Client callable methods. +

+SAMPCLIENT.C -- Client callable methods.

+samp_notify (handle, recipId, msg_map) list = samp_notifyAll (handle, msg_map) str = samp_call (handle, recipId, tag, msg_map) map = samp_callAll (handle, msg_tag, msg_map) map = samp_callAndWait (handle, recipId, msg_tag, msg_map) stat = samp_Reply (handle, msg_id, resp_map)

+str = samp_clientName (handle, pubId) stat = samp_setErr (handle, resp_map) str = samp_getErr (handle)

+

Author:
Mike Fitzpatrick
+
Date:
7/10/11
+

Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
String samp_call (handle_t  handle,
String  recipId,
String  msg_tag,
Map  msg 
)
+
+
+ +

+Make a call() call to the Hub. +

+SAMP_CALL -- Make a call() call to the Hub

+

Parameters:
+ + + + + +
handle samp struct handle
recipId recipient ID
msg_tag message tag
msg message map
+
+
Returns:
message ID
+ +

References Samp::debug, Samp::errortxt, Samp::hub, hub, Hub::id, Hub::privateKey, samp_app2id(), and Samp::trace.

+ +

Referenced by samp_sendMsg().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
int samp_callAll (handle_t  handle,
String  msg_tag,
Map  msg 
)
+
+
+ +

+Make a callAll() call to the Hub. +

+SAMP_CALLALL -- Make a callAll() call to the Hub

+

Parameters:
+ + + + +
handle samp struct handle
msg_tag message tag
msg message map
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::debug, Samp::errortxt, Samp::hub, hub, Hub::id, Hub::privateKey, samp_setErr(), and Samp::trace.

+ +

Referenced by samp_Ping(), and samp_sendMsg().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_callAndWait (handle_t  handle,
String  recipId,
String  msg_tag,
Map  msg 
)
+
+
+ +

+Make a callAndWait() call to the Hub. +

+SAMP_CALLANDWAIT -- Make a callAndWait() call to the Hub

+

Parameters:
+ + + + + +
handle samp struct handle
recipId recipient ID
msg_tag message tag
msg message map
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::debug, Samp::errortxt, Samp::hub, hub, Hub::id, Hub::privateKey, samp_app2id(), samp_setErr(), Hub::timeout, and Samp::trace.

+ +

Referenced by samp_Ping(), and samp_sendMsg().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
String samp_clientName (handle_t  handle,
String  pubId 
)
+
+
+ +

+Get the Client name from a pubic-id. +

+SAMP_CLIENTNAME -- Get the Client name from a pubic-id.

+

Parameters:
+ + + +
handle samp struct handle
pubId public ID
+
+
Returns:
declared application name
+ +
+

+ +

+
+ + + + + + + + + +
String samp_getErr (handle_t  handle  ) 
+
+
+ +

+Get the error response string. +

+SAMP_GETERR -- Get the error response string.

+

Parameters:
+ + +
handle samp struct handle
+
+
Returns:
Error text string
+ +

References Samp::errortxt.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void samp_notify (handle_t  handle,
String  recipId,
Map  msg 
)
+
+
+ +

+Make a notify() call to the Hub. +

+SAMP_NOTIFY -- Make a notify() call to the Hub

+

Parameters:
+ + + + +
handle samp struct handle
recipId recipient ID
msg message map
+
+
Returns:
nothing
+ +

References Samp::hub, hub, Hub::id, Hub::privateKey, samp_app2id(), and samp_nullResponse().

+ +

Referenced by samp_sendMsg().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
List samp_notifyAll (handle_t  handle,
Map  msg 
)
+
+
+ +

+Make a notifyAll() call to the Hub. +

+SAMP_NOTIFYALL -- Make a notifyAll() call to the Hub

+

Parameters:
+ + + +
handle samp struct handle
msg message map
+
+
Returns:
nothing
+ +

References Samp::debug, Samp::errortxt, Samp::hub, hub, Hub::id, Hub::privateKey, and Samp::trace.

+ +

Referenced by samp_sendMsg().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
int samp_Reply (handle_t  handle,
String  msg_id,
Map  response 
)
+
+
+ +

+Reply to a message. +

+SAMP_REPLY -- Reply to a message. All we do here is send the reply message, we require that the response Map already be defined.

+

Parameters:
+ + + + +
handle samp struct handle
msg_id message ID
response response map
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::hub, hub, Hub::id, Hub::privateKey, and samp_nullResponse().

+ +

Referenced by samp_receiveCall().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
int samp_setErr (handle_t  handle,
Map  resp 
)
+
+
+ +

+Set the error response string. +

+SAMP_SETERR -- Set the error response string/code.

+

Parameters:
+ + + +
handle samp struct handle
resp Response map
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::errortxt.

+ +

Referenced by samp_callAll(), samp_callAndWait(), samp_Ping(), and samp_sendMsg().

+ +
+

+

+
Generated on Wed Feb 27 21:10:15 2013 for SAMP Client Library by  + +doxygen 1.5.9
+ + diff --git a/vendor/voclient/libsamp/doc/html/sampCommands_8c.html b/vendor/voclient/libsamp/doc/html/sampCommands_8c.html new file mode 100644 index 00000000..9e26df34 --- /dev/null +++ b/vendor/voclient/libsamp/doc/html/sampCommands_8c.html @@ -0,0 +1,362 @@ + + +SAMP Client Library: sampCommands.c File Reference + + + + + +
+

sampCommands.c File Reference

SAMP commands used by app to send administrative messages. +More... +

+#include <stdlib.h>
+#include <stdio.h>
+#include <unistd.h>
+#include <string.h>
+#include <time.h>
+#include <ctype.h>
+#include "samp.h"
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Functions

int samp_Register (handle_t handle)
 Register with the Hub using the currently stored metadata.
int samp_UnRegister (handle_t handle)
 Un-Register from the hub.
int samp_DeclareMetadata (handle_t handle)
 (Re)Declare all of our metadata.
int samp_Ping (handle_t handle, String appName)
 Ping the hub/app to see if it is alive (returns >0).
Map samp_GetMetadata (handle_t handle, String pubId)
 Get the metadata for a specified app.
int samp_DeclareSubscriptions (handle_t handle)
 Declare the messages we're interested in.
+Map samp_GetSubscriptions (handle_t handle, String pubId)
List samp_GetRegisteredClients (handle_t handle)
 Get public-ids of the registered clients.
List samp_GetSubscribedClients (handle_t handle, String mtype)
 Get clients matching the mtype subscription.
+


Detailed Description

+SAMP commands used by app to send administrative messages. +

+SAMPCOMMANDS.C -- SAMP commands used by app to send administrative messages.

+stat = samp_Register (handle) stat = samp_UnRegister (handle) stat = samp_DeclareMetadata (handle) stat = samp_Ping (handle, appName) map = samp_GetMetadata (handle, pubId) samp_DeclareSubscriptions (handle) map = samp_GetSubscriptions (handle) list = samp_GetRegisteredClients (handle) list = samp_GetSubscribedClients (handle, mtype)

+

Author:
Mike Fitzpatrick
+
Date:
7/10/11
+

Function Documentation

+ +
+
+ + + + + + + + + +
int samp_DeclareMetadata (handle_t  handle  ) 
+
+
+ +

+(Re)Declare all of our metadata. +

+SAMP_DECLAREMETATA -- (Re)Declare all of our metadata.

+

Parameters:
+ + +
handle samp struct handle
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::hub, hub, and samp_hubDeclareMetadata().

+ +
+

+ +

+
+ + + + + + + + + +
int samp_DeclareSubscriptions (handle_t  handle  ) 
+
+
+ +

+Declare the messages we're interested in. +

+SAMP_DECLARESUBSCRIPIONS -- Declare the messages we're interested in.

+

Parameters:
+ + +
handle samp struct handle
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::hub, hub, and samp_hubDeclareSubscriptions().

+ +

Referenced by samp_Unsubscribe().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
Map samp_GetMetadata (handle_t  handle,
String  pubId 
)
+
+
+ +

+Get the metadata for a specified app. +

+SAMP_GETMETADATA -- Get the metadata for a specified app.

+

Parameters:
+ + + +
handle samp struct handle
pubId App public-id
+
+
Returns:
Map to message response
+ +

References Samp::errortxt, Samp::hub, hub, Hub::id, and Hub::privateKey.

+ +

Referenced by samp_mapClients().

+ +
+

+ +

+
+ + + + + + + + + +
List samp_GetRegisteredClients (handle_t  handle  ) 
+
+
+ +

+Get public-ids of the registered clients. +

+SAMP_GETREGISTEREDCLIENTS -- Get public-ids of the registered clients.

+

Parameters:
+ + +
handle samp struct handle
+
+
Returns:
handle to list of registered clients
+ +

References Samp::hub, Hub::id, Hub::privateKey, samp_listLen(), samp_newList(), and samp_setStringInList().

+ +

Referenced by samp_mapClients().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
List samp_GetSubscribedClients (handle_t  handle,
String  mtype 
)
+
+
+ +

+Get clients matching the mtype subscription. +

+SAMP_GETSUBSCRIBEDCLIENTS -- Get clients matching the mtype subscription.

+

Parameters:
+ + + +
handle samp struct handle
mtype mtype string
+
+
Returns:
handle to list of clients having mtype subscription
+ +

References Samp::hub, Hub::id, Hub::privateKey, samp_listLen(), samp_newList(), and samp_setStringInList().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
int samp_Ping (handle_t  handle,
String  appName 
)
+
+
+ +

+Ping the hub/app to see if it is alive (returns >0). +

+SAMP_PING -- Ping the hub/app to see if it is alive (returns >0).

+

Parameters:
+ + + +
handle samp struct handle
appName application name
+
+
Returns:
OK or ERR if no response
+ +

References Samp::hub, samp_app2id(), samp_callAll(), samp_callAndWait(), samp_freeMap(), samp_freeMsg(), samp_hubPing(), samp_msgParam(), samp_newMsg(), samp_newParam(), and samp_setErr().

+ +
+

+ +

+
+ + + + + + + + + +
int samp_Register (handle_t  handle  ) 
+
+
+ +

+Register with the Hub using the currently stored metadata. +

+SAMP_REGISTER -- Register with the Hub using the currently stored metadata.

+

Parameters:
+ + +
handle samp struct handle
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::hub, hub, Hub::hubId, Hub::id, Hub::privateKey, samp_replyStatus(), Hub::secret, and Hub::selfId.

+ +
+

+ +

+
+ + + + + + + + + +
int samp_UnRegister (handle_t  handle  ) 
+
+
+ +

+Un-Register from the hub. +

+SAMP_UNREGISTER -- Un-Register from the hub.

+

Parameters:
+ + +
handle samp struct handle
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::hub, hub, and samp_hubUnRegister().

+ +
+

+

+
Generated on Wed Feb 27 21:10:15 2013 for SAMP Client Library by  + +doxygen 1.5.9
+ + diff --git a/vendor/voclient/libsamp/doc/html/sampDecl_8h.html b/vendor/voclient/libsamp/doc/html/sampDecl_8h.html new file mode 100644 index 00000000..f7993df2 --- /dev/null +++ b/vendor/voclient/libsamp/doc/html/sampDecl_8h.html @@ -0,0 +1,6737 @@ + + +SAMP Client Library: sampDecl.h File Reference + + + + + +
+

sampDecl.h File Reference

SAMP interface method declarations. +More... +

+ +

+Go to the source code of this file. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Data Structures

struct  appMD
struct  Subs
struct  Client
struct  Hub
struct  Samp

Defines

#define SZ_NAME   256
+#define SZ_LINE   256
+#define SZ_SECRET   64
+#define SZ_DESC   8192
+#define SZ_URL   1024
+#define SZ_CMD   1024
+#define MAX_SAMPS   16
+#define MAX_HUBS   16
+#define MAX_MDATTRS   32
+#define MAX_SUBS   256
+#define MAX_CLIENTS   32
+#define MAX_ROWS   256
+#define MSG_SYNC   0
+#define MSG_ASYNC   1
+#define MSG_NOTIFY   2
+#define DEF_CALLMODE   MSG_ASYNC

Typedefs

+typedef XINT handle_t
typedef int Map
typedef int List
typedef int Msg
typedef int Param
typedef char * String
+typedef struct appMDappMDP
+typedef struct SubsSubsP
+typedef struct ClientClientP
+typedef struct HubHubP
+typedef struct SampSampP

Functions

handle_t sampInit (String appName, String description)
 Initialize the SAMP interface.
void samp_Metadata (handle_t handle, String field, String value)
 Set a metadata field value for the application.
void samp_Subscribe (handle_t handle, String mtype, void *func)
 Subscribe to a given mtype.
void samp_Unsubscribe (handle_t handle, String mtype)
 Unsubscribe to a given mtype.
int sampStartup (handle_t handle)
 Startup the SAMP interface to send/receive messages.
int sampShutdown (handle_t handle)
 Shut down the active SAMP interface.
void sampClose (handle_t handle)
 Close the SAMP interface and free resources.
void samp_setSyncMode (handle_t handle)
 Set the calling mode to use synchronous messaging.
void samp_setASyncMode (handle_t handle)
 Set the calling mode to use asynchronous messaging.
void samp_setNotifyMode (handle_t handle)
 Set the calling mode to use notification messaging.
void samp_setCallByRef (handle_t handle)
 Have interface call user handlers by reference.
void samp_setCallMode (handle_t handle, int mode)
 Set the default calling mode (synch or asynch).
void samp_setReplyCallback (handle_t handle, int *func)
 Set the Reply callback. samp_setReplyCallback (handle_t handle, int *func).
void samp_setResponseCallback (handle_t handle, int *func)
 Set the Response callback. samp_setResponseCallback (handle_t handle, int *func).
void samp_setTimeout (handle_t handle, int timeout)
 Set the message timeout value (in seconds).
+void samp_setAppName (handle_t handle, String name)
void samp_setAppVersion (handle_t handle, String version)
 Set the application name string.
void samp_defaultReplyHandler (handle_t handle)
 The interface's default Reply handler.
+void samp_deaultfResponseHandler (handle_t handle)
int samp_replyStatus (handle_t handle)
 Reply with the status of the last message sent.
int samp_mapClients (handle_t handle)
int samp_listClients (handle_t handle)
int samp_addClient (handle_t handle, String name, String id)
int samp_removeClient (handle_t handle, String id)
Map samp_getOKMap (void)
Map samp_getNullMap (void)
int samp_Register (handle_t handle)
 Register with the Hub using the currently stored metadata.
int samp_UnRegister (handle_t handle)
 Un-Register from the hub.
int samp_DeclareMetadata (handle_t handle)
 (Re)Declare all of our metadata.
int samp_Ping (handle_t handle, String appName)
 Ping the hub/app to see if it is alive (returns >0).
Map samp_GetMetadata (handle_t handle, String pubId)
 Get the metadata for a specified app.
int samp_DeclareSubscriptions (handle_t handle)
 Declare the messages we're interested in.
+Map samp_GetSubscriptions (handle_t handle, String pubId)
List samp_GetRegisteredClients (handle_t handle)
 Get public-ids of the registered clients.
List samp_GetSubscribedClients (handle_t handle, String mtype)
 Get clients matching the mtype subscription.
int samp_tableLoadVOTable (handle_t handle, String recip, String url, String tableId, String name)
 Tell an app to load a VOTable.
int samp_tableLoadFITS (handle_t handle, String recip, String url, String tableId, String name)
 Tell an app to load a FITS table.
int samp_imageLoadFITS (handle_t handle, String recip, String url, String imageId, String name)
 Tell an app to load a FITS image.
int samp_tableHighlightRow (handle_t handle, String recip, String tableId, String url, int row)
 Tell an app to highlight a table row.
int samp_tableSelectRowList (handle_t handle, String recip, String tableId, String url, int rows[], int nrows)
 Tell an app to select a list of table rows.
int samp_coordPointAtSky (handle_t handle, String recip, float ra, float dec)
 Tell an app to point at an RA/Dec coordinate.
int samp_specLoadSSAGeneric (handle_t handle, String recip, String url, Map meta, String spectrumId, String name)
 Load a generic spectrum from an SSA service.
int samp_cmdExec (handle_t handle, String recip, String cmd)
 Execute a command in a remote application.
char * samp_envGet (handle_t handle, String recip, String name)
 Get an environment variable in a remote application.
int samp_envSet (handle_t handle, String recip, String name, String value)
 Set an environment variable in a remote application.
char * samp_paramGet (handle_t handle, String recip, String name)
 Get a parameter variable in a remote application.
int samp_paramSet (handle_t handle, String recip, String name, String value)
 Set an parameter variable in a remote application.
int samp_bibLoad (handle_t handle, String recip, String bibcode)
 Exchange a bibcode.
int samp_resourceLoad (handle_t handle, String recip, String type, String name, Map resMap)
 Exchange a resource list.
int samp_sendGeneric (handle_t handle, String recip, String mtype, String args[])
 Send a geenric message.
int samp_sendMsg (handle_t handle, String recip, Map msg)
 Send the specified message.
void samp_notify (handle_t handle, String recipId, Map msg)
 Make a notify() call to the Hub.
List samp_notifyAll (handle_t handle, Map msg)
 Make a notifyAll() call to the Hub.
String samp_call (handle_t handle, String recipId, String tag, Map msg)
 Make a call() call to the Hub.
int samp_callAll (handle_t handle, String msg_tag, Map msg)
 Make a callAll() call to the Hub.
int samp_callAndWait (handle_t handle, String recipId, String msg_tag, Map msg)
 Make a callAndWait() call to the Hub.
int samp_Reply (handle_t handle, String msg_id, Map resp)
 Reply to a message.
String samp_clientName (handle_t handle, String pubId)
 Get the Client name from a pubic-id.
int samp_setErr (handle_t handle, Map resp)
 Set the error response string.
String samp_getErr (handle_t handle)
 Get the error response string.
int samp_receiveCall (void *data)
 test.echo method
int samp_receiveNotification (void *data)
 receiveNotification () client method.
int samp_receiveResponse (void *data)
 receiveResponse () client method.
void samp_setUserHandler (handle_t handle, String mtype, void *func)
 Set the user-interface handler for the mtype.
void samp_setSampHandler (handle_t handle, String mtype, void *func)
 Set the SAMP interface handler for the mtype.
void * samp_getUserHandler (String mtype)
 Get the User handler for the named mtype.
void * samp_getSampHandler (String mtype)
 Get the Samphandler for the named mtype.
void samp_execUserHandler (String mtype, String sender, String msg_id, Map params)
 Execute the user-defined handler for the mtype.
+int samp_genericMsgHandler (String sender, String mtype, String msg_id, Map msg_map)
int samp_PingHandler (String sender, String mtype, String msg_id, Map msg_map)
 Is app alive and responding to messages?
int samp_StatusHandler (String sender, String mtype, String msg_id, Map msg_map)
 Return status of the task.
int samp_imLoadHandler (String sender, String mtype, String msg_id, Map msg_map)
 Handle an image.load.fits message.
int samp_tbLoadHandler (String sender, String mtype, String msg_id, Map msg_map)
 Handle a generic table.load.* message.
int samp_tbLoadFITSHandler (String sender, String mtype, String msg_id, Map msg_map)
 Handle a generic table.load.fits message.
int samp_tbLoadVOTHandler (String sender, String mtype, String msg_id, Map msg_map)
 Handle a generic table.load.votable message.
int samp_specLoadHandler (String sender, String mtype, String msg_id, Map msg_map)
 Handle a spectrum.load.* message.
int samp_specSSAHandler (String sender, String mtype, String msg_id, Map msg_map)
 Handle a spectrum.load.ssa-generic message.
int samp_tbHighlightHandler (String sender, String mtype, String msg_id, Map msg_map)
 Handle a table.highlight.row message.
int samp_tbSelectHandler (String sender, String mtype, String msg_id, Map msg_map)
 Handle a table.select.rowList message.
int samp_pointAtHandler (String sender, String mtype, String msg_id, Map msg_map)
 Handle a coord.pointAt.sky message.
int samp_bibcodeHandler (String sender, String mtype, String msg_id, Map msg_map)
 Handle a bibcode.load message.
int samp_cmdExecHandler (String sender, String mtype, String msg_id, Map msg_map)
 Handle a client.cmd.exec message.
int samp_envGetHandler (String sender, String mtype, String msg_id, Map msg_map)
 Handle a client.env.set message.
int samp_envSetHandler (String sender, String mtype, String msg_id, Map msg_map)
 Handle a client.env.set message.
int samp_paramGetHandler (String sender, String mtype, String msg_id, Map msg_map)
 Handle a client.param.set message.
int samp_paramSetHandler (String sender, String mtype, String msg_id, Map msg_map)
 Handle a client.param.set message.
int samp_resLoadHandler (String sender, String mtype, String msg_id, Map msg_map)
 handle a voresource.loadlist message
int samp_resConeHandler (String sender, String mtype, String msg_id, Map msg_map)
 handle a voresource.loadlist message
int samp_resSiapHandler (String sender, String mtype, String msg_id, Map msg_map)
 handle a voresource.loadlist message
int samp_resSsapHandler (String sender, String mtype, String msg_id, Map msg_map)
 handle a voresource.loadlist message
int samp_resTapHandler (String sender, String mtype, String msg_id, Map msg_map)
 handle a voresource.loadlist message
int samp_resVOSpaceHandler (String sender, String mtype, String msg_id, Map msg_map)
 handle a voresource.loadlist message
+void samp_printMessage (String mtype, String sender, String msg_id, Map params)
void samp_printMap (String name, Map map)
int samp_nullResponse (void *data)
+int samp_testEcho (void *data)
handle_t samp_hubOpen (Samp *samp)
 Discover and open a connection to the SAMP Hub.
int samp_hubClose (handle_t handle)
 Close a connection to the Hub.
List samp_getAvailableHubs (handle_t handle)
 Get a list of available Hubs.
+char * samp_getActiveHubName (handle_t handle)
+int samp_getActiveHub (handle_t handle)
+int samp_hubInit (handle_t samp, char *appName, char *descr)
int samp_processHubEvent (String mtype, Map params)
 Determine the type of Hub event mtype.
int samp_hubEvent (String mtype)
 Determine the type of Hub event mtype.
int samp_hubRegister (Hub *hub)
 Send a Register message to the Hub.
int samp_hubUnRegister (Hub *hub)
 Send a UnRegister message to the Hub.
int samp_hubSendShutdown (Hub *hub)
 Send a samp.app.event.shutdown message to the Hub.
int samp_hubSetXmlrpcCallback (Hub *hub)
 Set the client callback and send to Hub.
int samp_hubPing (Hub *hub)
 Ping the Hub to see if it is alive.
int samp_hubDeclareMetadata (Hub *hub)
 Declare "standard" metadata to the Hub.
int samp_hubDeclareSubscriptions (Hub *hub)
 Declare mtype subscriptions to the Hub.
handle_t samp_newList ()
 Create a new List object.
void samp_freeList (List list)
 Free the given List object.
int samp_listLen (List list)
 Get number of elements in a List.
void samp_setStringInList (List list, char *value)
 Set a string in a List (append).
void samp_setMapInList (List list, Map map)
 Set a Map in a List (append).
void samp_setListInList (List list1, List list2)
 Set a List in another List (append).
void samp_setIntInList (List list, int value)
 Set an Int in a List (append).
void samp_setFloatInList (List list, float value)
 Set a Float in a List (append).
char * samp_getStringFromList (List list, int index)
 Get a string from the List.
Map samp_getMapFromList (List list, int index)
 Get a Map from the List.
List samp_getListFromList (List list, int index)
 Get a List from the List.
+int samp_getIntFromList (List list, int index)
float samp_getFloatFromList (List list, int index)
 Get a Float from the List.
handle_t samp_newMap (void)
 Create a new Map object.
void samp_freeMap (Map map)
 Free the given Map object.
+int samp_getMapSize (Map map)
+char * samp_getMapKey (Map map, int index)
+char * samp_getMapVal (Map map, int index)
void samp_setStringInMap (Map map, char *key, char *value)
 Set a string in a Map (append).
void samp_setMapInMap (Map map1, char *key, Map map2)
 Set a Map in a Map (append).
void samp_setListInMap (Map map, char *key, List list)
 Set a List in a Map (append).
void samp_setIntInMap (Map map, char *key, int value)
 Set a Int in a Map (append).
void samp_setFloatInMap (Map map, char *key, float value)
 Set a string in a Map (append).
char * samp_getStringFromMap (Map map, char *key)
 Get a string from the Map.
Map samp_getMapFromMap (Map map, char *key)
 Get a Map from the Map.
List samp_getListFromMap (Map map, char *key)
 Get a LIST from the Map.
int samp_getIntFromMap (Map map, char *key)
 Get a integer from the Map.
float samp_getFloatFromMap (Map map, char *key)
 Get a float from the Map.
Msg samp_newMsg (void)
 Create a new Msg object.
void samp_freeMsg (Msg msg)
 Free the given Msg object.
+void samp_msgMType (Msg msg, String mtype)
void samp_msgParam (Msg msg, Param param)
 Add a parameter to the Msg.
+char * samp_msgTag (void)
Param samp_newParam (void)
 Create a new Param object.
void samp_freeParam (Param param)
 Free the given Msg object.
Param samp_paramInit (Msg msg)
 Get number of Params.
+void samp_addStringParam (Msg msg, char *keyw, String val)
void samp_addMapParam (Msg msg, char *keyw, Map val)
 Add a parameter to the Param.
void samp_addListParam (Msg msg, char *keyw, List val)
 Add a parameter to the Param.
void samp_addIntParam (Msg msg, char *keyw, int val)
 Add a <SAMP int>=""> parameter to the Param.
void samp_addFloatParam (Msg msg, char *keyw, float val)
 Add a <SAMP float>=""> parameter to the Param.
int samp_paramLen (Msg msg)
 Get number of Params.
void sampLog (handle_t handle, char *format,...)
 SAMP message logger.
void sampTrace (handle_t handle, char *format,...)
 SAMP tracer.
+handle_t samp_newHandle (void *ptr)
+void samp_freeHandle (handle_t handle)
+handle_t samp_P2H (void *ptr)
+void * samp_H2P (handle_t handle)
char * samp_app2id (handle_t handle, char *appName)
 Convert an application name to a public-ID.
char * samp_id2app (handle_t handle, char *pubId)
 Convert a public-ID to the application name.
int samp_serverPort (void)
 Return a unique port number for the server.
void samp_printMetadata (handle_t handle, char *name)
 Print the metadata for the application.
char * samp_getMetadata (handle_t handle, char *name)
 Get the metadata item for the application.
+


Detailed Description

+SAMP interface method declarations. +

+SAMPDECL.H -- SAMP interface method declarations.

+

Author:
Mike FItzpatrick
+
Date:
8/10/11
+

Define Documentation

+ +

+


Typedef Documentation

+ +
+
+ + + + +
typedef int List
+
+
+ +

+SAMP Map datatype +

+

+ +

+
+ + + + +
typedef int Map
+
+
+ +

+generic object handle +

+

+ +

+
+ + + + +
typedef int Msg
+
+
+ +

+SAMP List datatype +

+

+ +

+
+ + + + +
typedef int Param
+
+
+ +

+SAMP Msg datatype +

+

+ +

+
+ + + + +
typedef char* String
+
+
+ +

+SAMP Param datatype +

+

+


Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
int samp_addClient (handle_t  handle,
String  name,
String  id 
)
+
+
+ +

+SAMP_ADDCLIENT -- Add a newly registered client to the list of known apps so we can do the public-private name translation. +

References Samp::clients, Client::name, Samp::nclients, and SZ_NAME.

+ +

Referenced by samp_processHubEvent().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void samp_addFloatParam (Msg  msg,
char *  keyw,
float  val 
)
+
+
+ +

+Add a <SAMP float>=""> parameter to the Param. +

+SAMP_ADDFLOATPARAM -- Add a <SAMP float>=""> parameter to the Param.

+

Parameters:
+ + + + +
msg handle to Msg object
keyw map keyword
val floating point value
+
+
Returns:
nothing
+ +

References samp_paramInit().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void samp_addIntParam (Msg  msg,
char *  keyw,
int  val 
)
+
+
+ +

+Add a <SAMP int>=""> parameter to the Param. +

+SAMP_ADDINTPARAM -- Add a <SAMP int>=""> parameter to the Param.

+

Parameters:
+ + + + +
msg handle to Msg object
keyw map keyword
val integer value
+
+
Returns:
nothing
+ +

References samp_paramInit().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void samp_addListParam (Msg  msg,
char *  keyw,
List  val 
)
+
+
+ +

+Add a parameter to the Param. +

+SAMP_ADDLISTPARAM -- Add a List parameter to the Param.

+

Parameters:
+ + + + +
msg handle to Msg object
keyw map keyword
val value list
+
+
Returns:
nothing
+ +

References samp_paramInit().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void samp_addMapParam (Msg  msg,
char *  keyw,
Map  val 
)
+
+
+ +

+Add a parameter to the Param. +

+SAMP_ADDMAPPARAM -- Add a Map parameter to the Param.

+

Parameters:
+ + + + +
msg handle to Msg object
keyw map keyword
val value map
+
+
Returns:
nothing
+ +

References samp_paramInit().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
char* samp_app2id (handle_t  handle,
char *  appName 
)
+
+
+ +

+Convert an application name to a public-ID. +

+SAMP_APP2ID -- Convert an application name to a public-ID.

+

Parameters:
+ + + +
handle samp struct handle
appName name of registered application
+
+
Returns:
public ID of application
+ +

References Samp::clients, Client::name, and Samp::nclients.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_bibcodeHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Handle a bibcode.load message. +

+SAMP_BIBCODEHANDLER -- Handle a bibcode.load message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::handlerMode, samp_getStringFromMap(), samp_getUserHandler(), and SZ_NAME.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
int samp_bibLoad (handle_t  handle,
String  recip,
String  bibcode 
)
+
+
+ +

+Exchange a bibcode. +

+SAMP_BIBLOAD -- Exchange a bibcode.

+

Parameters:
+ + + + +
handle samp struct handle
recip name of recipient (or 'all')
bibcode Bibcode string
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::hub, hub, samp_freeMsg(), samp_msgParam(), samp_newMsg(), samp_newParam(), and samp_sendMsg().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
String samp_call (handle_t  handle,
String  recipId,
String  msg_tag,
Map  msg 
)
+
+
+ +

+Make a call() call to the Hub. +

+SAMP_CALL -- Make a call() call to the Hub

+

Parameters:
+ + + + + +
handle samp struct handle
recipId recipient ID
msg_tag message tag
msg message map
+
+
Returns:
message ID
+ +

References Samp::debug, Samp::errortxt, Samp::hub, hub, Hub::id, Hub::privateKey, samp_app2id(), and Samp::trace.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
int samp_callAll (handle_t  handle,
String  msg_tag,
Map  msg 
)
+
+
+ +

+Make a callAll() call to the Hub. +

+SAMP_CALLALL -- Make a callAll() call to the Hub

+

Parameters:
+ + + + +
handle samp struct handle
msg_tag message tag
msg message map
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::debug, Samp::errortxt, Samp::hub, hub, Hub::id, Hub::privateKey, samp_setErr(), and Samp::trace.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_callAndWait (handle_t  handle,
String  recipId,
String  msg_tag,
Map  msg 
)
+
+
+ +

+Make a callAndWait() call to the Hub. +

+SAMP_CALLANDWAIT -- Make a callAndWait() call to the Hub

+

Parameters:
+ + + + + +
handle samp struct handle
recipId recipient ID
msg_tag message tag
msg message map
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::debug, Samp::errortxt, Samp::hub, hub, Hub::id, Hub::privateKey, samp_app2id(), samp_setErr(), Hub::timeout, and Samp::trace.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
String samp_clientName (handle_t  handle,
String  pubId 
)
+
+
+ +

+Get the Client name from a pubic-id. +

+SAMP_CLIENTNAME -- Get the Client name from a pubic-id.

+

Parameters:
+ + + +
handle samp struct handle
pubId public ID
+
+
Returns:
declared application name
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
int samp_cmdExec (handle_t  handle,
String  recip,
String  cmd 
)
+
+
+ +

+Execute a command in a remote application. +

+SAMP_CMDEXEC -- Execute a command in a remote application.

+

Parameters:
+ + + + +
handle samp struct handle
recip name of recipient (or 'all')
cmd Command string
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::hub, hub, samp_freeMsg(), samp_msgParam(), samp_newMsg(), samp_newParam(), and samp_sendMsg().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_cmdExecHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Handle a client.cmd.exec message. +

+SAMP_CMDEXECHANDLER -- Handle a client.cmd.exec message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::handlerMode, samp_getStringFromMap(), and samp_getUserHandler().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_coordPointAtSky (handle_t  handle,
String  recip,
float  ra,
float  dec 
)
+
+
+ +

+Tell an app to point at an RA/Dec coordinate. +

+SAMP_COORDPOINTATSKY -- Tell an app to point at an RA/Dec coordinate.

+

Parameters:
+ + + + + +
handle samp struct handle
recip name of recipient (or 'all')
ra RA of coord in degrees
dec Dec of coord in degrees
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::hub, hub, samp_addFloatParam(), samp_freeMsg(), samp_msgParam(), samp_newMsg(), samp_newParam(), and samp_sendMsg().

+ +
+

+ +

+
+ + + + + + + + + +
int samp_DeclareMetadata (handle_t  handle  ) 
+
+
+ +

+(Re)Declare all of our metadata. +

+SAMP_DECLAREMETATA -- (Re)Declare all of our metadata.

+

Parameters:
+ + +
handle samp struct handle
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::hub, hub, and samp_hubDeclareMetadata().

+ +
+

+ +

+
+ + + + + + + + + +
int samp_DeclareSubscriptions (handle_t  handle  ) 
+
+
+ +

+Declare the messages we're interested in. +

+SAMP_DECLARESUBSCRIPIONS -- Declare the messages we're interested in.

+

Parameters:
+ + +
handle samp struct handle
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::hub, hub, and samp_hubDeclareSubscriptions().

+ +
+

+ +

+
+ + + + + + + + + +
void samp_defaultReplyHandler (handle_t  handle  ) 
+
+
+ +

+The interface's default Reply handler. +

+SAMP_DEFAULTREPLYHANDLER -- The interface's default Reply handler.

+

Parameters:
+ + +
handle samp handle
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
char* samp_envGet (handle_t  handle,
String  recip,
String  name 
)
+
+
+ +

+Get an environment variable in a remote application. +

+SAMP_ENVGET -- Get an environment variable in a remote application.

+

Parameters:
+ + + + +
handle samp struct handle
recip name of recipient (or 'all')
name Name of variable in receiver's environment
+
+
Returns:
NULL, Value of variable, or list of values
+ +

References Samp::clients, Samp::errortxt, Samp::hub, hub, Hub::id, Client::name, Samp::nclients, Hub::privateKey, samp_app2id(), samp_freeMsg(), samp_msgParam(), samp_newMsg(), samp_newParam(), and Hub::timeout.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_envGetHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Handle a client.env.set message. +

+SAMP_ENVGETHANDLER -- Handle a client.env.set message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::handlerMode, samp_freeMap(), samp_getStringFromMap(), samp_getUserHandler(), samp_newMap(), samp_setHandlerReply(), samp_setMapInMap(), samp_setStringInMap(), and SZ_NAME.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_envSet (handle_t  handle,
String  recip,
String  name,
String  value 
)
+
+
+ +

+Set an environment variable in a remote application. +

+SAMP_ENVSET -- Set an environment variable in a remote application.

+

Parameters:
+ + + + + +
handle samp struct handle
recip name of recipient (or 'all')
name Name of variable in receiver's environment
value Value of variable or NULL
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::hub, hub, samp_freeMsg(), samp_msgParam(), samp_newMsg(), samp_newParam(), and samp_sendMsg().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_envSetHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Handle a client.env.set message. +

+SAMP_ENVSETHANDLER -- Handle a client.env.set message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::handlerMode, samp_getStringFromMap(), samp_getUserHandler(), and SZ_NAME.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
void samp_execUserHandler (String  sender,
String  mtype,
String  msg_id,
Map  params 
)
+
+
+ +

+Execute the user-defined handler for the mtype. +

+SAMP_EXECUSERHANDLER -- Execute the user-defined handler for the mtype.

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message-id string
params Mtype parameter Map
+
+
Returns:
nothing
+ +

References Samp::defaultUserFunc, Samp::handlerMode, samp_getFloatFromMap(), samp_getIntFromMap(), samp_getListFromMap(), samp_getMapFromMap(), samp_getStringFromMap(), samp_getUserHandler(), samp_listLen(), and SZ_NAME.

+ +
+

+ +

+
+ + + + + + + + + +
void samp_freeList (List  list  ) 
+
+
+ +

+Free the given List object. +

+SAMP_FREELIST -- Free the given List object

+

Parameters:
+ + +
list List object handle
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + +
void samp_freeMap (Map  map  ) 
+
+
+ +

+Free the given Map object. +

+SAMP_FREEMAP -- Free the given Map object

+

Parameters:
+ + +
map Map object to free
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + +
void samp_freeMsg (Msg  msg  ) 
+
+
+ +

+Free the given Msg object. +

+SAMP_FREEMSG -- Free the given Msg object

+

Parameters:
+ + +
msg Msg object to free
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + +
void samp_freeParam (Param  param  ) 
+
+
+ +

+Free the given Msg object. +

+SAMP_FREEPARAM -- Free the given Param object

+

Parameters:
+ + +
param Param object to free
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + +
List samp_getAvailableHubs (handle_t  handle  ) 
+
+
+ +

+Get a list of available Hubs. +

+SAMP_GETAVAILABLEHUBS -- Get a list of available Hubs

+

Parameters:
+ + +
handle hub handle
+
+
Returns:
List of hub handles
+ +
+

+ +

+
+ + + + + + + + + +
String samp_getErr (handle_t  handle  ) 
+
+
+ +

+Get the error response string. +

+SAMP_GETERR -- Get the error response string.

+

Parameters:
+ + +
handle samp struct handle
+
+
Returns:
Error text string
+ +

References Samp::errortxt.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
float samp_getFloatFromList (List  list,
int  index 
)
+
+
+ +

+Get a Float from the List. +

+SAMP_GETFLOATFROMLIST -- Get a Float from the List

+

Parameters:
+ + + +
list List object handle
index List index containing the desired value
+
+
Returns:
int value
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
float samp_getFloatFromMap (Map  map,
char *  key 
)
+
+
+ +

+Get a float from the Map. +

+SAMP_GETFLOATFROMMAP -- Get a float from the Map

+

Parameters:
+ + + +
map handle to Map object
key Map key
+
+
Returns:
floating point value
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
int samp_getIntFromMap (Map  map,
char *  key 
)
+
+
+ +

+Get a integer from the Map. +

+SAMP_GETINTFROMMAP -- Get a integer from the Map

+

Parameters:
+ + + +
map handle to Map object
key Map key
+
+
Returns:
integer value
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
List samp_getListFromList (List  list,
int  index 
)
+
+
+ +

+Get a List from the List. +

+Get an Int from the List.

+SAMP_GETLISTFROMLIST -- Get a List from the List

+

Parameters:
+ + + +
list List object handle
index List index containing the List
+
+
Returns:
List handle
+SAMP_GETINTFROMLIST -- Get an Int from the List

+

Parameters:
+ + + +
list List object handle
index List index containing the desired value
+
+
Returns:
int value
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
List samp_getListFromMap (Map  map,
char *  key 
)
+
+
+ +

+Get a LIST from the Map. +

+SAMP_GETLISTFROMMAP -- Get a LIST from the Map

+

Parameters:
+ + + +
map handle to Map object
key Map key
+
+
Returns:
handle to List value
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
Map samp_getMapFromList (List  list,
int  index 
)
+
+
+ +

+Get a Map from the List. +

+SAMP_GETMAPFROMLIST -- Get a Map from the List

+

Parameters:
+ + + +
list List object handle
index List index containing the Map
+
+
Returns:
Map handle
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
Map samp_getMapFromMap (Map  map,
char *  key 
)
+
+
+ +

+Get a Map from the Map. +

+SAMP_GETMAPFROMMAP -- Get a Map from the Map

+

Parameters:
+ + + +
map handle to Map object
key Map key
+
+
Returns:
handle to Map value
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
char* samp_getMetadata (handle_t  handle,
String  name 
)
+
+
+ +

+Get the metadata item for the application. +

+SAMP_GETMETADATA -- Get the metadata item for the application.

+

Parameters:
+ + +
handle samp handle
+
+
Returns:
nothing
+ +

References appMD::aKey, appMD::aVal, Samp::description, appMD::docURL, appMD::iconURL, Samp::meta, and appMD::nkeys.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
Map samp_GetMetadata (handle_t  handle,
String  pubId 
)
+
+
+ +

+Get the metadata for a specified app. +

+SAMP_GETMETADATA -- Get the metadata for a specified app.

+

Parameters:
+ + + +
handle samp struct handle
pubId App public-id
+
+
Returns:
Map to message response
+ +

References Samp::errortxt, Samp::hub, hub, Hub::id, and Hub::privateKey.

+ +
+

+ +

+
+ + + + + + + + + +
Map samp_getNullMap (void   ) 
+
+
+ +

+SAMP_GETNULLMAP -- Generate a 'Null' map we can return to the Hub. +

References samp_newMap().

+ +
+

+ +

+
+ + + + + + + + + +
Map samp_getOKMap (void   ) 
+
+
+ +

+SAMP_GETOKMAP -- Generate an 'OK' map we can return to the Hub. +

References nullMap, samp_newMap(), samp_setMapInMap(), and samp_setStringInMap().

+ +
+

+ +

+
+ + + + + + + + + +
List samp_GetRegisteredClients (handle_t  handle  ) 
+
+
+ +

+Get public-ids of the registered clients. +

+SAMP_GETREGISTEREDCLIENTS -- Get public-ids of the registered clients.

+

Parameters:
+ + +
handle samp struct handle
+
+
Returns:
handle to list of registered clients
+ +

References Samp::hub, Hub::id, Hub::privateKey, samp_listLen(), samp_newList(), and samp_setStringInList().

+ +
+

+ +

+
+ + + + + + + + + +
void* samp_getSampHandler (String  mtype  ) 
+
+
+ +

+Get the Samphandler for the named mtype. +

+SAMP_GETSAMPHANDLER -- Get the Samphandler for the named mtype.

+

Parameters:
+ + +
mtype mtype string
+
+
Returns:
nothing
+ +

References Samp::nsubs, and Subs::sampFunc.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
char* samp_getStringFromList (List  list,
int  index 
)
+
+
+ +

+Get a string from the List. +

+SAMP_GETSTRINGFROMLIST -- Get a string from the List

+

Parameters:
+ + + +
list List object handle
index List index containing the string
+
+
Returns:
character string
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
char* samp_getStringFromMap (Map  map,
char *  key 
)
+
+
+ +

+Get a string from the Map. +

+SAMP_GETSTRINGFROMMAP -- Get a string from the Map

+

Parameters:
+ + + +
map handle to Map object
key Map key
+
+
Returns:
string value from Map
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
List samp_GetSubscribedClients (handle_t  handle,
String  mtype 
)
+
+
+ +

+Get clients matching the mtype subscription. +

+SAMP_GETSUBSCRIBEDCLIENTS -- Get clients matching the mtype subscription.

+

Parameters:
+ + + +
handle samp struct handle
mtype mtype string
+
+
Returns:
handle to list of clients having mtype subscription
+ +

References Samp::hub, Hub::id, Hub::privateKey, samp_listLen(), samp_newList(), and samp_setStringInList().

+ +
+

+ +

+
+ + + + + + + + + +
void* samp_getUserHandler (String  mtype  ) 
+
+
+ +

+Get the User handler for the named mtype. +

+SAMP_GETUSERHANDLER -- Get the User handler for the named mtype.

+

Parameters:
+ + +
mtype mtype string
+
+
Returns:
nothing
+ +

References Samp::defaultUserFunc, Samp::nsubs, and Subs::userFunc.

+ +
+

+ +

+
+ + + + + + + + + +
int samp_hubClose (handle_t  handle  ) 
+
+
+ +

+Close a connection to the Hub. +

+SAMP_HUBCLOSE -- Close a connection to the Hub.

+

Parameters:
+ + +
handle hub handle
+
+
Returns:
unregister status
+ +

References appMD::aKey, appMD::aVal, Hub::meta, appMD::nkeys, samp_freeHandle(), and samp_hubUnRegister().

+ +
+

+ +

+
+ + + + + + + + + +
int samp_hubDeclareMetadata (Hub hub  ) 
+
+
+ +

+Declare "standard" metadata to the Hub. +

+SAMP_DECLAREMETADATA -- Declare "standard" metadata to the Hub.

+

Parameters:
+ + +
hub hub struct pointer
+
+
Returns:
status
+ +

References appMD::aKey, appMD::aVal, Hub::description, appMD::docURL, appMD::iconURL, Hub::id, Hub::meta, appMD::nkeys, and Hub::privateKey.

+ +
+

+ +

+
+ + + + + + + + + +
int samp_hubDeclareSubscriptions (Hub hub  ) 
+
+
+ +

+Declare mtype subscriptions to the Hub. +

+SAMP_HUBDECLARESUBSCRIPTIONS -- Declare mtype subscriptions to the Hub.

+

Parameters:
+ + +
hub hub struct pointer
+
+
Returns:
status
+ +

References Hub::id, Samp::nsubs, nullMap, Hub::privateKey, Hub::samp, samp_freeMap(), and Subs::userFunc.

+ +
+

+ +

+
+ + + + + + + + + +
int samp_hubEvent (String  mtype  ) 
+
+
+ +

+Determine the type of Hub event mtype. +

+SAMP_HUBEVENT -- Determine the type of Hub event mtype.

+

Parameters:
+ + +
mtype mtype string
+
+
Returns:
Hub event code or -1 if not found
+ +

References HUB_SHUTDOWN.

+ +
+

+ +

+
+ + + + + + + + + +
handle_t samp_hubOpen (Samp sampP  ) 
+
+
+ +

+Discover and open a connection to the SAMP Hub. +

+SAMP_HUBOPEN -- Discover and open a connection to the SAMP Hub.

+

Parameters:
+ + +
samp Same structure
+
+
Returns:
hub handle
+ +

References Hub::appId, Samp::appVer, Hub::appVer, appMD::desc, Hub::description, Samp::description, Hub::id, Hub::meta, Hub::samp, samp_hubRegister(), samp_hubSetXmlrpcCallback(), samp_newHandle(), samp_P2H(), Hub::timeout, and Hub::url.

+ +
+

+ +

+
+ + + + + + + + + +
int samp_hubPing (Hub hub  ) 
+
+
+ +

+Ping the Hub to see if it is alive. +

+SAMP_HUBPING -- Ping the Hub to see if it is alive.

+

Parameters:
+ + +
hub hub struct pointer
+
+
Returns:
status
+ +

References Hub::id, and Hub::privateKey.

+ +
+

+ +

+
+ + + + + + + + + +
int samp_hubRegister (Hub hub  ) 
+
+
+ +

+Send a Register message to the Hub. +

+SAMP_HUB_REGISTER -- Send a Register message to the Hub.

+

Parameters:
+ + +
hub hub struct pointer
+
+
Returns:
status
+ +

References Hub::hubId, Hub::id, Hub::privateKey, Hub::secret, and Hub::selfId.

+ +
+

+ +

+
+ + + + + + + + + +
int samp_hubSendShutdown (Hub hub  ) 
+
+
+ +

+Send a samp.app.event.shutdown message to the Hub. +

+SAMP_HUBSENDSHUTDOWN -- Send a samp.app.event.shutdown message to the Hub.

+

Parameters:
+ + +
hub hub struct pointer
+
+
Returns:
status
+ +

References Hub::id, Hub::privateKey, and samp_nullResponse().

+ +
+

+ +

+
+ + + + + + + + + +
int samp_hubSetXmlrpcCallback (Hub hub  ) 
+
+
+ +

+Set the client callback and send to Hub. +

+SAMP_HUBSETXMLRPCCALLBACK -- Set the client callback and send to Hub

+

Parameters:
+ + +
hub hub struct pointer
+
+
Returns:
status
+ +

References Hub::id, Hub::privateKey, and samp_serverPort().

+ +
+

+ +

+
+ + + + + + + + + +
int samp_hubUnRegister (Hub hub  ) 
+
+
+ +

+Send a UnRegister message to the Hub. +

+SAMP_HUBUNREGISTER -- Send a UnRegister message to the Hub.

+

Parameters:
+ + +
hub hub struct pointer
+
+
Returns:
status
+ +

References Hub::id, and Hub::privateKey.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
char* samp_id2app (handle_t  handle,
char *  pubId 
)
+
+
+ +

+Convert a public-ID to the application name. +

+SAMP_ID2APP -- Convert a public-ID to the application name.

+

Parameters:
+ + + +
handle samp struct handle
pubId public ID of application
+
+
Returns:
name of registered application
+ +

References Samp::clients, Client::name, and Samp::nclients.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_imageLoadFITS (handle_t  handle,
String  recip,
String  url,
String  imageId,
String  name 
)
+
+
+ +

+Tell an app to load a FITS image. +

+SAMP_IMAGELOADFITS -- Tell an app to load a FITS image.

+

Parameters:
+ + + + + + +
handle samp struct handle
recip Message recipient (or "all" for broadcast)
url URL to table to be loaded
imageId ID assigned to image (optional)
name Name assigned to image (optional)
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::hub, hub, samp_freeMsg(), samp_msgParam(), samp_newMsg(), samp_newParam(), and samp_sendMsg().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_imLoadHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Handle an image.load.fits message. +

+SAMP_IMLOADHANDLER -- Handle an image.load.fits message.

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::handlerMode, samp_getStringFromMap(), samp_getUserHandler(), and SZ_NAME.

+ +
+

+ +

+
+ + + + + + + + + +
int samp_listClients (handle_t  handle  ) 
+
+
+ +

+SAMP_LISTCLIENTS -- List the available clients to stdout. +

References Samp::clients, Client::name, and Samp::nclients.

+ +
+

+ +

+
+ + + + + + + + + +
int samp_listLen (List  list  ) 
+
+
+ +

+Get number of elements in a List. +

+SAMP_LISTLEN -- Get number of elements in a List.

+

Parameters:
+ + +
list List object handle
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + +
int samp_mapClients (handle_t  handle  ) 
+
+
+ +

+SAMP_MAPCLIENTS -- Map the public-ids of registered clients to the appName. +

References Samp::clients, Client::name, Samp::nclients, samp_freeList(), samp_GetMetadata(), samp_GetRegisteredClients(), samp_getStringFromList(), samp_listLen(), and SZ_NAME.

+ +

Referenced by sampStartup().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void samp_Metadata (handle_t  handle,
String  field,
String  value 
)
+
+
+ +

+Set a metadata field value for the application. +

+SAMP_METADATA -- Set a metadata field for the application. This will be sent to the Hub later in a declareMetadata() call.

+

Parameters:
+ + + + +
handle samp handle
field metadata field to set (name, author, etc)
samp value of field
+
+
Returns:
nothing
+ +

References appMD::aKey, Samp::appVer, Hub::appVer, appMD::aVal, appMD::desc, Hub::description, Samp::description, appMD::docURL, Samp::hub, appMD::iconURL, Hub::meta, Samp::meta, appMD::nkeys, and sampTrace().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void samp_msgParam (Msg  msg,
Param  param 
)
+
+
+ +

+Add a parameter to the Msg. +

+SAMP_MSGPARAM -- Add a parameter to the Msg.

+

Parameters:
+ + + + +
msg handle to Msg object
keyw map keyword
param parameter map
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + +
handle_t samp_newList (void   ) 
+
+
+ +

+Create a new List object. +

+SAMP_NEWLIST -- Create a new List object

+

Returns:
handle to List object
+ +
+

+ +

+
+ + + + + + + + + +
handle_t samp_newMap (void   ) 
+
+
+ +

+Create a new Map object. +

+SAMP_NEWMAP -- Create a new Map object

+

Returns:
handle to new Map
+ +
+

+ +

+
+ + + + + + + + + +
Msg samp_newMsg (void   ) 
+
+
+ +

+Create a new Msg object. +

+SAMP_NEWMSG -- Create a new Msg object

+

Returns:
handle to new Msg
+ +
+

+ +

+
+ + + + + + + + + +
Param samp_newParam (void   ) 
+
+
+ +

+Create a new Param object. +

+SAMP_NEWPARAM -- Create a new Param object

+

Returns:
handle to new Param
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void samp_notify (handle_t  handle,
String  recipId,
Map  msg 
)
+
+
+ +

+Make a notify() call to the Hub. +

+SAMP_NOTIFY -- Make a notify() call to the Hub

+

Parameters:
+ + + + +
handle samp struct handle
recipId recipient ID
msg message map
+
+
Returns:
nothing
+ +

References Samp::hub, hub, Hub::id, Hub::privateKey, samp_app2id(), and samp_nullResponse().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
List samp_notifyAll (handle_t  handle,
Map  msg 
)
+
+
+ +

+Make a notifyAll() call to the Hub. +

+SAMP_NOTIFYALL -- Make a notifyAll() call to the Hub

+

Parameters:
+ + + +
handle samp struct handle
msg message map
+
+
Returns:
nothing
+ +

References Samp::debug, Samp::errortxt, Samp::hub, hub, Hub::id, Hub::privateKey, and Samp::trace.

+ +
+

+ +

+
+ + + + + + + + + +
int samp_nullResponse (void *  data  ) 
+
+
+ +

+SAMP_NULLRESPONSE -- Handler to ignore async replies. +

+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
char* samp_paramGet (handle_t  handle,
String  recip,
String  name 
)
+
+
+ +

+Get a parameter variable in a remote application. +

+SAMP_PARAMGET -- Get a parameter variable in a remote application.

+

Parameters:
+ + + + +
handle samp struct handle
recip name of recipient (or 'all')
name Name of variable in receiver's environment
+
+
Returns:
NULL, Value of variable, or list of values
+ +

References Samp::clients, Samp::errortxt, Samp::hub, hub, Hub::id, Client::name, Samp::nclients, Hub::privateKey, samp_app2id(), samp_freeMsg(), samp_msgParam(), samp_newMsg(), samp_newParam(), and Hub::timeout.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_paramGetHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Handle a client.param.set message. +

+SAMP_PARAMGETHANDLER -- Handle a client.param.set message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::handlerMode, samp_freeMap(), samp_getStringFromMap(), samp_getUserHandler(), samp_newMap(), samp_setHandlerReply(), samp_setMapInMap(), samp_setStringInMap(), and SZ_NAME.

+ +
+

+ +

+
+ + + + + + + + + +
Param samp_paramInit (Msg  msg  ) 
+
+
+ +

+Get number of Params. +

+SAMP_PARAMINIT -- Get number of Params.

+

Parameters:
+ + +
msg handle to Msg object
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + +
int samp_paramLen (Msg  msg  ) 
+
+
+ +

+Get number of Params. +

+SAMP_PARAMLEN -- Get number of Params.

+

Parameters:
+ + +
msg handle to Msg object
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_paramSet (handle_t  handle,
String  recip,
String  name,
String  value 
)
+
+
+ +

+Set an parameter variable in a remote application. +

+SAMP_PARAMSET -- Set an parameter variable in a remote application.

+

Parameters:
+ + + + + +
handle samp struct handle
recip name of recipient (or 'all')
name Name of variable in receiver's environment
value Value of variable or NULL
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::hub, hub, samp_freeMsg(), samp_msgParam(), samp_newMsg(), samp_newParam(), and samp_sendMsg().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_paramSetHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Handle a client.param.set message. +

+SAMP_PARAMSETHANDLER -- Handle a client.param.set message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::handlerMode, samp_getStringFromMap(), samp_getUserHandler(), and SZ_NAME.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
int samp_Ping (handle_t  handle,
String  appName 
)
+
+
+ +

+Ping the hub/app to see if it is alive (returns >0). +

+SAMP_PING -- Ping the hub/app to see if it is alive (returns >0).

+

Parameters:
+ + + +
handle samp struct handle
appName application name
+
+
Returns:
OK or ERR if no response
+ +

References Samp::hub, samp_app2id(), samp_callAll(), samp_callAndWait(), samp_freeMap(), samp_freeMsg(), samp_hubPing(), samp_msgParam(), samp_newMsg(), samp_newParam(), and samp_setErr().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_PingHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Is app alive and responding to messages? +

+SAMP_PINGHANDLER -- Simple aliveness test function.

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::handlerMode, and samp_getUserHandler().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_pointAtHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Handle a coord.pointAt.sky message. +

+SAMP_POINTATHANDLER -- Handle a coord.pointAt.sky message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::handlerMode, samp_getFloatFromMap(), and samp_getUserHandler().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void samp_printMap (String  name,
Map  map 
)
+
+
+ +

+SAMP_PRINTMAP -- Print the contents of a Map structure. +

+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void samp_printMetadata (handle_t  handle,
String  name 
)
+
+
+ +

+Print the metadata for the application. +

+SAMP_PRINTMETADATA -- Print the metadata for the application.

+

Parameters:
+ + +
handle samp handle
+
+
Returns:
nothing
+ +

References appMD::aKey, appMD::aVal, Samp::description, appMD::docURL, appMD::iconURL, Samp::meta, and appMD::nkeys.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
int samp_processHubEvent (String  mtype,
Map  params 
)
+
+
+ +

+Determine the type of Hub event mtype. +

+SAMP_HUBEVENT -- Determine the type of Hub event mtype.

+

Parameters:
+ + + +
mtype mtype string
params message parameter Map
+
+
Returns:
non-zero value if a Hub event was processed
+ +

References HUB_SHUTDOWN, samp_addClient(), samp_hubEvent(), samp_mutex, samp_P2H(), samp_removeClient(), sampH, and sampShutdown().

+ +
+

+ +

+
+ + + + + + + + + +
int samp_receiveCall (void *  data  ) 
+
+
+ +

+test.echo method +

+receiveCall () client method.

+SAMP_TESTECHO -- test.echo method

+

Parameters:
+ + +
data caller param data
+
+
Returns:
status code or errno
+SAMP_RECEIVECALL -- receiveCall() client method.

+

Parameters:
+ + +
data caller param data
+
+
Returns:
status code or errno
+ +

References Samp::defaultUserFunc, OK_Map, samp_execUserHandler(), samp_getHandlerReply(), samp_getSampHandler(), samp_getUserHandler(), samp_Reply(), sampH, and Samp::trace.

+ +
+

+ +

+
+ + + + + + + + + +
int samp_receiveNotification (void *  data  ) 
+
+
+ +

+receiveNotification () client method. +

+SAMP_RECEIVENOTIFICATION -- receiveNotification() client method.

+

Parameters:
+ + +
data caller param data
+
+
Returns:
status code or errno
+ +

References Samp::defaultUserFunc, OK_Map, samp_execUserHandler(), samp_getHandlerReply(), samp_getSampHandler(), samp_getUserHandler(), samp_processHubEvent(), and Samp::trace.

+ +
+

+ +

+
+ + + + + + + + + +
int samp_receiveResponse (void *  data  ) 
+
+
+ +

+receiveResponse () client method. +

+SAMP_RECEIVERESPONSE -- receiveResponse() client method.

+

Parameters:
+ + +
data caller param data
+
+
Returns:
status code or errno
+ +

References Samp::defaultUserFunc, OK_Map, samp_execUserHandler(), and Samp::trace.

+ +
+

+ +

+
+ + + + + + + + + +
int samp_Register (handle_t  handle  ) 
+
+
+ +

+Register with the Hub using the currently stored metadata. +

+SAMP_REGISTER -- Register with the Hub using the currently stored metadata.

+

Parameters:
+ + +
handle samp struct handle
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::hub, hub, Hub::hubId, Hub::id, Hub::privateKey, samp_replyStatus(), Hub::secret, and Hub::selfId.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
int samp_removeClient (handle_t  handle,
String  id 
)
+
+
+ +

+SAMP_REMOVECLIENT -- Remove a registered client from the list of known apps that do the public-private name translation. +

References Samp::clients, Client::name, Samp::nclients, and SZ_NAME.

+ +

Referenced by samp_processHubEvent().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
int samp_Reply (handle_t  handle,
String  msg_id,
Map  response 
)
+
+
+ +

+Reply to a message. +

+SAMP_REPLY -- Reply to a message. All we do here is send the reply message, we require that the response Map already be defined.

+

Parameters:
+ + + + +
handle samp struct handle
msg_id message ID
response response map
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::hub, hub, Hub::id, Hub::privateKey, and samp_nullResponse().

+ +
+

+ +

+
+ + + + + + + + + +
int samp_replyStatus (handle_t  handle  ) 
+
+
+ +

+Reply with the status of the last message sent. +

+SAMP_REPLYSTATUS -- Reply with the status of the last message sent.

+May be used to 'poll' for a reponse from the caller in cases where use of a callback is a problem. Codes are: <0==ERR, 0==PENDING, 1==OK

+

Parameters:
+ + +
samp samp struct ptr
+
+
Returns:
message status
+ +

Referenced by samp_Register().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_resConeHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+handle a voresource.loadlist message +

+SAMP_RESCONEHANDLER -- Handle a voresource.loadlist.cone message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::handlerMode, samp_getMapFromMap(), samp_getStringFromMap(), samp_getUserHandler(), samp_resLoadHandler(), and SZ_NAME.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_resLoadHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+handle a voresource.loadlist message +

+SAMP_RESLOADHANDLER -- handle a voresource.loadlist.* message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::handlerMode, samp_getMapFromMap(), samp_getStringFromMap(), samp_getUserHandler(), and SZ_NAME.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_resourceLoad (handle_t  handle,
String  recip,
String  type,
String  name,
Map  resMap 
)
+
+
+ +

+Exchange a resource list. +

+SAMP_RESOURCELOAD -- Exchange a resource list.

+

Parameters:
+ + + + + + +
handle samp struct handle
recip Name of recipient (or 'all')
type Resource type (or NULL)
name Descriptive name (optional)
resMap Resource map
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::hub, hub, samp_addMapParam(), samp_freeMsg(), samp_msgParam(), samp_newMsg(), samp_newParam(), samp_sendMsg(), and SZ_NAME.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_resSiapHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+handle a voresource.loadlist message +

+SAMP_RESSIAPHANDLER -- Handle a voresource.loadlist.siap message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::handlerMode, samp_getMapFromMap(), samp_getStringFromMap(), samp_getUserHandler(), samp_resLoadHandler(), and SZ_NAME.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_resSsapHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+handle a voresource.loadlist message +

+SAMP_RESSSAPHANDLER -- Handle a voresource.loadlist.ssap message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::handlerMode, samp_getMapFromMap(), samp_getStringFromMap(), samp_getUserHandler(), samp_resLoadHandler(), and SZ_NAME.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_resTapHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+handle a voresource.loadlist message +

+SAMP_RESTAPHANDLER -- Handle a voresource.loadlist.tap message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::handlerMode, samp_getMapFromMap(), samp_getStringFromMap(), samp_getUserHandler(), samp_resLoadHandler(), and SZ_NAME.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_resVOSpaceHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+handle a voresource.loadlist message +

+SAMP_RESVOSPACEHANDLER -- Handle a voresource.loadlist.vospace message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::handlerMode, samp_getMapFromMap(), samp_getStringFromMap(), samp_getUserHandler(), samp_resLoadHandler(), and SZ_NAME.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_sendGeneric (handle_t  handle,
String  recip,
String  mtype,
String  args[] 
)
+
+
+ +

+Send a geenric message. +

+SAMP_SENDGENERIC -- Send a generic message.

+

Parameters:
+ + + + + +
handle samp struct handle
recip Name of recipient (or 'all')
mtype Message type
args Argument list
+
+
Returns:
SAMP_OK or SAMP_ERR
+This method can be used to send any user-defined message. The 'mtype' string is arbitrary, we just assume the receiving client can understand what it means. The 'args' String array can be an array of values in which case the parameter name will be a series of generic 'arg0' thru 'argN-1' names. +

References Samp::hub, hub, samp_addFloatParam(), samp_addIntParam(), samp_freeMsg(), samp_msgParam(), samp_newMsg(), samp_newParam(), samp_sendMsg(), and SZ_NAME.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
int samp_sendMsg (handle_t  handle,
String  recip,
Map  msg 
)
+
+
+ +

+Send the specified message. +

+SAMP_SENDMSG -- Send the specified message.

+

Parameters:
+ + + + +
handle samp struct handle
recip Name of recipient (or 'all')
msg Message map
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::clients, Samp::msgMode, Samp::nclients, samp_app2id(), samp_call(), samp_callAll(), samp_callAndWait(), samp_notify(), samp_notifyAll(), and samp_setErr().

+ +
+

+ +

+
+ + + + + + + + + +
int samp_serverPort (void   ) 
+
+
+ +

+Return a unique port number for the server. +

+SAMP_SERVERPORT -- Return a unique port number for the server.

+

Returns:
port number
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void samp_setAppVersion (handle_t  handle,
String  version 
)
+
+
+ +

+Set the application name string. +

+Set the application version string.

+SAMP_SETAPPNAME -- Set the application name string.

+

Parameters:
+ + + +
handle samp handle
name application name
+
+
Returns:
nothing
+SAMP_SETAPPVERSION -- Set the application version string.

+

Parameters:
+ + + +
handle samp handle
name application version
+
+
Returns:
nothing
+ +

References Hub::appVer, Samp::appVer, and Samp::hub.

+ +
+

+ +

+
+ + + + + + + + + +
void samp_setASyncMode (handle_t  handle  ) 
+
+
+ +

+Set the calling mode to use asynchronous messaging. +

+SAMP_SETASYNCMODE -- Set the calling mode to use asynchronous messaging.

+

Parameters:
+ + +
handle samp handle
+
+
Returns:
nothing
+ +

References Samp::msgMode.

+ +
+

+ +

+
+ + + + + + + + + +
void samp_setCallByRef (handle_t  handle  ) 
+
+
+ +

+Have interface call user handlers by reference. +

+SAMP_SETCALLBYREF -- Have interface call user handlers by reference.

+

Parameters:
+ + +
handle samp handle
+
+
Returns:
nothing
+ +

References Samp::handlerMode.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void samp_setCallMode (handle_t  handle,
int  mode 
)
+
+
+ +

+Set the default calling mode (synch or asynch). +

+SAMP_SETCALLMODE -- Set the default calling mode (synch or asynch)

+

Parameters:
+ + + +
handle samp handle
mode call mode (synch or asynch)
+
+
Returns:
nothing
+ +

References Samp::msgMode.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
int samp_setErr (handle_t  handle,
Map  resp 
)
+
+
+ +

+Set the error response string. +

+SAMP_SETERR -- Set the error response string/code.

+

Parameters:
+ + + +
handle samp struct handle
resp Response map
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::errortxt.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void samp_setFloatInList (List  list,
float  rval 
)
+
+
+ +

+Set a Float in a List (append). +

+SAMP_SETFLOATINLIST -- Set a Float in a List (append)

+

Parameters:
+ + + +
list1 List object handle
rval Float value to be appended
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void samp_setFloatInMap (Map  map,
char *  key,
float  value 
)
+
+
+ +

+Set a string in a Map (append). +

+SAMP_SETFLOATINMAP -- Set a Float in a Map (append)

+

Parameters:
+ + + + +
map handle to Map object
key Map key
value value
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void samp_setIntInList (List  list,
int  ival 
)
+
+
+ +

+Set an Int in a List (append). +

+SAMP_SETINTINLIST -- Set an Int in a List (append)

+

Parameters:
+ + + +
list1 List object handle
ival Integer value to be appended
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void samp_setIntInMap (Map  map,
char *  key,
int  value 
)
+
+
+ +

+Set a Int in a Map (append). +

+SAMP_SETINTINMAP -- Set a Int in a Map (append)

+

Parameters:
+ + + + +
map handle to Map object
key Map key
value value
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void samp_setListInList (List  list1,
List  list2 
)
+
+
+ +

+Set a List in another List (append). +

+SAMP_SETLISTINLIST -- Set a List in another List (append)

+

Parameters:
+ + + +
list1 List object handle
list2 List to be appended
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void samp_setListInMap (Map  map,
char *  key,
List  list 
)
+
+
+ +

+Set a List in a Map (append). +

+SAMP_SETLISTINMAP -- Set a List in a Map (append)

+

Parameters:
+ + + + +
map handle to Map object
key Map key
list handle to List object to set
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void samp_setMapInList (List  list,
Map  map 
)
+
+
+ +

+Set a Map in a List (append). +

+SAMP_SETMAPINLIST -- Set a Map in a List (append)

+

Parameters:
+ + + +
list List object handle
map Map object to be set
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void samp_setMapInMap (Map  map1,
char *  key,
Map  map2 
)
+
+
+ +

+Set a Map in a Map (append). +

+SAMP_SETMAPINMAP -- Set a Map in a Map (append)

+

Parameters:
+ + + + +
map1 handle to Map object
key Map key
map2 handle to Map object to set
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + +
void samp_setNotifyMode (handle_t  handle  ) 
+
+
+ +

+Set the calling mode to use notification messaging. +

+SAMP_SETNOTIFYMODE -- Set the calling mode to use notification messaging.

+

Parameters:
+ + +
handle samp handle
+
+
Returns:
nothing
+ +

References Samp::msgMode.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void samp_setReplyCallback (handle_t  handle,
int *  func 
)
+
+
+ +

+Set the Reply callback. samp_setReplyCallback (handle_t handle, int *func). +

+SAMP_SETREPLYCALLBACK -- Set the Reply callback.

+

Parameters:
+ + + +
handle samp handle
func callback for Reply message
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void samp_setResponseCallback (handle_t  handle,
int *  func 
)
+
+
+ +

+Set the Response callback. samp_setResponseCallback (handle_t handle, int *func). +

+SAMP_SETRESPONSECALLBACK -- Set the Response callback.

+

Parameters:
+ + + +
handle samp handle
func callback for message response
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void samp_setSampHandler (handle_t  handle,
String  mtype,
void *  func 
)
+
+
+ +

+Set the SAMP interface handler for the mtype. +

+SAMP_SETSAMPHANDLER -- Set the SAMP interface handler for the mtype.

+

Parameters:
+ + + + +
handle user handle to samp struct
mtype mtype name
func callback function
+
+
Returns:
nothing
+ +

References Samp::nsubs, and Subs::sampFunc.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void samp_setStringInList (List  list,
char *  value 
)
+
+
+ +

+Set a string in a List (append). +

+SAMP_SETSTRINGINLIST -- Set a string in a List (append)

+

Parameters:
+ + + +
list List object handle
value string value to set
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void samp_setStringInMap (Map  map,
char *  key,
char *  value 
)
+
+
+ +

+Set a string in a Map (append). +

+SAMP_SETSTRINGINMAP -- Set a string in a Map (append)

+

Parameters:
+ + + + +
map handle to Map object
key Map key
value Map value
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + +
void samp_setSyncMode (handle_t  handle  ) 
+
+
+ +

+Set the calling mode to use synchronous messaging. +

+SAMP_SETSYNCMODE -- Set the calling mode to use synchronous messaging.

+

Parameters:
+ + +
handle samp handle
+
+
Returns:
nothing
+ +

References Samp::msgMode.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void samp_setTimeout (handle_t  handle,
int  timeout 
)
+
+
+ +

+Set the message timeout value (in seconds). +

+SAMP_SETTIMEOUT -- Set the message timeout value (in seconds).

+

Parameters:
+ + + +
handle samp handle
name application name
+
+
Returns:
nothing
+ +

References Samp::hub, and Hub::timeout.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void samp_setUserHandler (handle_t  handle,
String  mtype,
void *  func 
)
+
+
+ +

+Set the user-interface handler for the mtype. +

+SAMP_SETUSERHANDLER -- Set the user-interface handler for the mtype.

+

Parameters:
+ + + + +
handle user handle to samp struct
mtype mtype name
func callback function
+
+
Returns:
nothing
+ +

References Samp::defaultUserFunc, Samp::nsubs, and Subs::userFunc.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_specLoadHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Handle a spectrum.load.* message. +

+SAMP_SPECLOADHANDLER -- Handle a spectrum.load.* message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::handlerMode, samp_getMapFromMap(), samp_getStringFromMap(), samp_getUserHandler(), and SZ_NAME.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_specLoadSSAGeneric (handle_t  handle,
String  recip,
String  url,
Map  meta,
String  spectrumId,
String  name 
)
+
+
+ +

+Load a generic spectrum from an SSA service. +

+SAMP_SPECLOADSSAGENERIC -- Load a generic spectrum from an SSA service.

+

Parameters:
+ + + + + + + +
handle samp struct handle
recip name of recipient (or 'all')
url URL of spectrum to load
meta Metadata map describing data found at the URL
spectrumId Identifier for spectrum (optional)
name Name used to label spectrum (optional);
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::hub, hub, samp_addMapParam(), samp_freeMsg(), samp_msgParam(), samp_newMsg(), samp_newParam(), and samp_sendMsg().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_specSSAHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Handle a spectrum.load.ssa-generic message. +

+SAMP_SPECSSAHANDLER -- Handle a spectrum.load.ssa-generic message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::handlerMode, samp_getMapFromMap(), samp_getStringFromMap(), samp_getUserHandler(), samp_specLoadHandler(), and SZ_NAME.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_StatusHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Return status of the task. +

+SAMP_STATUSHANDLER -- Return status of the task.

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::handlerMode, and samp_getUserHandler().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void samp_Subscribe (handle_t  handle,
String  mtype,
void *  userFunc 
)
+
+
+ +

+Subscribe to a given mtype. +

+SAMP_SUBSCRIBE -- Subscribe to a given mtype.

+

Parameters:
+ + + + +
handle user handle to samp struct
mtype mtype name
func callback function
+
+
Returns:
nothing
+ +

References Samp::nsubs, samp_getSampHandler(), samp_setSampHandler(), and samp_setUserHandler().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_tableHighlightRow (handle_t  handle,
String  recip,
String  tableId,
String  url,
int  row 
)
+
+
+ +

+Tell an app to highlight a table row. +

+SAMP_TABLEHIGHLIGHTROW -- Tell an app to highlight a table row.

+

Parameters:
+ + + + + + +
handle samp struct handle
recip Message recipient (or "all" for broadcast)
tableId ID associated with a previously loaded table
url URL to table to be loaded
rows List of (zero-based) row indices
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::hub, hub, samp_addIntParam(), samp_freeMsg(), samp_msgParam(), samp_newMsg(), samp_newParam(), and samp_sendMsg().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_tableLoadFITS (handle_t  handle,
String  recip,
String  url,
String  tableId,
String  name 
)
+
+
+ +

+Tell an app to load a FITS table. +

+SAMP_TABLELOADFITS -- Tell an app to load a FITS table.

+

Parameters:
+ + + + + + +
handle samp struct handle
recip Message recipient (or "all" for broadcast)
url URL to table to be loaded
tableId ID assigned to table (optional)
name Name assigned to table (optional)
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::hub, hub, samp_freeMsg(), samp_msgParam(), samp_newMsg(), samp_newParam(), and samp_sendMsg().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_tableLoadVOTable (handle_t  handle,
String  recip,
String  url,
String  tableId,
String  name 
)
+
+
+ +

+Tell an app to load a VOTable. +

+SAMP_TABLELOADVOTABLE -- Tell an app to load a VOTable.

+

Parameters:
+ + + + + + +
handle samp struct handle
recip Message recipient (or "all" for broadcast)
url URL to table to be loaded
tableId ID assigned to table (optional)
name Name assigned to table (optional)
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::hub, hub, samp_freeMsg(), samp_msgParam(), samp_newMsg(), samp_newParam(), and samp_sendMsg().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_tableSelectRowList (handle_t  handle,
String  recip,
String  tableId,
String  url,
int  rows[],
int  nrows 
)
+
+
+ +

+Tell an app to select a list of table rows. +

+SAMP_TABLESELECTROWLIST -- Tell an app to select a list of table rows.

+

Parameters:
+ + + + + + + +
handle samp struct handle
recip Message recipient (or "all" for broadcast)
tableId ID associated with a previously loaded table
url URL to table to be loaded
rows Array of (zero-based) row indices
nrows Number of rows
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::hub, hub, samp_addListParam(), samp_freeList(), samp_freeMsg(), samp_msgParam(), samp_newList(), samp_newMsg(), samp_newParam(), samp_sendMsg(), and samp_setIntInList().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_tbHighlightHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Handle a table.highlight.row message. +

+SAMP_TBHIGHLIGHTHANDLER -- Handle a table.highlight.row message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::handlerMode, samp_getIntFromMap(), samp_getStringFromMap(), samp_getUserHandler(), and SZ_NAME.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_tbLoadFITSHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Handle a generic table.load.fits message. +

+SAMP_TBLOADFITSHANDLER -- Handle a generic table.load.fits message *

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::handlerMode, samp_getStringFromMap(), samp_getUserHandler(), samp_tbLoadHandler(), and SZ_NAME.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_tbLoadHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Handle a generic table.load.* message. +

+SAMP_TBLOADHANDLER -- Handle a generic table.load.* message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::handlerMode, samp_getStringFromMap(), samp_getUserHandler(), and SZ_NAME.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_tbLoadVOTHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Handle a generic table.load.votable message. +

+SAMP_TBLOADVOTHANDLER -- Handle a generic table.load.votable message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::handlerMode, samp_getStringFromMap(), samp_getUserHandler(), samp_tbLoadHandler(), and SZ_NAME.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_tbSelectHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Handle a table.select.rowList message. +

+SAMP_TBSELECTHANDLER -- Handle a table.select.rowList message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::handlerMode, samp_getListFromMap(), samp_getStringFromMap(), samp_getUserHandler(), samp_listLen(), and SZ_NAME.

+ +
+

+ +

+
+ + + + + + + + + +
int samp_UnRegister (handle_t  handle  ) 
+
+
+ +

+Un-Register from the hub. +

+SAMP_UNREGISTER -- Un-Register from the hub.

+

Parameters:
+ + +
handle samp struct handle
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::hub, hub, and samp_hubUnRegister().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void samp_Unsubscribe (handle_t  handle,
String  mtype 
)
+
+
+ +

+Unsubscribe to a given mtype. +

+SAMP_UNSUBSCRIBE -- Unsubscribe to a given mtype.

+

Parameters:
+ + + +
handle user handle to samp struct
mtype mtype name
+
+
Returns:
nothing
+ +

References Samp::nsubs, samp_DeclareSubscriptions(), Subs::sampFunc, and Subs::userFunc.

+ +
+

+ +

+
+ + + + + + + + + +
void sampClose (handle_t  handle  ) 
+
+
+ +

+Close the SAMP interface and free resources. +

+SAMP_CLOSE -- Close the SAMP interface.

+

Parameters:
+ + +
handle user handle to samp struct
+
+
Returns:
nothing
+ +

References Samp::hub, Samp::hubHandle, samp_freeHandle(), samp_hubClose(), sampTrace(), and Samp::verbose.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
handle_t sampInit (String  appName,
String  description 
)
+
+
+ +

+Initialize the SAMP interface. +

+Prototype declarations.

+SAMP_INIT -- Initialize the SAMP interface.

+

Parameters:
+ + + +
appName application name
description description of application
+
+
Returns:
samp handle
+ +

References nullList, nullMap, OK_Map, samp_hubOpen(), samp_newHandle(), samp_newList(), samp_newMap(), samp_serverPort(), samp_setMapInMap(), samp_setStringInMap(), sampH, and sampTrace().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void sampLog (handle_t  handle,
char *  format,
  ... 
)
+
+
+ +

+SAMP message logger. +

+SAMPLOG -- SAMP message logger.

+

Parameters:
+ + + +
handle SAMP handle
format message format string
+
+
Returns:
nothing
+ +

References Samp::debug, and Samp::logfd.

+ +
+

+ +

+
+ + + + + + + + + +
int sampShutdown (handle_t  handle  ) 
+
+
+ +

+Shut down the active SAMP interface. +

+SAMP_SHUTDOWN -- Shut down the active SAMP interface.

+

Parameters:
+ + +
handle user handle to samp struct
+
+
Returns:
nothing
+ +

References Samp::active, Samp::hubHandle, samp_hubClose(), Samp::svrThread, and Samp::verbose.

+ +

Referenced by samp_processHubEvent().

+ +
+

+ +

+
+ + + + + + + + + +
int sampStartup (handle_t  handle  ) 
+
+
+ +

+Startup the SAMP interface to send/receive messages. +

+SAMP_STARTUP -- Startup the SAMP interface to send/receive messages.

+

Parameters:
+ + +
handle user handle to samp struct
+
+
Returns:
nothing
+ +

References Samp::active, Samp::clients, Samp::hub, Samp::hubHandle, Hub::id, Samp::mapClients, Client::name, Samp::nclients, samp_hubDeclareMetadata(), samp_hubDeclareSubscriptions(), samp_hubOpen(), samp_mapClients(), Samp::trace, and Samp::verbose.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void sampTrace (handle_t  handle,
char *  format,
  ... 
)
+
+
+ +

+SAMP tracer. +

+SAMPTRACE -- SAMP tracer.

+

Parameters:
+ + + +
handle SAMP handle
format message format string
+
+
Returns:
nothing
+ +

References Samp::trace.

+ +
+

+

+
Generated on Wed Feb 27 21:10:15 2013 for SAMP Client Library by  + +doxygen 1.5.9
+ + diff --git a/vendor/voclient/libsamp/doc/html/sampDecl_8h_source.html b/vendor/voclient/libsamp/doc/html/sampDecl_8h_source.html new file mode 100644 index 00000000..0683eed8 --- /dev/null +++ b/vendor/voclient/libsamp/doc/html/sampDecl_8h_source.html @@ -0,0 +1,410 @@ + + +SAMP Client Library: sampDecl.h Source File + + + + + +
Generated on Wed Feb 27 21:10:15 2013 for SAMP Client Library by  + +doxygen 1.5.9
+ + diff --git a/vendor/voclient/libsamp/doc/html/sampHandlers_8c.html b/vendor/voclient/libsamp/doc/html/sampHandlers_8c.html new file mode 100644 index 00000000..eaf68895 --- /dev/null +++ b/vendor/voclient/libsamp/doc/html/sampHandlers_8c.html @@ -0,0 +1,1819 @@ + + +SAMP Client Library: sampHandlers.c File Reference + + + + + +
+

sampHandlers.c File Reference

Message handlers for the interface. +More... +

+#include <stdlib.h>
+#include <stdio.h>
+#include <unistd.h>
+#include <string.h>
+#include <time.h>
+#include <ctype.h>
+#include "samp.h"
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Defines

+#define METH_DBG   (getenv("METH_DBG")!=NULL||access("/tmp/METH_DBG",F_OK)==0)
+#define OK_Map   samp_getOKMap()
+#define MATCH(s)   (func&&strncasecmp(mtype,s,min(len,16))==0)
+#define PMATCH(s)   (strcasecmp(mtype,s)==0)
+#define POPT(s)   (s[0]?s:"INDEF")

Functions

void samp_setUserHandler (handle_t handle, String mtype, void *func)
 Set the user-interface handler for the mtype.
void samp_setSampHandler (handle_t handle, String mtype, void *func)
 Set the SAMP interface handler for the mtype.
void * samp_getUserHandler (String mtype)
 Get the User handler for the named mtype.
void * samp_getSampHandler (String mtype)
 Get the Samphandler for the named mtype.
void samp_execUserHandler (String sender, String mtype, String msg_id, Map params)
 Execute the user-defined handler for the mtype.
int samp_hubHandler (String sender, String mtype, String msg_id, Map msg_map)
 Handle Hub event messages.
int samp_PingHandler (String sender, String mtype, String msg_id, Map msg_map)
 Is app alive and responding to messages?
int samp_StatusHandler (String sender, String mtype, String msg_id, Map msg_map)
 Return status of the task.
+int samp_genericMsgHandler (String sender, String mtype, String msg_id, Map msg_map)
int samp_imLoadHandler (String sender, String mtype, String msg_id, Map msg_map)
 Handle an image.load.fits message.
int samp_tbLoadHandler (String sender, String mtype, String msg_id, Map msg_map)
 Handle a generic table.load.* message.
int samp_tbLoadFITSHandler (String sender, String mtype, String msg_id, Map msg_map)
 Handle a generic table.load.fits message.
int samp_tbLoadVOTHandler (String sender, String mtype, String msg_id, Map msg_map)
 Handle a generic table.load.votable message.
int samp_tbHighlightHandler (String sender, String mtype, String msg_id, Map msg_map)
 Handle a table.highlight.row message.
int samp_tbSelectHandler (String sender, String mtype, String msg_id, Map msg_map)
 Handle a table.select.rowList message.
int samp_pointAtHandler (String sender, String mtype, String msg_id, Map msg_map)
 Handle a coord.pointAt.sky message.
int samp_specLoadHandler (String sender, String mtype, String msg_id, Map msg_map)
 Handle a spectrum.load.* message.
int samp_specSSAHandler (String sender, String mtype, String msg_id, Map msg_map)
 Handle a spectrum.load.ssa-generic message.
int samp_cmdExecHandler (String sender, String mtype, String msg_id, Map msg_map)
 Handle a client.cmd.exec message.
int samp_envGetHandler (String sender, String mtype, String msg_id, Map msg_map)
 Handle a client.env.set message.
int samp_envSetHandler (String sender, String mtype, String msg_id, Map msg_map)
 Handle a client.env.set message.
int samp_paramGetHandler (String sender, String mtype, String msg_id, Map msg_map)
 Handle a client.param.set message.
int samp_paramSetHandler (String sender, String mtype, String msg_id, Map msg_map)
 Handle a client.param.set message.
int samp_bibcodeHandler (String sender, String mtype, String msg_id, Map msg_map)
 Handle a bibcode.load message.
int samp_resLoadHandler (String sender, String mtype, String msg_id, Map msg_map)
 handle a voresource.loadlist message
int samp_resConeHandler (String sender, String mtype, String msg_id, Map msg_map)
 handle a voresource.loadlist message
int samp_resSiapHandler (String sender, String mtype, String msg_id, Map msg_map)
 handle a voresource.loadlist message
int samp_resSsapHandler (String sender, String mtype, String msg_id, Map msg_map)
 handle a voresource.loadlist message
int samp_resTapHandler (String sender, String mtype, String msg_id, Map msg_map)
 handle a voresource.loadlist message
int samp_resVOSpaceHandler (String sender, String mtype, String msg_id, Map msg_map)
 handle a voresource.loadlist message
+void samp_printMessage (String mtype, String sender, String msg_id, Map params)
void samp_printMap (String name, Map map)
int samp_nullResponse (void *data)
+int samp_testEcho (void *data)

Variables

Map nullMap
List nullList
+SampsampP
handle_t sampH
+


Detailed Description

+Message handlers for the interface. +

+SAMPHANDLERS.C -- Message handlers for the interface.

+

Author:
Mike Fitzpatrick
+
Date:
7/10/09
+

Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_bibcodeHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Handle a bibcode.load message. +

+SAMP_BIBCODEHANDLER -- Handle a bibcode.load message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::handlerMode, samp_getStringFromMap(), samp_getUserHandler(), and SZ_NAME.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_cmdExecHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Handle a client.cmd.exec message. +

+SAMP_CMDEXECHANDLER -- Handle a client.cmd.exec message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::handlerMode, samp_getStringFromMap(), and samp_getUserHandler().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_envGetHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Handle a client.env.set message. +

+SAMP_ENVGETHANDLER -- Handle a client.env.set message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::handlerMode, samp_freeMap(), samp_getStringFromMap(), samp_getUserHandler(), samp_newMap(), samp_setHandlerReply(), samp_setMapInMap(), samp_setStringInMap(), and SZ_NAME.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_envSetHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Handle a client.env.set message. +

+SAMP_ENVSETHANDLER -- Handle a client.env.set message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::handlerMode, samp_getStringFromMap(), samp_getUserHandler(), and SZ_NAME.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
void samp_execUserHandler (String  sender,
String  mtype,
String  msg_id,
Map  params 
)
+
+
+ +

+Execute the user-defined handler for the mtype. +

+SAMP_EXECUSERHANDLER -- Execute the user-defined handler for the mtype.

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message-id string
params Mtype parameter Map
+
+
Returns:
nothing
+ +

References Samp::defaultUserFunc, Samp::handlerMode, samp_getFloatFromMap(), samp_getIntFromMap(), samp_getListFromMap(), samp_getMapFromMap(), samp_getStringFromMap(), samp_getUserHandler(), samp_listLen(), and SZ_NAME.

+ +

Referenced by samp_receiveCall(), samp_receiveNotification(), and samp_receiveResponse().

+ +
+

+ +

+
+ + + + + + + + + +
void* samp_getSampHandler (String  mtype  ) 
+
+
+ +

+Get the Samphandler for the named mtype. +

+SAMP_GETSAMPHANDLER -- Get the Samphandler for the named mtype.

+

Parameters:
+ + +
mtype mtype string
+
+
Returns:
nothing
+ +

References Samp::nsubs, and Subs::sampFunc.

+ +

Referenced by samp_receiveCall(), samp_receiveNotification(), and samp_Subscribe().

+ +
+

+ +

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_hubHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Handle Hub event messages. +

+SAMP_HUBHANDLER -- Handle Hub event messages.

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_imLoadHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Handle an image.load.fits message. +

+SAMP_IMLOADHANDLER -- Handle an image.load.fits message.

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::handlerMode, samp_getStringFromMap(), samp_getUserHandler(), and SZ_NAME.

+ +
+

+ +

+
+ + + + + + + + + +
int samp_nullResponse (void *  data  ) 
+
+
+ +

+SAMP_NULLRESPONSE -- Handler to ignore async replies. +

Referenced by samp_hubSendShutdown(), samp_notify(), and samp_Reply().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_paramGetHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Handle a client.param.set message. +

+SAMP_PARAMGETHANDLER -- Handle a client.param.set message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::handlerMode, samp_freeMap(), samp_getStringFromMap(), samp_getUserHandler(), samp_newMap(), samp_setHandlerReply(), samp_setMapInMap(), samp_setStringInMap(), and SZ_NAME.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_paramSetHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Handle a client.param.set message. +

+SAMP_PARAMSETHANDLER -- Handle a client.param.set message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::handlerMode, samp_getStringFromMap(), samp_getUserHandler(), and SZ_NAME.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_PingHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Is app alive and responding to messages? +

+SAMP_PINGHANDLER -- Simple aliveness test function.

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::handlerMode, and samp_getUserHandler().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_pointAtHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Handle a coord.pointAt.sky message. +

+SAMP_POINTATHANDLER -- Handle a coord.pointAt.sky message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::handlerMode, samp_getFloatFromMap(), and samp_getUserHandler().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void samp_printMap (String  name,
Map  map 
)
+
+
+ +

+SAMP_PRINTMAP -- Print the contents of a Map structure. +

+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_resConeHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+handle a voresource.loadlist message +

+SAMP_RESCONEHANDLER -- Handle a voresource.loadlist.cone message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::handlerMode, samp_getMapFromMap(), samp_getStringFromMap(), samp_getUserHandler(), samp_resLoadHandler(), and SZ_NAME.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_resLoadHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+handle a voresource.loadlist message +

+SAMP_RESLOADHANDLER -- handle a voresource.loadlist.* message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::handlerMode, samp_getMapFromMap(), samp_getStringFromMap(), samp_getUserHandler(), and SZ_NAME.

+ +

Referenced by samp_resConeHandler(), samp_resSiapHandler(), samp_resSsapHandler(), samp_resTapHandler(), and samp_resVOSpaceHandler().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_resSiapHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+handle a voresource.loadlist message +

+SAMP_RESSIAPHANDLER -- Handle a voresource.loadlist.siap message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::handlerMode, samp_getMapFromMap(), samp_getStringFromMap(), samp_getUserHandler(), samp_resLoadHandler(), and SZ_NAME.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_resSsapHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+handle a voresource.loadlist message +

+SAMP_RESSSAPHANDLER -- Handle a voresource.loadlist.ssap message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::handlerMode, samp_getMapFromMap(), samp_getStringFromMap(), samp_getUserHandler(), samp_resLoadHandler(), and SZ_NAME.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_resTapHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+handle a voresource.loadlist message +

+SAMP_RESTAPHANDLER -- Handle a voresource.loadlist.tap message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::handlerMode, samp_getMapFromMap(), samp_getStringFromMap(), samp_getUserHandler(), samp_resLoadHandler(), and SZ_NAME.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_resVOSpaceHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+handle a voresource.loadlist message +

+SAMP_RESVOSPACEHANDLER -- Handle a voresource.loadlist.vospace message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::handlerMode, samp_getMapFromMap(), samp_getStringFromMap(), samp_getUserHandler(), samp_resLoadHandler(), and SZ_NAME.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void samp_setSampHandler (handle_t  handle,
String  mtype,
void *  func 
)
+
+
+ +

+Set the SAMP interface handler for the mtype. +

+SAMP_SETSAMPHANDLER -- Set the SAMP interface handler for the mtype.

+

Parameters:
+ + + + +
handle user handle to samp struct
mtype mtype name
func callback function
+
+
Returns:
nothing
+ +

References Samp::nsubs, and Subs::sampFunc.

+ +

Referenced by samp_Subscribe().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void samp_setUserHandler (handle_t  handle,
String  mtype,
void *  func 
)
+
+
+ +

+Set the user-interface handler for the mtype. +

+SAMP_SETUSERHANDLER -- Set the user-interface handler for the mtype.

+

Parameters:
+ + + + +
handle user handle to samp struct
mtype mtype name
func callback function
+
+
Returns:
nothing
+ +

References Samp::defaultUserFunc, Samp::nsubs, and Subs::userFunc.

+ +

Referenced by samp_Subscribe().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_specLoadHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Handle a spectrum.load.* message. +

+SAMP_SPECLOADHANDLER -- Handle a spectrum.load.* message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::handlerMode, samp_getMapFromMap(), samp_getStringFromMap(), samp_getUserHandler(), and SZ_NAME.

+ +

Referenced by samp_specSSAHandler().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_specSSAHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Handle a spectrum.load.ssa-generic message. +

+SAMP_SPECSSAHANDLER -- Handle a spectrum.load.ssa-generic message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::handlerMode, samp_getMapFromMap(), samp_getStringFromMap(), samp_getUserHandler(), samp_specLoadHandler(), and SZ_NAME.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_StatusHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Return status of the task. +

+SAMP_STATUSHANDLER -- Return status of the task.

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::handlerMode, and samp_getUserHandler().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_tbHighlightHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Handle a table.highlight.row message. +

+SAMP_TBHIGHLIGHTHANDLER -- Handle a table.highlight.row message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::handlerMode, samp_getIntFromMap(), samp_getStringFromMap(), samp_getUserHandler(), and SZ_NAME.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_tbLoadFITSHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Handle a generic table.load.fits message. +

+SAMP_TBLOADFITSHANDLER -- Handle a generic table.load.fits message *

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::handlerMode, samp_getStringFromMap(), samp_getUserHandler(), samp_tbLoadHandler(), and SZ_NAME.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_tbLoadHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Handle a generic table.load.* message. +

+SAMP_TBLOADHANDLER -- Handle a generic table.load.* message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::handlerMode, samp_getStringFromMap(), samp_getUserHandler(), and SZ_NAME.

+ +

Referenced by samp_tbLoadFITSHandler(), and samp_tbLoadVOTHandler().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_tbLoadVOTHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Handle a generic table.load.votable message. +

+SAMP_TBLOADVOTHANDLER -- Handle a generic table.load.votable message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::handlerMode, samp_getStringFromMap(), samp_getUserHandler(), samp_tbLoadHandler(), and SZ_NAME.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_tbSelectHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Handle a table.select.rowList message. +

+SAMP_TBSELECTHANDLER -- Handle a table.select.rowList message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::handlerMode, samp_getListFromMap(), samp_getStringFromMap(), samp_getUserHandler(), samp_listLen(), and SZ_NAME.

+ +
+

+


Variable Documentation

+ +
+
+ + + + +
List nullList
+
+
+ +

+SAMP_OK Map struct +

+

+ +

+
+ + + + +
Map nullMap
+
+
+ +

+SAMP handle +

+

+ +

+
+ + + + +
handle_t sampH
+
+
+ +

+SAMP struct pointer +

+

+

+
Generated on Wed Feb 27 21:10:15 2013 for SAMP Client Library by  + +doxygen 1.5.9
+ + diff --git a/vendor/voclient/libsamp/doc/html/sampHub_8c.html b/vendor/voclient/libsamp/doc/html/sampHub_8c.html new file mode 100644 index 00000000..ac8d5529 --- /dev/null +++ b/vendor/voclient/libsamp/doc/html/sampHub_8c.html @@ -0,0 +1,624 @@ + + +SAMP Client Library: sampHub.c File Reference + + + + + +
+

sampHub.c File Reference

Methods related to the SAMP Hub interface. +More... +

+#include <stdlib.h>
+#include <stdio.h>
+#include <unistd.h>
+#include <string.h>
+#include <time.h>
+#include <pthread.h>
+#include <ctype.h>
+#include "samp.h"
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Defines

+#define HUB_DBG   (getenv("HUB_DBG")!=NULL||access("/tmp/HUB_DBG",F_OK)==0)

Functions

handle_t samp_hubOpen (Samp *sampP)
 Discover and open a connection to the SAMP Hub.
int samp_hubClose (handle_t handle)
 Close a connection to the Hub.
int samp_hubRunning (void)
List samp_getAvailableHubs (handle_t handle)
 Get a list of available Hubs.
+char * samp_getActiveHubName (handle_t handle)
+int samp_getActiveHub (handle_t handle)
+int samp_hubInit (handle_t handle, char *appName, char *descr)
int samp_processHubEvent (String mtype, Map params)
 Determine the type of Hub event mtype.
int samp_hubEvent (String mtype)
 Determine the type of Hub event mtype.
int samp_hubRegister (Hub *hub)
 Send a Register message to the Hub.
int samp_hubUnRegister (Hub *hub)
 Send a UnRegister message to the Hub.
int samp_hubSendShutdown (Hub *hub)
 Send a samp.app.event.shutdown message to the Hub.
int samp_hubSetXmlrpcCallback (Hub *hub)
 Set the client callback and send to Hub.
int samp_hubPing (Hub *hub)
 Ping the Hub to see if it is alive.
int samp_hubDeclareMetadata (Hub *hub)
 Declare "standard" metadata to the Hub.
int samp_hubDeclareSubscriptions (Hub *hub)
 Declare mtype subscriptions to the Hub.

Variables

Hubhub = (Hub *) NULL
int numHubs = 0
handle_t hubHandles [MAX_HUBS]
pthread_mutex_t samp_mutex = PTHREAD_MUTEX_INITIALIZER
+SampsampP
+int numSamps
+handle_t sampHandles [MAX_SAMPS]
Map nullMap
+


Detailed Description

+Methods related to the SAMP Hub interface. +

+SAMPHUB.C -- Methods related to the SAMP Hub interface.

+

Author:
Mike Fitzpatrick
+
Date:
7/10/09
+

Function Documentation

+ +
+
+ + + + + + + + + +
List samp_getAvailableHubs (handle_t  handle  ) 
+
+
+ +

+Get a list of available Hubs. +

+SAMP_GETAVAILABLEHUBS -- Get a list of available Hubs

+

Parameters:
+ + +
handle hub handle
+
+
Returns:
List of hub handles
+ +
+

+ +

+
+ + + + + + + + + +
int samp_hubClose (handle_t  handle  ) 
+
+
+ +

+Close a connection to the Hub. +

+SAMP_HUBCLOSE -- Close a connection to the Hub.

+

Parameters:
+ + +
handle hub handle
+
+
Returns:
unregister status
+ +

References appMD::aKey, appMD::aVal, Hub::meta, appMD::nkeys, samp_freeHandle(), and samp_hubUnRegister().

+ +

Referenced by sampClose(), and sampShutdown().

+ +
+

+ +

+
+ + + + + + + + + +
int samp_hubDeclareMetadata (Hub hub  ) 
+
+
+ +

+Declare "standard" metadata to the Hub. +

+SAMP_DECLAREMETADATA -- Declare "standard" metadata to the Hub.

+

Parameters:
+ + +
hub hub struct pointer
+
+
Returns:
status
+ +

References appMD::aKey, appMD::aVal, Hub::description, appMD::docURL, appMD::iconURL, Hub::id, Hub::meta, appMD::nkeys, and Hub::privateKey.

+ +

Referenced by samp_DeclareMetadata(), and sampStartup().

+ +
+

+ +

+
+ + + + + + + + + +
int samp_hubDeclareSubscriptions (Hub hub  ) 
+
+
+ +

+Declare mtype subscriptions to the Hub. +

+SAMP_HUBDECLARESUBSCRIPTIONS -- Declare mtype subscriptions to the Hub.

+

Parameters:
+ + +
hub hub struct pointer
+
+
Returns:
status
+ +

References Hub::id, Samp::nsubs, nullMap, Hub::privateKey, Hub::samp, samp_freeMap(), and Subs::userFunc.

+ +

Referenced by samp_DeclareSubscriptions(), and sampStartup().

+ +
+

+ +

+
+ + + + + + + + + +
int samp_hubEvent (String  mtype  ) 
+
+
+ +

+Determine the type of Hub event mtype. +

+SAMP_HUBEVENT -- Determine the type of Hub event mtype.

+

Parameters:
+ + +
mtype mtype string
+
+
Returns:
Hub event code or -1 if not found
+ +

References HUB_SHUTDOWN.

+ +

Referenced by samp_processHubEvent().

+ +
+

+ +

+
+ + + + + + + + + +
handle_t samp_hubOpen (Samp sampP  ) 
+
+
+ +

+Discover and open a connection to the SAMP Hub. +

+SAMP_HUBOPEN -- Discover and open a connection to the SAMP Hub.

+

Parameters:
+ + +
samp Same structure
+
+
Returns:
hub handle
+ +

References Hub::appId, Samp::appVer, Hub::appVer, appMD::desc, Hub::description, Samp::description, Hub::id, Hub::meta, Hub::samp, samp_hubRegister(), samp_hubSetXmlrpcCallback(), samp_newHandle(), samp_P2H(), Hub::timeout, and Hub::url.

+ +

Referenced by sampInit(), and sampStartup().

+ +
+

+ +

+
+ + + + + + + + + +
int samp_hubPing (Hub hub  ) 
+
+
+ +

+Ping the Hub to see if it is alive. +

+SAMP_HUBPING -- Ping the Hub to see if it is alive.

+

Parameters:
+ + +
hub hub struct pointer
+
+
Returns:
status
+ +

References Hub::id, and Hub::privateKey.

+ +

Referenced by samp_Ping().

+ +
+

+ +

+
+ + + + + + + + + +
int samp_hubRegister (Hub hub  ) 
+
+
+ +

+Send a Register message to the Hub. +

+SAMP_HUB_REGISTER -- Send a Register message to the Hub.

+

Parameters:
+ + +
hub hub struct pointer
+
+
Returns:
status
+ +

References Hub::hubId, Hub::id, Hub::privateKey, Hub::secret, and Hub::selfId.

+ +

Referenced by samp_hubOpen().

+ +
+

+ +

+
+ + + + + + + + + +
int samp_hubRunning (void   ) 
+
+
+ +

+SAMP_HUBRUNNING -- See whether a Hub is running. The test simply checks the existence of a Hub lockfile. +

References SZ_NAME.

+ +
+

+ +

+
+ + + + + + + + + +
int samp_hubSendShutdown (Hub hub  ) 
+
+
+ +

+Send a samp.app.event.shutdown message to the Hub. +

+SAMP_HUBSENDSHUTDOWN -- Send a samp.app.event.shutdown message to the Hub.

+

Parameters:
+ + +
hub hub struct pointer
+
+
Returns:
status
+ +

References Hub::id, Hub::privateKey, and samp_nullResponse().

+ +
+

+ +

+
+ + + + + + + + + +
int samp_hubSetXmlrpcCallback (Hub hub  ) 
+
+
+ +

+Set the client callback and send to Hub. +

+SAMP_HUBSETXMLRPCCALLBACK -- Set the client callback and send to Hub

+

Parameters:
+ + +
hub hub struct pointer
+
+
Returns:
status
+ +

References Hub::id, Hub::privateKey, and samp_serverPort().

+ +

Referenced by samp_hubOpen().

+ +
+

+ +

+
+ + + + + + + + + +
int samp_hubUnRegister (Hub hub  ) 
+
+
+ +

+Send a UnRegister message to the Hub. +

+SAMP_HUBUNREGISTER -- Send a UnRegister message to the Hub.

+

Parameters:
+ + +
hub hub struct pointer
+
+
Returns:
status
+ +

References Hub::id, and Hub::privateKey.

+ +

Referenced by samp_hubClose(), and samp_UnRegister().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
int samp_processHubEvent (String  mtype,
Map  params 
)
+
+
+ +

+Determine the type of Hub event mtype. +

+SAMP_HUBEVENT -- Determine the type of Hub event mtype.

+

Parameters:
+ + + +
mtype mtype string
params message parameter Map
+
+
Returns:
non-zero value if a Hub event was processed
+ +

References HUB_SHUTDOWN, samp_addClient(), samp_hubEvent(), samp_mutex, samp_P2H(), samp_removeClient(), sampH, and sampShutdown().

+ +

Referenced by samp_receiveNotification().

+ +
+

+


Variable Documentation

+ +

+ +

+
+ + + + +
handle_t hubHandles[MAX_HUBS]
+
+
+ +

+No. of available hubs +

+

+ +

+
+ + + + +
Map nullMap
+
+
+ +

+SAMP handle +

+

+ +

+
+ + + + +
int numHubs = 0
+
+
+ +

+HUB connection +

+

+ +

+
+ + + + +
pthread_mutex_t samp_mutex = PTHREAD_MUTEX_INITIALIZER
+
+
+ +

+lock so we can update struct +

Referenced by samp_processHubEvent().

+ +
+

+

+
Generated on Wed Feb 27 21:10:15 2013 for SAMP Client Library by  + +doxygen 1.5.9
+ + diff --git a/vendor/voclient/libsamp/doc/html/sampList_8c.html b/vendor/voclient/libsamp/doc/html/sampList_8c.html new file mode 100644 index 00000000..8cda5200 --- /dev/null +++ b/vendor/voclient/libsamp/doc/html/sampList_8c.html @@ -0,0 +1,544 @@ + + +SAMP Client Library: sampList.c File Reference + + + + + +
+

sampList.c File Reference

(Internal) interface to support the List structure. +More... +

+#include <stdlib.h>
+#include <stdio.h>
+#include <unistd.h>
+#include <string.h>
+#include "samp.h"
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Functions

handle_t samp_newList ()
 Create a new List object.
void samp_freeList (List list)
 Free the given List object.
int samp_listLen (List list)
 Get number of elements in a List.
void samp_setStringInList (List list, char *value)
 Set a string in a List (append).
void samp_setMapInList (List list, Map map)
 Set a Map in a List (append).
void samp_setListInList (List list1, List list2)
 Set a List in another List (append).
void samp_setIntInList (List list, int ival)
 Set an Int in a List (append).
void samp_setFloatInList (List list, float rval)
 Set a Float in a List (append).
char * samp_getStringFromList (List list, int index)
 Get a string from the List.
Map samp_getMapFromList (List list, int index)
 Get a Map from the List.
List samp_getListFromList (List list, int index)
 Get a List from the List.
+int samp_getIntFromList (List list, int index)
float samp_getFloatFromList (List list, int index)
 Get a Float from the List.
+


Detailed Description

+(Internal) interface to support the List structure. +

+SAMPLIST.C -- (Internal) interface to support the List structure.

+list = samp_newList () samp_freeList (List list) len = samp_listLen (List list)

+samp_setStringInList (List list, char *value) samp_setMapInList (List list, Map map) samp_setListInList (List list1, List list2) samp_setIntInList (List list, int val) samp_setFloatInList (List list, float val)

+str = samp_getStringFromList (List list, int index) map = samp_getMapFromList (List list, int index) list = samp_getListFromList (List list, int index) ival = samp_getIntFromList (List list, int index) rval = samp_getFloatFromList (List list, int index)

+

Author:
Mike Fitzpatrick
+
Date:
7/10/09
+

Function Documentation

+ +
+
+ + + + + + + + + +
void samp_freeList (List  list  ) 
+
+
+ +

+Free the given List object. +

+SAMP_FREELIST -- Free the given List object

+

Parameters:
+ + +
list List object handle
+
+
Returns:
nothing
+ +

Referenced by samp_mapClients(), and samp_tableSelectRowList().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
float samp_getFloatFromList (List  list,
int  index 
)
+
+
+ +

+Get a Float from the List. +

+SAMP_GETFLOATFROMLIST -- Get a Float from the List

+

Parameters:
+ + + +
list List object handle
index List index containing the desired value
+
+
Returns:
int value
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
List samp_getListFromList (List  list,
int  index 
)
+
+
+ +

+Get a List from the List. +

+Get an Int from the List.

+SAMP_GETLISTFROMLIST -- Get a List from the List

+

Parameters:
+ + + +
list List object handle
index List index containing the List
+
+
Returns:
List handle
+SAMP_GETINTFROMLIST -- Get an Int from the List

+

Parameters:
+ + + +
list List object handle
index List index containing the desired value
+
+
Returns:
int value
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
Map samp_getMapFromList (List  list,
int  index 
)
+
+
+ +

+Get a Map from the List. +

+SAMP_GETMAPFROMLIST -- Get a Map from the List

+

Parameters:
+ + + +
list List object handle
index List index containing the Map
+
+
Returns:
Map handle
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
char* samp_getStringFromList (List  list,
int  index 
)
+
+
+ +

+Get a string from the List. +

+SAMP_GETSTRINGFROMLIST -- Get a string from the List

+

Parameters:
+ + + +
list List object handle
index List index containing the string
+
+
Returns:
character string
+ +

Referenced by samp_mapClients().

+ +
+

+ +

+
+ + + + + + + + + +
int samp_listLen (List  list  ) 
+
+
+ +

+Get number of elements in a List. +

+SAMP_LISTLEN -- Get number of elements in a List.

+

Parameters:
+ + +
list List object handle
+
+
Returns:
nothing
+ +

Referenced by samp_execUserHandler(), samp_GetRegisteredClients(), samp_GetSubscribedClients(), samp_mapClients(), and samp_tbSelectHandler().

+ +
+

+ +

+
+ + + + + + + + + +
handle_t samp_newList (void   ) 
+
+
+ +

+Create a new List object. +

+SAMP_NEWLIST -- Create a new List object

+

Returns:
handle to List object
+ +

Referenced by samp_GetRegisteredClients(), samp_GetSubscribedClients(), samp_tableSelectRowList(), and sampInit().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void samp_setFloatInList (List  list,
float  rval 
)
+
+
+ +

+Set a Float in a List (append). +

+SAMP_SETFLOATINLIST -- Set a Float in a List (append)

+

Parameters:
+ + + +
list1 List object handle
rval Float value to be appended
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void samp_setIntInList (List  list,
int  ival 
)
+
+
+ +

+Set an Int in a List (append). +

+SAMP_SETINTINLIST -- Set an Int in a List (append)

+

Parameters:
+ + + +
list1 List object handle
ival Integer value to be appended
+
+
Returns:
nothing
+ +

Referenced by samp_tableSelectRowList().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void samp_setListInList (List  list1,
List  list2 
)
+
+
+ +

+Set a List in another List (append). +

+SAMP_SETLISTINLIST -- Set a List in another List (append)

+

Parameters:
+ + + +
list1 List object handle
list2 List to be appended
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void samp_setMapInList (List  list,
Map  map 
)
+
+
+ +

+Set a Map in a List (append). +

+SAMP_SETMAPINLIST -- Set a Map in a List (append)

+

Parameters:
+ + + +
list List object handle
map Map object to be set
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void samp_setStringInList (List  list,
char *  value 
)
+
+
+ +

+Set a string in a List (append). +

+SAMP_SETSTRINGINLIST -- Set a string in a List (append)

+

Parameters:
+ + + +
list List object handle
value string value to set
+
+
Returns:
nothing
+ +

Referenced by samp_GetRegisteredClients(), and samp_GetSubscribedClients().

+ +
+

+

+
Generated on Wed Feb 27 21:10:16 2013 for SAMP Client Library by  + +doxygen 1.5.9
+ + diff --git a/vendor/voclient/libsamp/doc/html/sampLog_8c.html b/vendor/voclient/libsamp/doc/html/sampLog_8c.html new file mode 100644 index 00000000..e4549f8a --- /dev/null +++ b/vendor/voclient/libsamp/doc/html/sampLog_8c.html @@ -0,0 +1,169 @@ + + +SAMP Client Library: sampLog.c File Reference + + + + + +
+

sampLog.c File Reference

SAMP trace and logging interface. +More... +

+#include <stdio.h>
+#include <fcntl.h>
+#include <signal.h>
+#include <unistd.h>
+#include <stdlib.h>
+#include <string.h>
+#include <stdarg.h>
+#include "samp.h"
+ + + + + + + + + + + + + + + + + + + + +

Defines

+#define SZ_FMTSPEC   25
+#define EOS   0
+#define T_INT   0
+#define T_DOUBLE   1
+#define T_CHAR   2

Functions

void sampLog (handle_t handle, char *format,...)
 SAMP message logger.
void sampTrace (handle_t handle, char *format,...)
 SAMP tracer.
+


Detailed Description

+SAMP trace and logging interface. +

+SAMPLOG.C -- SAMP trace and logging interface.

+

Author:
Mike Fitzpatrick
+
Date:
6/10/09
+

Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void sampLog (handle_t  handle,
char *  format,
  ... 
)
+
+
+ +

+SAMP message logger. +

+SAMPLOG -- SAMP message logger.

+

Parameters:
+ + + +
handle SAMP handle
format message format string
+
+
Returns:
nothing
+ +

References Samp::debug, and Samp::logfd.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void sampTrace (handle_t  handle,
char *  format,
  ... 
)
+
+
+ +

+SAMP tracer. +

+SAMPTRACE -- SAMP tracer.

+

Parameters:
+ + + +
handle SAMP handle
format message format string
+
+
Returns:
nothing
+ +

References Samp::trace.

+ +

Referenced by samp_Metadata(), sampClose(), and sampInit().

+ +
+

+

+
Generated on Wed Feb 27 21:10:16 2013 for SAMP Client Library by  + +doxygen 1.5.9
+ + diff --git a/vendor/voclient/libsamp/doc/html/sampMTypes_8c.html b/vendor/voclient/libsamp/doc/html/sampMTypes_8c.html new file mode 100644 index 00000000..4007553d --- /dev/null +++ b/vendor/voclient/libsamp/doc/html/sampMTypes_8c.html @@ -0,0 +1,1012 @@ + + +SAMP Client Library: sampMTypes.c File Reference + + + + + +
+

sampMTypes.c File Reference

SAMP interface procedures for application mtypes. +More... +

+#include <stdlib.h>
+#include <stdio.h>
+#include <unistd.h>
+#include <string.h>
+#include <time.h>
+#include <ctype.h>
+#include "samp.h"
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Functions

int samp_tableLoadVOTable (handle_t handle, String recip, String url, String tableId, String name)
 Tell an app to load a VOTable.
int samp_tableLoadFITS (handle_t handle, String recip, String url, String tableId, String name)
 Tell an app to load a FITS table.
int samp_tableHighlightRow (handle_t handle, String recip, String tableId, String url, int row)
 Tell an app to highlight a table row.
int samp_tableSelectRowList (handle_t handle, String recip, String tableId, String url, int rows[], int nrows)
 Tell an app to select a list of table rows.
int samp_imageLoadFITS (handle_t handle, String recip, String url, String imageId, String name)
 Tell an app to load a FITS image.
int samp_coordPointAtSky (handle_t handle, String recip, float ra, float dec)
 Tell an app to point at an RA/Dec coordinate.
int samp_specLoadSSAGeneric (handle_t handle, String recip, String url, Map meta, String spectrumId, String name)
 Load a generic spectrum from an SSA service.
int samp_cmdExec (handle_t handle, String recip, String cmd)
 Execute a command in a remote application.
char * samp_envGet (handle_t handle, String recip, String name)
 Get an environment variable in a remote application.
int samp_envSet (handle_t handle, String recip, String name, String value)
 Set an environment variable in a remote application.
char * samp_paramGet (handle_t handle, String recip, String name)
 Get a parameter variable in a remote application.
int samp_paramSet (handle_t handle, String recip, String name, String value)
 Set an parameter variable in a remote application.
int samp_bibLoad (handle_t handle, String recip, String bibcode)
 Exchange a bibcode.
int samp_resourceLoad (handle_t handle, String recip, String type, String name, Map resMap)
 Exchange a resource list.
int samp_sendGeneric (handle_t handle, String recip, String mtype, String args[])
 Send a geenric message.
int samp_sendMsg (handle_t handle, String recip, Map msg)
 Send the specified message.
+


Detailed Description

+SAMP interface procedures for application mtypes. +

+SAMPMTYPES.C -- SAMP interface procedures for application mtypes.

+samp_tableLoadVOTable (handle, recip, url, tableId, name) samp_tableLoadFITS (handle, recip, url, tableId, name) samp_tableHighlightRow (handle, recip, tableId, url, row) samp_tableSelectRowList (handle, recip, tableId, url, rows[], nrows)

+samp_imageLoadFITS (handle, recip, url, imageId, name) samp_coordPointAtSky (handle, recip, ra, dec)

+samp_specLoadSSAGeneric (handle, recip, url, meta_map, specId, name) samp_cmdExec (handle, recip, cmd) samp_envGet (handle, recip, name) samp_envSet (handle, recip, name, value) samp_paramGet (handle, recip, name) samp_paramSet (handle, recip, name, value) samp_bibLoad (handle, recip, bibcode) samp_resourceLoad (handle, recip, type, resList[])

+samp_sendGeneric (handle, recip, mtype, args) samp_sendMsg (handle, recip, Map msg_map)

+

Author:
Mike Fitzpatrick
+
Date:
7/18/11
+

Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
int samp_bibLoad (handle_t  handle,
String  recip,
String  bibcode 
)
+
+
+ +

+Exchange a bibcode. +

+SAMP_BIBLOAD -- Exchange a bibcode.

+

Parameters:
+ + + + +
handle samp struct handle
recip name of recipient (or 'all')
bibcode Bibcode string
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::hub, hub, samp_freeMsg(), samp_msgParam(), samp_newMsg(), samp_newParam(), and samp_sendMsg().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
int samp_cmdExec (handle_t  handle,
String  recip,
String  cmd 
)
+
+
+ +

+Execute a command in a remote application. +

+SAMP_CMDEXEC -- Execute a command in a remote application.

+

Parameters:
+ + + + +
handle samp struct handle
recip name of recipient (or 'all')
cmd Command string
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::hub, hub, samp_freeMsg(), samp_msgParam(), samp_newMsg(), samp_newParam(), and samp_sendMsg().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_coordPointAtSky (handle_t  handle,
String  recip,
float  ra,
float  dec 
)
+
+
+ +

+Tell an app to point at an RA/Dec coordinate. +

+SAMP_COORDPOINTATSKY -- Tell an app to point at an RA/Dec coordinate.

+

Parameters:
+ + + + + +
handle samp struct handle
recip name of recipient (or 'all')
ra RA of coord in degrees
dec Dec of coord in degrees
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::hub, hub, samp_addFloatParam(), samp_freeMsg(), samp_msgParam(), samp_newMsg(), samp_newParam(), and samp_sendMsg().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
char* samp_envGet (handle_t  handle,
String  recip,
String  name 
)
+
+
+ +

+Get an environment variable in a remote application. +

+SAMP_ENVGET -- Get an environment variable in a remote application.

+

Parameters:
+ + + + +
handle samp struct handle
recip name of recipient (or 'all')
name Name of variable in receiver's environment
+
+
Returns:
NULL, Value of variable, or list of values
+ +

References Samp::clients, Samp::errortxt, Samp::hub, hub, Hub::id, Client::name, Samp::nclients, Hub::privateKey, samp_app2id(), samp_freeMsg(), samp_msgParam(), samp_newMsg(), samp_newParam(), and Hub::timeout.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_envSet (handle_t  handle,
String  recip,
String  name,
String  value 
)
+
+
+ +

+Set an environment variable in a remote application. +

+SAMP_ENVSET -- Set an environment variable in a remote application.

+

Parameters:
+ + + + + +
handle samp struct handle
recip name of recipient (or 'all')
name Name of variable in receiver's environment
value Value of variable or NULL
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::hub, hub, samp_freeMsg(), samp_msgParam(), samp_newMsg(), samp_newParam(), and samp_sendMsg().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_imageLoadFITS (handle_t  handle,
String  recip,
String  url,
String  imageId,
String  name 
)
+
+
+ +

+Tell an app to load a FITS image. +

+SAMP_IMAGELOADFITS -- Tell an app to load a FITS image.

+

Parameters:
+ + + + + + +
handle samp struct handle
recip Message recipient (or "all" for broadcast)
url URL to table to be loaded
imageId ID assigned to image (optional)
name Name assigned to image (optional)
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::hub, hub, samp_freeMsg(), samp_msgParam(), samp_newMsg(), samp_newParam(), and samp_sendMsg().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
char* samp_paramGet (handle_t  handle,
String  recip,
String  name 
)
+
+
+ +

+Get a parameter variable in a remote application. +

+SAMP_PARAMGET -- Get a parameter variable in a remote application.

+

Parameters:
+ + + + +
handle samp struct handle
recip name of recipient (or 'all')
name Name of variable in receiver's environment
+
+
Returns:
NULL, Value of variable, or list of values
+ +

References Samp::clients, Samp::errortxt, Samp::hub, hub, Hub::id, Client::name, Samp::nclients, Hub::privateKey, samp_app2id(), samp_freeMsg(), samp_msgParam(), samp_newMsg(), samp_newParam(), and Hub::timeout.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_paramSet (handle_t  handle,
String  recip,
String  name,
String  value 
)
+
+
+ +

+Set an parameter variable in a remote application. +

+SAMP_PARAMSET -- Set an parameter variable in a remote application.

+

Parameters:
+ + + + + +
handle samp struct handle
recip name of recipient (or 'all')
name Name of variable in receiver's environment
value Value of variable or NULL
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::hub, hub, samp_freeMsg(), samp_msgParam(), samp_newMsg(), samp_newParam(), and samp_sendMsg().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_resourceLoad (handle_t  handle,
String  recip,
String  type,
String  name,
Map  resMap 
)
+
+
+ +

+Exchange a resource list. +

+SAMP_RESOURCELOAD -- Exchange a resource list.

+

Parameters:
+ + + + + + +
handle samp struct handle
recip Name of recipient (or 'all')
type Resource type (or NULL)
name Descriptive name (optional)
resMap Resource map
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::hub, hub, samp_addMapParam(), samp_freeMsg(), samp_msgParam(), samp_newMsg(), samp_newParam(), samp_sendMsg(), and SZ_NAME.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_sendGeneric (handle_t  handle,
String  recip,
String  mtype,
String  args[] 
)
+
+
+ +

+Send a geenric message. +

+SAMP_SENDGENERIC -- Send a generic message.

+

Parameters:
+ + + + + +
handle samp struct handle
recip Name of recipient (or 'all')
mtype Message type
args Argument list
+
+
Returns:
SAMP_OK or SAMP_ERR
+This method can be used to send any user-defined message. The 'mtype' string is arbitrary, we just assume the receiving client can understand what it means. The 'args' String array can be an array of values in which case the parameter name will be a series of generic 'arg0' thru 'argN-1' names. +

References Samp::hub, hub, samp_addFloatParam(), samp_addIntParam(), samp_freeMsg(), samp_msgParam(), samp_newMsg(), samp_newParam(), samp_sendMsg(), and SZ_NAME.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
int samp_sendMsg (handle_t  handle,
String  recip,
Map  msg 
)
+
+
+ +

+Send the specified message. +

+SAMP_SENDMSG -- Send the specified message.

+

Parameters:
+ + + + +
handle samp struct handle
recip Name of recipient (or 'all')
msg Message map
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::clients, Samp::msgMode, Samp::nclients, samp_app2id(), samp_call(), samp_callAll(), samp_callAndWait(), samp_notify(), samp_notifyAll(), and samp_setErr().

+ +

Referenced by samp_bibLoad(), samp_cmdExec(), samp_coordPointAtSky(), samp_envSet(), samp_imageLoadFITS(), samp_paramSet(), samp_resourceLoad(), samp_sendGeneric(), samp_specLoadSSAGeneric(), samp_tableHighlightRow(), samp_tableLoadFITS(), samp_tableLoadVOTable(), and samp_tableSelectRowList().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_specLoadSSAGeneric (handle_t  handle,
String  recip,
String  url,
Map  meta,
String  spectrumId,
String  name 
)
+
+
+ +

+Load a generic spectrum from an SSA service. +

+SAMP_SPECLOADSSAGENERIC -- Load a generic spectrum from an SSA service.

+

Parameters:
+ + + + + + + +
handle samp struct handle
recip name of recipient (or 'all')
url URL of spectrum to load
meta Metadata map describing data found at the URL
spectrumId Identifier for spectrum (optional)
name Name used to label spectrum (optional);
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::hub, hub, samp_addMapParam(), samp_freeMsg(), samp_msgParam(), samp_newMsg(), samp_newParam(), and samp_sendMsg().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_tableHighlightRow (handle_t  handle,
String  recip,
String  tableId,
String  url,
int  row 
)
+
+
+ +

+Tell an app to highlight a table row. +

+SAMP_TABLEHIGHLIGHTROW -- Tell an app to highlight a table row.

+

Parameters:
+ + + + + + +
handle samp struct handle
recip Message recipient (or "all" for broadcast)
tableId ID associated with a previously loaded table
url URL to table to be loaded
rows List of (zero-based) row indices
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::hub, hub, samp_addIntParam(), samp_freeMsg(), samp_msgParam(), samp_newMsg(), samp_newParam(), and samp_sendMsg().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_tableLoadFITS (handle_t  handle,
String  recip,
String  url,
String  tableId,
String  name 
)
+
+
+ +

+Tell an app to load a FITS table. +

+SAMP_TABLELOADFITS -- Tell an app to load a FITS table.

+

Parameters:
+ + + + + + +
handle samp struct handle
recip Message recipient (or "all" for broadcast)
url URL to table to be loaded
tableId ID assigned to table (optional)
name Name assigned to table (optional)
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::hub, hub, samp_freeMsg(), samp_msgParam(), samp_newMsg(), samp_newParam(), and samp_sendMsg().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_tableLoadVOTable (handle_t  handle,
String  recip,
String  url,
String  tableId,
String  name 
)
+
+
+ +

+Tell an app to load a VOTable. +

+SAMP_TABLELOADVOTABLE -- Tell an app to load a VOTable.

+

Parameters:
+ + + + + + +
handle samp struct handle
recip Message recipient (or "all" for broadcast)
url URL to table to be loaded
tableId ID assigned to table (optional)
name Name assigned to table (optional)
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::hub, hub, samp_freeMsg(), samp_msgParam(), samp_newMsg(), samp_newParam(), and samp_sendMsg().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_tableSelectRowList (handle_t  handle,
String  recip,
String  tableId,
String  url,
int  rows[],
int  nrows 
)
+
+
+ +

+Tell an app to select a list of table rows. +

+SAMP_TABLESELECTROWLIST -- Tell an app to select a list of table rows.

+

Parameters:
+ + + + + + + +
handle samp struct handle
recip Message recipient (or "all" for broadcast)
tableId ID associated with a previously loaded table
url URL to table to be loaded
rows Array of (zero-based) row indices
nrows Number of rows
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

References Samp::hub, hub, samp_addListParam(), samp_freeList(), samp_freeMsg(), samp_msgParam(), samp_newList(), samp_newMsg(), samp_newParam(), samp_sendMsg(), and samp_setIntInList().

+ +
+

+

+
Generated on Wed Feb 27 21:10:16 2013 for SAMP Client Library by  + +doxygen 1.5.9
+ + diff --git a/vendor/voclient/libsamp/doc/html/sampMap_8c.html b/vendor/voclient/libsamp/doc/html/sampMap_8c.html new file mode 100644 index 00000000..80ccf1c5 --- /dev/null +++ b/vendor/voclient/libsamp/doc/html/sampMap_8c.html @@ -0,0 +1,593 @@ + + +SAMP Client Library: sampMap.c File Reference + + + + + +
+

sampMap.c File Reference

(Internal) Interface to support the Map structure +More... +

+#include <stdlib.h>
+#include <stdio.h>
+#include <unistd.h>
+#include <string.h>
+#include "samp.h"
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Functions

handle_t samp_newMap ()
 Create a new Map object.
void samp_freeMap (Map map)
 Free the given Map object.
+int samp_getMapSize (Map map)
+char * samp_getMapKey (Map map, int index)
+char * samp_getMapVal (Map map, int index)
void samp_setStringInMap (Map map, char *key, char *value)
 Set a string in a Map (append).
void samp_setMapInMap (Map map1, char *key, Map map2)
 Set a Map in a Map (append).
void samp_setListInMap (Map map, char *key, List list)
 Set a List in a Map (append).
void samp_setIntInMap (Map map, char *key, int value)
 Set a Int in a Map (append).
void samp_setFloatInMap (Map map, char *key, float value)
 Set a string in a Map (append).
char * samp_getStringFromMap (Map map, char *key)
 Get a string from the Map.
Map samp_getMapFromMap (Map map, char *key)
 Get a Map from the Map.
List samp_getListFromMap (Map map, char *key)
 Get a LIST from the Map.
int samp_getIntFromMap (Map map, char *key)
 Get a integer from the Map.
float samp_getFloatFromMap (Map map, char *key)
 Get a float from the Map.
+


Detailed Description

+(Internal) Interface to support the Map structure +

+SAMPMAP.C -- (Internal) Interface to support the Map structure

+map = samp_newMap () samp_freeMap (Map map)

+nelem = samp_getMapSize (Map map) key = samp_getMapKey (Map map, int index) val = samp_getMapVal (Map map, int index)

+samp_setStringInMap (Map map, char *value) samp_setMapInMap (Map map1, Map map2) samp_setListInMap (Map map, List list) samp_setIntInMap (Map map, int ival) samp_setFloatInMap (Map map, float rval)

+str = samp_getStringFromMap (Map map, char *key) map = samp_getMapFromMap (Map map, char *key) list = samp_getListFromMap (Map map, char *key) ival = samp_getIntFromMap (Map map, char *key) rval = samp_getFloatFromMap (Map map, char *key)

+

Author:
Mike Fitzpatrick
+
Date:
7/10/09
+

Function Documentation

+ +
+
+ + + + + + + + + +
void samp_freeMap (Map  map  ) 
+
+
+ +

+Free the given Map object. +

+SAMP_FREEMAP -- Free the given Map object

+

Parameters:
+ + +
map Map object to free
+
+
Returns:
nothing
+ +

Referenced by samp_envGetHandler(), samp_hubDeclareSubscriptions(), samp_paramGetHandler(), and samp_Ping().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
float samp_getFloatFromMap (Map  map,
char *  key 
)
+
+
+ +

+Get a float from the Map. +

+SAMP_GETFLOATFROMMAP -- Get a float from the Map

+

Parameters:
+ + + +
map handle to Map object
key Map key
+
+
Returns:
floating point value
+ +

Referenced by samp_execUserHandler(), and samp_pointAtHandler().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
int samp_getIntFromMap (Map  map,
char *  key 
)
+
+
+ +

+Get a integer from the Map. +

+SAMP_GETINTFROMMAP -- Get a integer from the Map

+

Parameters:
+ + + +
map handle to Map object
key Map key
+
+
Returns:
integer value
+ +

Referenced by samp_execUserHandler(), and samp_tbHighlightHandler().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
List samp_getListFromMap (Map  map,
char *  key 
)
+
+
+ +

+Get a LIST from the Map. +

+SAMP_GETLISTFROMMAP -- Get a LIST from the Map

+

Parameters:
+ + + +
map handle to Map object
key Map key
+
+
Returns:
handle to List value
+ +

Referenced by samp_execUserHandler(), and samp_tbSelectHandler().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
Map samp_getMapFromMap (Map  map,
char *  key 
)
+
+
+ +

+Get a Map from the Map. +

+SAMP_GETMAPFROMMAP -- Get a Map from the Map

+

Parameters:
+ + + +
map handle to Map object
key Map key
+
+
Returns:
handle to Map value
+ +

Referenced by samp_execUserHandler(), samp_resConeHandler(), samp_resLoadHandler(), samp_resSiapHandler(), samp_resSsapHandler(), samp_resTapHandler(), samp_resVOSpaceHandler(), samp_specLoadHandler(), and samp_specSSAHandler().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
char* samp_getStringFromMap (Map  map,
char *  key 
)
+
+ +

+ +

+
+ + + + + + + + + +
handle_t samp_newMap (void   ) 
+
+
+ +

+Create a new Map object. +

+SAMP_NEWMAP -- Create a new Map object

+

Returns:
handle to new Map
+ +

Referenced by samp_envGetHandler(), samp_getNullMap(), samp_getOKMap(), samp_paramGetHandler(), and sampInit().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void samp_setFloatInMap (Map  map,
char *  key,
float  value 
)
+
+
+ +

+Set a string in a Map (append). +

+SAMP_SETFLOATINMAP -- Set a Float in a Map (append)

+

Parameters:
+ + + + +
map handle to Map object
key Map key
value value
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void samp_setIntInMap (Map  map,
char *  key,
int  value 
)
+
+
+ +

+Set a Int in a Map (append). +

+SAMP_SETINTINMAP -- Set a Int in a Map (append)

+

Parameters:
+ + + + +
map handle to Map object
key Map key
value value
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void samp_setListInMap (Map  map,
char *  key,
List  list 
)
+
+
+ +

+Set a List in a Map (append). +

+SAMP_SETLISTINMAP -- Set a List in a Map (append)

+

Parameters:
+ + + + +
map handle to Map object
key Map key
list handle to List object to set
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void samp_setMapInMap (Map  map1,
char *  key,
Map  map2 
)
+
+
+ +

+Set a Map in a Map (append). +

+SAMP_SETMAPINMAP -- Set a Map in a Map (append)

+

Parameters:
+ + + + +
map1 handle to Map object
key Map key
map2 handle to Map object to set
+
+
Returns:
nothing
+ +

Referenced by samp_envGetHandler(), samp_getOKMap(), samp_paramGetHandler(), and sampInit().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void samp_setStringInMap (Map  map,
char *  key,
char *  value 
)
+
+
+ +

+Set a string in a Map (append). +

+SAMP_SETSTRINGINMAP -- Set a string in a Map (append)

+

Parameters:
+ + + + +
map handle to Map object
key Map key
value Map value
+
+
Returns:
nothing
+ +

Referenced by samp_envGetHandler(), samp_getOKMap(), samp_paramGetHandler(), and sampInit().

+ +
+

+

+
Generated on Wed Feb 27 21:10:16 2013 for SAMP Client Library by  + +doxygen 1.5.9
+ + diff --git a/vendor/voclient/libsamp/doc/html/sampMethods_8c.html b/vendor/voclient/libsamp/doc/html/sampMethods_8c.html new file mode 100644 index 00000000..ad9c8b7a --- /dev/null +++ b/vendor/voclient/libsamp/doc/html/sampMethods_8c.html @@ -0,0 +1,294 @@ + + +SAMP Client Library: sampMethods.c File Reference + + + + + +
+

sampMethods.c File Reference

SAMP methods implemented by a callable client. +More... +

+#include <stdlib.h>
+#include <stdio.h>
+#include <unistd.h>
+#include <string.h>
+#include <time.h>
+#include <ctype.h>
+#include "samp.h"
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Defines

+#define METH_DBG   (getenv("METH_DBG")!=NULL||access("/tmp/METH_DBG",F_OK)==0)
+#define OK_Map   samp_getOKMap()

Functions

int samp_receiveCall (void *data)
 test.echo method
int samp_receiveNotification (void *data)
 receiveNotification () client method.
int samp_receiveResponse (void *data)
 receiveResponse () client method.
void samp_setHandlerReply (Map resp)
 Set the Samp Handler reply map.
Map samp_getHandlerReply ()
 Get the Samp Handler reply map.

Variables

Map nullMap
List nullList
+SampsampP
handle_t sampH
+


Detailed Description

+SAMP methods implemented by a callable client. +

+SAMPMETHODS.C -- SAMP methods implemented by a callable client.

+

Author:
Mike Fitzpatrick
+
Date:
7/10/09
+

Function Documentation

+ +
+
+ + + + + + + + + +
Map samp_getHandlerReply (void   ) 
+
+
+ +

+Get the Samp Handler reply map. +

+SAMP_GETHANDLERREPLY -- Get the Samp Handler reply map.

+

Returns:
Map handle for reply map
+ +

References nullMap, and OK_Map.

+ +

Referenced by samp_receiveCall(), and samp_receiveNotification().

+ +
+

+ +

+
+ + + + + + + + + +
int samp_receiveCall (void *  data  ) 
+
+
+ +

+test.echo method +

+receiveCall () client method.

+SAMP_TESTECHO -- test.echo method

+

Parameters:
+ + +
data caller param data
+
+
Returns:
status code or errno
+SAMP_RECEIVECALL -- receiveCall() client method.

+

Parameters:
+ + +
data caller param data
+
+
Returns:
status code or errno
+ +

References Samp::defaultUserFunc, OK_Map, samp_execUserHandler(), samp_getHandlerReply(), samp_getSampHandler(), samp_getUserHandler(), samp_Reply(), sampH, and Samp::trace.

+ +
+

+ +

+
+ + + + + + + + + +
int samp_receiveNotification (void *  data  ) 
+
+
+ +

+receiveNotification () client method. +

+SAMP_RECEIVENOTIFICATION -- receiveNotification() client method.

+

Parameters:
+ + +
data caller param data
+
+
Returns:
status code or errno
+ +

References Samp::defaultUserFunc, OK_Map, samp_execUserHandler(), samp_getHandlerReply(), samp_getSampHandler(), samp_getUserHandler(), samp_processHubEvent(), and Samp::trace.

+ +
+

+ +

+
+ + + + + + + + + +
int samp_receiveResponse (void *  data  ) 
+
+
+ +

+receiveResponse () client method. +

+SAMP_RECEIVERESPONSE -- receiveResponse() client method.

+

Parameters:
+ + +
data caller param data
+
+
Returns:
status code or errno
+ +

References Samp::defaultUserFunc, OK_Map, samp_execUserHandler(), and Samp::trace.

+ +
+

+ +

+
+ + + + + + + + + +
void samp_setHandlerReply (Map  resp  ) 
+
+
+ +

+Set the Samp Handler reply map. +

+SAMP_SETHANDLERREPLY -- Set the Samp Handler reply map.

+

Parameters:
+ + +
resp response map
+
+
Returns:
nothing
+ +

Referenced by samp_envGetHandler(), and samp_paramGetHandler().

+ +
+

+


Variable Documentation

+ +
+
+ + + + +
List nullList
+
+
+ +

+SAMP_OK Map struct +

Referenced by sampInit().

+ +
+

+ +

+
+ + + + +
Map nullMap
+
+ +

+ +

+
+ + + + +
handle_t sampH
+
+
+ +

+SAMP struct pointer +

Referenced by samp_processHubEvent(), samp_receiveCall(), and sampInit().

+ +
+

+

+
Generated on Wed Feb 27 21:10:16 2013 for SAMP Client Library by  + +doxygen 1.5.9
+ + diff --git a/vendor/voclient/libsamp/doc/html/sampMsg_8c.html b/vendor/voclient/libsamp/doc/html/sampMsg_8c.html new file mode 100644 index 00000000..98ae88ab --- /dev/null +++ b/vendor/voclient/libsamp/doc/html/sampMsg_8c.html @@ -0,0 +1,163 @@ + + +SAMP Client Library: sampMsg.c File Reference + + + + + +
+

sampMsg.c File Reference

(Internal) Interface to Message objects. +More... +

+#include <stdlib.h>
+#include <stdio.h>
+#include <unistd.h>
+#include <string.h>
+#include "samp.h"
+ + + + + + + + + + + + + + + + +

Functions

Msg samp_newMsg ()
 Create a new Msg object.
void samp_freeMsg (Msg msg)
 Free the given Msg object.
+void samp_msgMType (Msg msg, String mtype)
+char * samp_msgTag ()
void samp_msgParam (Msg msg, Param param)
 Add a parameter to the Msg.
+


Detailed Description

+(Internal) Interface to Message objects. +

+SAMPMSG.C -- (Internal) Interface to Message objects.

+msg = samp_newMsg () samp_msgMType (Msg msg, String mtype) samp_msgParam (Msg msg, Param param) samp_msgTag () samp_freeMsg (Msg msg)

+

Author:
Mike Fitzpatrick
+
Date:
7/10/11
+

Function Documentation

+ +
+
+ + + + + + + + + +
void samp_freeMsg (Msg  msg  ) 
+
+
+ +

+Free the given Msg object. +

+SAMP_FREEMSG -- Free the given Msg object

+

Parameters:
+ + +
msg Msg object to free
+
+
Returns:
nothing
+ +

Referenced by samp_bibLoad(), samp_cmdExec(), samp_coordPointAtSky(), samp_envGet(), samp_envSet(), samp_imageLoadFITS(), samp_paramGet(), samp_paramSet(), samp_Ping(), samp_resourceLoad(), samp_sendGeneric(), samp_specLoadSSAGeneric(), samp_tableHighlightRow(), samp_tableLoadFITS(), samp_tableLoadVOTable(), and samp_tableSelectRowList().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void samp_msgParam (Msg  msg,
Param  param 
)
+
+
+ +

+Add a parameter to the Msg. +

+SAMP_MSGPARAM -- Add a parameter to the Msg.

+

Parameters:
+ + + + +
msg handle to Msg object
keyw map keyword
param parameter map
+
+
Returns:
nothing
+ +

Referenced by samp_bibLoad(), samp_cmdExec(), samp_coordPointAtSky(), samp_envGet(), samp_envSet(), samp_imageLoadFITS(), samp_paramGet(), samp_paramSet(), samp_Ping(), samp_resourceLoad(), samp_sendGeneric(), samp_specLoadSSAGeneric(), samp_tableHighlightRow(), samp_tableLoadFITS(), samp_tableLoadVOTable(), and samp_tableSelectRowList().

+ +
+

+ +

+
+ + + + + + + + + +
Msg samp_newMsg (void   ) 
+
+ +

+

+
Generated on Wed Feb 27 21:10:16 2013 for SAMP Client Library by  + +doxygen 1.5.9
+ + diff --git a/vendor/voclient/libsamp/doc/html/sampParam_8c.html b/vendor/voclient/libsamp/doc/html/sampParam_8c.html new file mode 100644 index 00000000..279262d1 --- /dev/null +++ b/vendor/voclient/libsamp/doc/html/sampParam_8c.html @@ -0,0 +1,392 @@ + + +SAMP Client Library: sampParam.c File Reference + + + + + +
+

sampParam.c File Reference

(Internal) Interface to Param objects. +More... +

+#include <stdlib.h>
+#include <stdio.h>
+#include <unistd.h>
+#include <string.h>
+#include "samp.h"
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Functions

Param samp_newParam ()
 Create a new Param object.
void samp_freeParam (Param param)
 Free the given Msg object.
Param samp_paramInit (Msg msg)
 Get number of Params.
+void samp_addStringParam (Msg msg, char *keyw, String val)
void samp_addMapParam (Msg msg, char *keyw, Map val)
 Add a parameter to the Param.
void samp_addListParam (Msg msg, char *keyw, List val)
 Add a parameter to the Param.
void samp_addIntParam (Msg msg, char *keyw, int val)
 Add a <SAMP int>=""> parameter to the Param.
void samp_addFloatParam (Msg msg, char *keyw, float val)
 Add a <SAMP float>=""> parameter to the Param.
int samp_paramLen (Msg msg)
 Get number of Params.
+


Detailed Description

+(Internal) Interface to Param objects. +

+SAMPPARAM.C -- (Internal) Interface to Param objects.

+param = samp_newParam () samp_freeParam (Param param)

+param = samp_paramInit (Msg msg); samp_addStringParam (Msg msg, char *keyw, String val) samp_addListParam (Msg msg, char *keyw, List val) samp_addMapParam (Msg msg, char *keyw, Map val) N = samp_paramLen (Msg msg)

+

Author:
Mike Fitzpatrick
+
Date:
7/10/11
+

Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void samp_addFloatParam (Msg  msg,
char *  keyw,
float  val 
)
+
+
+ +

+Add a <SAMP float>=""> parameter to the Param. +

+SAMP_ADDFLOATPARAM -- Add a <SAMP float>=""> parameter to the Param.

+

Parameters:
+ + + + +
msg handle to Msg object
keyw map keyword
val floating point value
+
+
Returns:
nothing
+ +

References samp_paramInit().

+ +

Referenced by samp_coordPointAtSky(), and samp_sendGeneric().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void samp_addIntParam (Msg  msg,
char *  keyw,
int  val 
)
+
+
+ +

+Add a <SAMP int>=""> parameter to the Param. +

+SAMP_ADDINTPARAM -- Add a <SAMP int>=""> parameter to the Param.

+

Parameters:
+ + + + +
msg handle to Msg object
keyw map keyword
val integer value
+
+
Returns:
nothing
+ +

References samp_paramInit().

+ +

Referenced by samp_sendGeneric(), and samp_tableHighlightRow().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void samp_addListParam (Msg  msg,
char *  keyw,
List  val 
)
+
+
+ +

+Add a parameter to the Param. +

+SAMP_ADDLISTPARAM -- Add a List parameter to the Param.

+

Parameters:
+ + + + +
msg handle to Msg object
keyw map keyword
val value list
+
+
Returns:
nothing
+ +

References samp_paramInit().

+ +

Referenced by samp_tableSelectRowList().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void samp_addMapParam (Msg  msg,
char *  keyw,
Map  val 
)
+
+
+ +

+Add a parameter to the Param. +

+SAMP_ADDMAPPARAM -- Add a Map parameter to the Param.

+

Parameters:
+ + + + +
msg handle to Msg object
keyw map keyword
val value map
+
+
Returns:
nothing
+ +

References samp_paramInit().

+ +

Referenced by samp_resourceLoad(), and samp_specLoadSSAGeneric().

+ +
+

+ +

+
+ + + + + + + + + +
void samp_freeParam (Param  param  ) 
+
+
+ +

+Free the given Msg object. +

+SAMP_FREEPARAM -- Free the given Param object

+

Parameters:
+ + +
param Param object to free
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + +
Param samp_newParam (void   ) 
+
+ +

+ +

+
+ + + + + + + + + +
Param samp_paramInit (Msg  msg  ) 
+
+
+ +

+Get number of Params. +

+SAMP_PARAMINIT -- Get number of Params.

+

Parameters:
+ + +
msg handle to Msg object
+
+
Returns:
nothing
+ +

Referenced by samp_addFloatParam(), samp_addIntParam(), samp_addListParam(), and samp_addMapParam().

+ +
+

+ +

+
+ + + + + + + + + +
int samp_paramLen (Msg  msg  ) 
+
+
+ +

+Get number of Params. +

+SAMP_PARAMLEN -- Get number of Params.

+

Parameters:
+ + +
msg handle to Msg object
+
+
Returns:
nothing
+ +
+

+

+
Generated on Wed Feb 27 21:10:16 2013 for SAMP Client Library by  + +doxygen 1.5.9
+ + diff --git a/vendor/voclient/libsamp/doc/html/sampUtil_8c.html b/vendor/voclient/libsamp/doc/html/sampUtil_8c.html new file mode 100644 index 00000000..66601248 --- /dev/null +++ b/vendor/voclient/libsamp/doc/html/sampUtil_8c.html @@ -0,0 +1,278 @@ + + +SAMP Client Library: sampUtil.c File Reference + + + + + +
+

sampUtil.c File Reference

Utility methods to convert struct pointers to user handles. +More... +

+#include <stdlib.h>
+#include <stdio.h>
+#include <unistd.h>
+#include <string.h>
+#include <time.h>
+#include <ctype.h>
+#include "samp.h"
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Defines

+#define MAX_HANDLES   128

Functions

+handle_t samp_P2H (void *ptr)
+void * samp_H2P (handle_t handle)
+handle_t samp_newHandle (void *ptr)
+void samp_freeHandle (handle_t handle)
char * samp_app2id (handle_t handle, char *appName)
 Convert an application name to a public-ID.
char * samp_id2app (handle_t handle, char *pubId)
 Convert a public-ID to the application name.
int samp_serverPort ()
 Return a unique port number for the server.
void samp_printMetadata (handle_t handle, String name)
 Print the metadata for the application.
char * samp_getMetadata (handle_t handle, String name)
 Get the metadata item for the application.

Variables

+int numHandles = 0
+long sampHandles [MAX_HANDLES]
+


Detailed Description

+Utility methods to convert struct pointers to user handles. +

+SAMPUTIL.C -- Utility methods to convert struct pointers to user handles.

+

Author:
Mike Fitzpatrick
+
Date:
7/10/09
+

Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
char* samp_app2id (handle_t  handle,
char *  appName 
)
+
+
+ +

+Convert an application name to a public-ID. +

+SAMP_APP2ID -- Convert an application name to a public-ID.

+

Parameters:
+ + + +
handle samp struct handle
appName name of registered application
+
+
Returns:
public ID of application
+ +

References Samp::clients, Client::name, and Samp::nclients.

+ +

Referenced by samp_call(), samp_callAndWait(), samp_envGet(), samp_notify(), samp_paramGet(), samp_Ping(), and samp_sendMsg().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
char* samp_getMetadata (handle_t  handle,
String  name 
)
+
+
+ +

+Get the metadata item for the application. +

+SAMP_GETMETADATA -- Get the metadata item for the application.

+

Parameters:
+ + +
handle samp handle
+
+
Returns:
nothing
+ +

References appMD::aKey, appMD::aVal, Samp::description, appMD::docURL, appMD::iconURL, Samp::meta, and appMD::nkeys.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
char* samp_id2app (handle_t  handle,
char *  pubId 
)
+
+
+ +

+Convert a public-ID to the application name. +

+SAMP_ID2APP -- Convert a public-ID to the application name.

+

Parameters:
+ + + +
handle samp struct handle
pubId public ID of application
+
+
Returns:
name of registered application
+ +

References Samp::clients, Client::name, and Samp::nclients.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void samp_printMetadata (handle_t  handle,
String  name 
)
+
+
+ +

+Print the metadata for the application. +

+SAMP_PRINTMETADATA -- Print the metadata for the application.

+

Parameters:
+ + +
handle samp handle
+
+
Returns:
nothing
+ +

References appMD::aKey, appMD::aVal, Samp::description, appMD::docURL, appMD::iconURL, Samp::meta, and appMD::nkeys.

+ +
+

+ +

+
+ + + + + + + + + +
int samp_serverPort (void   ) 
+
+
+ +

+Return a unique port number for the server. +

+SAMP_SERVERPORT -- Return a unique port number for the server.

+

Returns:
port number
+ +

Referenced by samp_hubSetXmlrpcCallback(), and sampInit().

+ +
+

+

+
Generated on Wed Feb 27 21:10:16 2013 for SAMP Client Library by  + +doxygen 1.5.9
+ + diff --git a/vendor/voclient/libsamp/doc/html/samp_8c.html b/vendor/voclient/libsamp/doc/html/samp_8c.html new file mode 100644 index 00000000..b709967e --- /dev/null +++ b/vendor/voclient/libsamp/doc/html/samp_8c.html @@ -0,0 +1,1285 @@ + + +SAMP Client Library: samp.c File Reference + + + + + +
+

samp.c File Reference

Top-level interface to the SAMP library. +More... +

+#include <stdlib.h>
+#include <stdio.h>
+#include <unistd.h>
+#include <string.h>
+#include <time.h>
+#include <signal.h>
+#include <ctype.h>
+#include "samp.h"
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Defines

#define SZ_CLIENT_LIST   1024

Functions

handle_t sampInit (String appName, String description)
 Initialize the SAMP interface.
void sampClose (handle_t handle)
 Close the SAMP interface and free resources.
int sampDebug (handle_t handle, int value)
 Set interface debug level.
int sampVerbose (handle_t handle, int value)
 Set interface debug level.
int sampStartup (handle_t handle)
 Startup the SAMP interface to send/receive messages.
int sampShutdown (handle_t handle)
 Shut down the active SAMP interface.
int samp_hubActive (handle_t handle)
 Determine if the Hub is active (i.e. connected).
+int samp_setOpt (handle_t handle, char *opt, int value)
void samp_Metadata (handle_t handle, String field, String value)
 Set a metadata field value for the application.
void samp_Subscribe (handle_t handle, String mtype, void *userFunc)
 Subscribe to a given mtype.
void samp_Unsubscribe (handle_t handle, String mtype)
 Unsubscribe to a given mtype.
void samp_setCallMode (handle_t handle, int mode)
 Set the default calling mode (synch or asynch).
void samp_setSyncMode (handle_t handle)
 Set the calling mode to use synchronous messaging.
void samp_setASyncMode (handle_t handle)
 Set the calling mode to use asynchronous messaging.
void samp_setNotifyMode (handle_t handle)
 Set the calling mode to use notification messaging.
void samp_setMsgMode (handle_t handle, int mode)
 Set the message pattern to the specified mode.
void samp_setCallByRef (handle_t handle)
 Have interface call user handlers by reference.
void samp_setReplyCallback (handle_t handle, int *func)
 Set the Reply callback. samp_setReplyCallback (handle_t handle, int *func).
void samp_setResponseCallback (handle_t handle, int *func)
 Set the Response callback. samp_setResponseCallback (handle_t handle, int *func).
void samp_defaultReplyHandler (handle_t handle)
 The interface's default Reply handler.
+void samp_deaultfResponseHandler (handle_t handle)
int samp_replyStatus (handle_t handle)
 Reply with the status of the last message sent.
void samp_setTimeout (handle_t handle, int timeout)
 Set the message timeout value (in seconds).
+void samp_setAppName (handle_t handle, String name)
void samp_setAppVersion (handle_t handle, String version)
 Set the application name string.
int samp_mapClients (handle_t handle)
int samp_addClient (handle_t handle, String name, String id)
int samp_listClients (handle_t handle)
+char * samp_getClients (handle_t handle)
int samp_removeClient (handle_t handle, String id)
Map samp_getOKMap ()
Map samp_getNullMap ()

Variables

+SampsampP
handle_t sampH
Map nullMap
Map OK_Map
List nullList
Hubhub
int numHubs
long hubHandles [MAX_HUBS]
+


Detailed Description

+Top-level interface to the SAMP library. +

+SAMP.C -- Top-level interface to the SAMP library.

+samp = sampInit (appName, descr) sampClose (samp)

+stat = sampStartup (samp) sampShutdown (samp)

+samp_Metadata (samp, field, value) samp_Subscribe (samp, mtype, handler) samp_Unsubscribe (samp, mtype)

+samp_setReplyCallback (samp, func) samp_setResponseCallback (samp, func) stat = samp_replyStatus (samp)

+Utility Methods: samp_setSyncMode (samp) // Default samp_setASyncMode (samp) samp_setNotifyMode (samp) samp_setCallByRef (samp)

+samp_setTimeout (samp, timeout) samp_setAppNmae (samp, version) samp_setAppVersion (samp, name)

+samp_mapClients (handle_t handle) samp_addClient (handle_t handle, String name, String id) samp_removeClient (handle_t handle, String id)

+

Author:
Mike Fitzpatrick
+
Date:
7/10/09
+

Define Documentation

+ +
+
+ + + + +
#define SZ_CLIENT_LIST   1024
+
+
+ +

+SAMP_GETCLIENTS -- Get a list of clients as a character string as the PubID and Name separated by a space, one client per line. +

+

+


Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
int samp_addClient (handle_t  handle,
String  name,
String  id 
)
+
+
+ +

+SAMP_ADDCLIENT -- Add a newly registered client to the list of known apps so we can do the public-private name translation. +

References Samp::clients, Client::name, Samp::nclients, and SZ_NAME.

+ +

Referenced by samp_processHubEvent().

+ +
+

+ +

+
+ + + + + + + + + +
samp_defaultReplyHandler (handle_t  handle  ) 
+
+
+ +

+The interface's default Reply handler. +

+SAMP_DEFAULTREPLYHANDLER -- The interface's default Reply handler.

+

Parameters:
+ + +
handle samp handle
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + +
Map samp_getNullMap (void   ) 
+
+
+ +

+SAMP_GETNULLMAP -- Generate a 'Null' map we can return to the Hub. +

References samp_newMap().

+ +
+

+ +

+
+ + + + + + + + + +
Map samp_getOKMap (void   ) 
+
+
+ +

+SAMP_GETOKMAP -- Generate an 'OK' map we can return to the Hub. +

References nullMap, samp_newMap(), samp_setMapInMap(), and samp_setStringInMap().

+ +
+

+ +

+
+ + + + + + + + + +
samp_hubActive (handle_t  handle  ) 
+
+
+ +

+Determine if the Hub is active (i.e. connected). +

+SAMP_HUBACTIVE -- Determine if the Hub is active (i.e. connected).

+

Parameters:
+ + +
handle user handle to samp struct
+
+
Returns:
nothing
+ +

References Samp::active.

+ +
+

+ +

+
+ + + + + + + + + +
int samp_listClients (handle_t  handle  ) 
+
+
+ +

+SAMP_LISTCLIENTS -- List the available clients to stdout. +

References Samp::clients, Client::name, and Samp::nclients.

+ +
+

+ +

+
+ + + + + + + + + +
int samp_mapClients (handle_t  handle  ) 
+
+
+ +

+SAMP_MAPCLIENTS -- Map the public-ids of registered clients to the appName. +

References Samp::clients, Client::name, Samp::nclients, samp_freeList(), samp_GetMetadata(), samp_GetRegisteredClients(), samp_getStringFromList(), samp_listLen(), and SZ_NAME.

+ +

Referenced by sampStartup().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
samp_Metadata (handle_t  handle,
String  field,
String  value 
)
+
+
+ +

+Set a metadata field value for the application. +

+SAMP_METADATA -- Set a metadata field for the application. This will be sent to the Hub later in a declareMetadata() call.

+

Parameters:
+ + + + +
handle samp handle
field metadata field to set (name, author, etc)
samp value of field
+
+
Returns:
nothing
+ +

References appMD::aKey, Samp::appVer, Hub::appVer, appMD::aVal, appMD::desc, Hub::description, Samp::description, appMD::docURL, Samp::hub, appMD::iconURL, Hub::meta, Samp::meta, appMD::nkeys, and sampTrace().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
int samp_removeClient (handle_t  handle,
String  id 
)
+
+
+ +

+SAMP_REMOVECLIENT -- Remove a registered client from the list of known apps that do the public-private name translation. +

References Samp::clients, Client::name, Samp::nclients, and SZ_NAME.

+ +

Referenced by samp_processHubEvent().

+ +
+

+ +

+
+ + + + + + + + + +
status samp_replyStatus (handle_t  handle  ) 
+
+
+ +

+Reply with the status of the last message sent. +

+SAMP_REPLYSTATUS -- Reply with the status of the last message sent.

+May be used to 'poll' for a reponse from the caller in cases where use of a callback is a problem. Codes are: <0==ERR, 0==PENDING, 1==OK

+

Parameters:
+ + +
samp samp struct ptr
+
+
Returns:
message status
+ +

Referenced by samp_Register().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
samp_setAppVersion (handle_t  handle,
String  version 
)
+
+
+ +

+Set the application name string. +

+Set the application version string.

+SAMP_SETAPPNAME -- Set the application name string.

+

Parameters:
+ + + +
handle samp handle
name application name
+
+
Returns:
nothing
+SAMP_SETAPPVERSION -- Set the application version string.

+

Parameters:
+ + + +
handle samp handle
name application version
+
+
Returns:
nothing
+ +

References Hub::appVer, Samp::appVer, and Samp::hub.

+ +
+

+ +

+
+ + + + + + + + + +
samp_setASyncMode (handle_t  handle  ) 
+
+
+ +

+Set the calling mode to use asynchronous messaging. +

+SAMP_SETASYNCMODE -- Set the calling mode to use asynchronous messaging.

+

Parameters:
+ + +
handle samp handle
+
+
Returns:
nothing
+ +

References Samp::msgMode.

+ +
+

+ +

+
+ + + + + + + + + +
samp_setCallByRef (handle_t  handle  ) 
+
+
+ +

+Have interface call user handlers by reference. +

+SAMP_SETCALLBYREF -- Have interface call user handlers by reference.

+

Parameters:
+ + +
handle samp handle
+
+
Returns:
nothing
+ +

References Samp::handlerMode.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
samp_setCallMode (handle_t  handle,
int  mode 
)
+
+
+ +

+Set the default calling mode (synch or asynch). +

+SAMP_SETCALLMODE -- Set the default calling mode (synch or asynch)

+

Parameters:
+ + + +
handle samp handle
mode call mode (synch or asynch)
+
+
Returns:
nothing
+ +

References Samp::msgMode.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
samp_setMsgMode (handle_t  handle,
int  mode 
)
+
+
+ +

+Set the message pattern to the specified mode. +

+SAMP_SETMSGMODE -- Set the message pattern to the specified mode.

+

Parameters:
+ + + +
handle samp handle
mode message mode
+
+
Returns:
nothing
+ +

References Samp::msgMode.

+ +
+

+ +

+
+ + + + + + + + + +
samp_setNotifyMode (handle_t  handle  ) 
+
+
+ +

+Set the calling mode to use notification messaging. +

+SAMP_SETNOTIFYMODE -- Set the calling mode to use notification messaging.

+

Parameters:
+ + +
handle samp handle
+
+
Returns:
nothing
+ +

References Samp::msgMode.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void samp_setReplyCallback (handle_t  handle,
int *  func 
)
+
+
+ +

+Set the Reply callback. samp_setReplyCallback (handle_t handle, int *func). +

+SAMP_SETREPLYCALLBACK -- Set the Reply callback.

+

Parameters:
+ + + +
handle samp handle
func callback for Reply message
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void samp_setResponseCallback (handle_t  handle,
int *  func 
)
+
+
+ +

+Set the Response callback. samp_setResponseCallback (handle_t handle, int *func). +

+SAMP_SETRESPONSECALLBACK -- Set the Response callback.

+

Parameters:
+ + + +
handle samp handle
func callback for message response
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + +
samp_setSyncMode (handle_t  handle  ) 
+
+
+ +

+Set the calling mode to use synchronous messaging. +

+SAMP_SETSYNCMODE -- Set the calling mode to use synchronous messaging.

+

Parameters:
+ + +
handle samp handle
+
+
Returns:
nothing
+ +

References Samp::msgMode.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
samp_setTimeout (handle_t  handle,
int  timeout 
)
+
+
+ +

+Set the message timeout value (in seconds). +

+SAMP_SETTIMEOUT -- Set the message timeout value (in seconds).

+

Parameters:
+ + + +
handle samp handle
name application name
+
+
Returns:
nothing
+ +

References Samp::hub, and Hub::timeout.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
samp_Subscribe (handle_t  handle,
String  mtype,
void *  func 
)
+
+
+ +

+Subscribe to a given mtype. +

+SAMP_SUBSCRIBE -- Subscribe to a given mtype.

+

Parameters:
+ + + + +
handle user handle to samp struct
mtype mtype name
func callback function
+
+
Returns:
nothing
+ +

References Samp::nsubs, samp_getSampHandler(), samp_setSampHandler(), and samp_setUserHandler().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
samp_Unsubscribe (handle_t  handle,
String  mtype 
)
+
+
+ +

+Unsubscribe to a given mtype. +

+SAMP_UNSUBSCRIBE -- Unsubscribe to a given mtype.

+

Parameters:
+ + + +
handle user handle to samp struct
mtype mtype name
+
+
Returns:
nothing
+ +

References Samp::nsubs, samp_DeclareSubscriptions(), Subs::sampFunc, and Subs::userFunc.

+ +
+

+ +

+
+ + + + + + + + + +
sampClose (handle_t  handle  ) 
+
+
+ +

+Close the SAMP interface and free resources. +

+SAMP_CLOSE -- Close the SAMP interface.

+

Parameters:
+ + +
handle user handle to samp struct
+
+
Returns:
nothing
+ +

References Samp::hub, Samp::hubHandle, samp_freeHandle(), samp_hubClose(), sampTrace(), and Samp::verbose.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
sampDebug (handle_t  handle,
int  value 
)
+
+
+ +

+Set interface debug level. +

+SAMPDEBUG -- Set interface debug level.

+

Parameters:
+ + + +
handle user handle to samp struct
value debug value
+
+
Returns:
nothing
+ +

References Samp::debug, and Samp::verbose.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
handle sampInit (String  name,
String  descr 
)
+
+
+ +

+Initialize the SAMP interface. +

+SAMP_INIT -- Initialize the SAMP interface.

+

Parameters:
+ + + +
appName application name
description description of application
+
+
Returns:
samp handle
+ +

References nullList, nullMap, OK_Map, samp_hubOpen(), samp_newHandle(), samp_newList(), samp_newMap(), samp_serverPort(), samp_setMapInMap(), samp_setStringInMap(), sampH, and sampTrace().

+ +
+

+ +

+
+ + + + + + + + + +
sampShutdown (handle_t  handle  ) 
+
+
+ +

+Shut down the active SAMP interface. +

+SAMP_SHUTDOWN -- Shut down the active SAMP interface.

+

Parameters:
+ + +
handle user handle to samp struct
+
+
Returns:
nothing
+ +

References Samp::active, Samp::hubHandle, samp_hubClose(), Samp::svrThread, and Samp::verbose.

+ +

Referenced by samp_processHubEvent().

+ +
+

+ +

+
+ + + + + + + + + +
sampStartup (handle_t  handle  ) 
+
+
+ +

+Startup the SAMP interface to send/receive messages. +

+SAMP_STARTUP -- Startup the SAMP interface to send/receive messages.

+

Parameters:
+ + +
handle user handle to samp struct
+
+
Returns:
nothing
+ +

References Samp::active, Samp::clients, Samp::hub, Samp::hubHandle, Hub::id, Samp::mapClients, Client::name, Samp::nclients, samp_hubDeclareMetadata(), samp_hubDeclareSubscriptions(), samp_hubOpen(), samp_mapClients(), Samp::trace, and Samp::verbose.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
sampVerbose (handle_t  handle,
int  value 
)
+
+
+ +

+Set interface debug level. +

+SAMPVERBOSE -- Set interface verbose level.

+

Parameters:
+ + + +
handle user handle to samp struct
value verbose value
+
+
Returns:
nothing
+ +

References Samp::verbose.

+ +
+

+


Variable Documentation

+ +

+ +

+
+ + + + +
long hubHandles[MAX_HUBS]
+
+
+ +

+No. of available hubs +

+

+ +

+
+ + + + +
List nullList
+
+
+ +

+SAMP_OK Map struct +

Referenced by sampInit().

+ +
+

+ +

+
+ + + + +
Map nullMap
+
+ +

+ +

+
+ + + + +
int numHubs
+
+
+ +

+HUB connection +

+

+ +

+
+ + + + +
Map OK_Map
+
+ +

+ +

+
+ + + + +
handle_t sampH
+
+
+ +

+SAMP struct pointer +

Referenced by samp_processHubEvent(), samp_receiveCall(), and sampInit().

+ +
+

+

+
Generated on Wed Feb 27 21:10:15 2013 for SAMP Client Library by  + +doxygen 1.5.9
+ + diff --git a/vendor/voclient/libsamp/doc/html/samp_8h.html b/vendor/voclient/libsamp/doc/html/samp_8h.html new file mode 100644 index 00000000..6b45624a --- /dev/null +++ b/vendor/voclient/libsamp/doc/html/samp_8h.html @@ -0,0 +1,7080 @@ + + +SAMP Client Library: samp.h File Reference + + + + + +
+

samp.h File Reference

SAMP interface include file. +More... +

+#include <xmlrpc-c/base.h>
+#include <xmlrpc-c/client.h>
+#include <xmlrpc-c/server.h>
+#include <xmlrpc-c/server_abyss.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <unistd.h>
+#include "xrpc.h"
+ +

+Go to the source code of this file. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Data Structures

struct  appMD
struct  Subs
struct  Client
struct  Hub
struct  Samp

Defines

+#define SZ_NAME   256
+#define SZ_LINE   256
+#define SZ_SECRET   64
+#define SZ_DESC   8192
+#define SZ_URL   1024
+#define SZ_CMD   1024
+#define SZ_SBUF   65536
+#define SZ_RESSTR   1024
+#define DEF_PORT   9876
+#define DEF_TIMEOUT   "15"
+#define MAX_SAMPS   16
+#define MAX_HUBS   16
+#define MAX_MDATTRS   32
+#define MAX_SUBS   256
+#define MAX_CLIENTS   32
+#define MAX_ROWS   256
+#define SAMP_ERR   -1
+#define SAMP_PENDING   0
+#define SAMP_OK   1
+#define SAMP_CBR   0
+#define SAMP_CBV   1
+#define SAMP_SYNCH   0
+#define SAMP_ASYNCH   1
+#define SAMP_NOTIFY   2
+#define SAMP_INT   TY_INT
+#define SAMP_DOUBLE   TY_DOUBLE
+#define SAMP_BOOL   TY_BOOL
+#define SAMP_STRING   TY_STRING
+#define SAMP_DATETIME   TY_DATETIME
+#define SAMP_SAMPRUCT   TY_STRUCT
+#define SAMP_ARRAY   TY_ARRAY
+#define SAMP_TRACE   0
#define HUB_SHUTDOWN   0
+#define HUB_REGISTER   1
+#define HUB_UNREGISTER   2
+#define HUB_SUBSCRIPTIONS   3
+#define HUB_METADATA   4
+#define HUB_DISCONNECT   5
+#define LEN_DESC   32768
+#define min(a, b)   (a<b?a:b)
+#define max(a, b)   (a>b?a:b)
+#define MSG_SYNC   0
+#define MSG_ASYNC   1
+#define MSG_NOTIFY   2
+#define DEF_CALLMODE   MSG_ASYNC

Typedefs

+typedef long handle_t
typedef int Map
typedef int List
typedef int Msg
typedef int Param
typedef char * String
+typedef struct appMDappMDP
+typedef struct SubsSubsP
+typedef struct ClientClientP
+typedef struct HubHubP
+typedef struct SampSampP

Functions

handle_t sampInit (String appName, String description)
 Initialize the SAMP interface.
void samp_Metadata (handle_t handle, String field, String value)
 Set a metadata field value for the application.
void samp_Subscribe (handle_t handle, String mtype, void *func)
 Subscribe to a given mtype.
void samp_Unsubscribe (handle_t handle, String mtype)
 Unsubscribe to a given mtype.
int sampStartup (handle_t handle)
 Startup the SAMP interface to send/receive messages.
int sampShutdown (handle_t handle)
 Shut down the active SAMP interface.
int sampDebug (handle_t handle, int value)
 Set interface debug level.
int sampVerbose (handle_t handle, int value)
 Set interface debug level.
void sampClose (handle_t handle)
 Close the SAMP interface and free resources.
int samp_hubActive (handle_t handle)
 Determine if the Hub is active (i.e. connected).
+int samp_setOpt (handle_t handle, char *opt, int value)
void samp_setSyncMode (handle_t handle)
 Set the calling mode to use synchronous messaging.
void samp_setASyncMode (handle_t handle)
 Set the calling mode to use asynchronous messaging.
void samp_setNotifyMode (handle_t handle)
 Set the calling mode to use notification messaging.
void samp_setMsgMode (handle_t handle, int mode)
 Set the message pattern to the specified mode.
void samp_setCallByRef (handle_t handle)
 Have interface call user handlers by reference.
void samp_setCallMode (handle_t handle, int mode)
 Set the default calling mode (synch or asynch).
void samp_setReplyCallback (handle_t handle, int *func)
 Set the Reply callback. samp_setReplyCallback (handle_t handle, int *func).
void samp_setResponseCallback (handle_t handle, int *func)
 Set the Response callback. samp_setResponseCallback (handle_t handle, int *func).
void samp_setTimeout (handle_t handle, int timeout)
 Set the message timeout value (in seconds).
+void samp_setAppName (handle_t handle, String name)
void samp_setAppVersion (handle_t handle, String version)
 Set the application name string.
void samp_defaultReplyHandler (handle_t handle)
 The interface's default Reply handler.
+void samp_deaultfResponseHandler (handle_t handle)
int samp_replyStatus (handle_t handle)
 Reply with the status of the last message sent.
int samp_mapClients (handle_t handle)
int samp_listClients (handle_t handle)
+char * samp_getClients (handle_t handle)
int samp_addClient (handle_t handle, String name, String id)
int samp_removeClient (handle_t handle, String id)
Map samp_getOKMap (void)
Map samp_getNullMap (void)
int samp_Register (handle_t handle)
 Register with the Hub using the currently stored metadata.
int samp_UnRegister (handle_t handle)
 Un-Register from the hub.
int samp_DeclareMetadata (handle_t handle)
 (Re)Declare all of our metadata.
int samp_Ping (handle_t handle, String appName)
 Ping the hub/app to see if it is alive (returns >0).
Map samp_GetMetadata (handle_t handle, String pubId)
 Get the metadata for a specified app.
int samp_DeclareSubscriptions (handle_t handle)
 Declare the messages we're interested in.
+Map samp_GetSubscriptions (handle_t handle, String pubId)
List samp_GetRegisteredClients (handle_t handle)
 Get public-ids of the registered clients.
List samp_GetSubscribedClients (handle_t handle, String mtype)
 Get clients matching the mtype subscription.
int samp_tableLoadVOTable (handle_t handle, String recip, String url, String tableId, String name)
 Tell an app to load a VOTable.
int samp_tableLoadFITS (handle_t handle, String recip, String url, String tableId, String name)
 Tell an app to load a FITS table.
int samp_imageLoadFITS (handle_t handle, String recip, String url, String imageId, String name)
 Tell an app to load a FITS image.
int samp_tableHighlightRow (handle_t handle, String recip, String tableId, String url, int row)
 Tell an app to highlight a table row.
int samp_tableSelectRowList (handle_t handle, String recip, String tableId, String url, int rows[], int nrows)
 Tell an app to select a list of table rows.
int samp_coordPointAtSky (handle_t handle, String recip, float ra, float dec)
 Tell an app to point at an RA/Dec coordinate.
int samp_specLoadSSAGeneric (handle_t handle, String recip, String url, Map meta, String spectrumId, String name)
 Load a generic spectrum from an SSA service.
int samp_cmdExec (handle_t handle, String recip, String cmd)
 Execute a command in a remote application.
char * samp_envGet (handle_t handle, String recip, String name)
 Get an environment variable in a remote application.
int samp_envSet (handle_t handle, String recip, String name, String value)
 Set an environment variable in a remote application.
char * samp_paramGet (handle_t handle, String recip, String name)
 Get a parameter variable in a remote application.
int samp_paramSet (handle_t handle, String recip, String name, String value)
 Set an parameter variable in a remote application.
int samp_bibLoad (handle_t handle, String recip, String bibcode)
 Exchange a bibcode.
int samp_resourceLoad (handle_t handle, String recip, String type, String name, Map resMap)
 Exchange a resource list.
int samp_sendGeneric (handle_t handle, String recip, String mtype, String args[])
 Send a geenric message.
int samp_sendMsg (handle_t handle, String recip, Map msg)
 Send the specified message.
void samp_notify (handle_t handle, String recipId, Map msg)
 Make a notify() call to the Hub.
List samp_notifyAll (handle_t handle, Map msg)
 Make a notifyAll() call to the Hub.
String samp_call (handle_t handle, String recipId, String tag, Map msg)
 Make a call() call to the Hub.
int samp_callAll (handle_t handle, String msg_tag, Map msg)
 Make a callAll() call to the Hub.
int samp_callAndWait (handle_t handle, String recipId, String msg_tag, Map msg)
 Make a callAndWait() call to the Hub.
int samp_Reply (handle_t handle, String msg_id, Map resp)
 Reply to a message.
String samp_clientName (handle_t handle, String pubId)
 Get the Client name from a pubic-id.
int samp_setErr (handle_t handle, Map resp)
 Set the error response string.
String samp_getErr (handle_t handle)
 Get the error response string.
int samp_receiveCall (void *data)
 test.echo method
int samp_receiveNotification (void *data)
 receiveNotification () client method.
int samp_receiveResponse (void *data)
 receiveResponse () client method.
void samp_setHandlerReply (Map resp)
 Set the Samp Handler reply map.
Map samp_getHandlerReply (void)
 Get the Samp Handler reply map.
void samp_setUserHandler (handle_t handle, String mtype, void *func)
 Set the user-interface handler for the mtype.
void samp_setSampHandler (handle_t handle, String mtype, void *func)
 Set the SAMP interface handler for the mtype.
void * samp_getUserHandler (String mtype)
 Get the User handler for the named mtype.
void * samp_getSampHandler (String mtype)
 Get the Samphandler for the named mtype.
void samp_execUserHandler (String mtype, String sender, String msg_id, Map params)
 Execute the user-defined handler for the mtype.
+int samp_genericMsgHandler (String sender, String mtype, String msg_id, Map msg_map)
int samp_PingHandler (String sender, String mtype, String msg_id, Map msg_map)
 Is app alive and responding to messages?
int samp_StatusHandler (String sender, String mtype, String msg_id, Map msg_map)
 Return status of the task.
int samp_imLoadHandler (String sender, String mtype, String msg_id, Map msg_map)
 Handle an image.load.fits message.
int samp_tbLoadHandler (String sender, String mtype, String msg_id, Map msg_map)
 Handle a generic table.load.* message.
int samp_tbLoadFITSHandler (String sender, String mtype, String msg_id, Map msg_map)
 Handle a generic table.load.fits message.
int samp_tbLoadVOTHandler (String sender, String mtype, String msg_id, Map msg_map)
 Handle a generic table.load.votable message.
int samp_tbHighlightHandler (String sender, String mtype, String msg_id, Map msg_map)
 Handle a table.highlight.row message.
int samp_tbSelectHandler (String sender, String mtype, String msg_id, Map msg_map)
 Handle a table.select.rowList message.
int samp_pointAtHandler (String sender, String mtype, String msg_id, Map msg_map)
 Handle a coord.pointAt.sky message.
int samp_specLoadHandler (String sender, String mtype, String msg_id, Map msg_map)
 Handle a spectrum.load.* message.
int samp_specSSAHandler (String sender, String mtype, String msg_id, Map msg_map)
 Handle a spectrum.load.ssa-generic message.
int samp_cmdExecHandler (String sender, String mtype, String msg_id, Map msg_map)
 Handle a client.cmd.exec message.
int samp_envGetHandler (String sender, String mtype, String msg_id, Map msg_map)
 Handle a client.env.set message.
int samp_envSetHandler (String sender, String mtype, String msg_id, Map msg_map)
 Handle a client.env.set message.
int samp_paramGetHandler (String sender, String mtype, String msg_id, Map msg_map)
 Handle a client.param.set message.
int samp_paramSetHandler (String sender, String mtype, String msg_id, Map msg_map)
 Handle a client.param.set message.
int samp_bibcodeHandler (String sender, String mtype, String msg_id, Map msg_map)
 Handle a bibcode.load message.
int samp_resLoadHandler (String sender, String mtype, String msg_id, Map msg_map)
 handle a voresource.loadlist message
int samp_resConeHandler (String sender, String mtype, String msg_id, Map msg_map)
 handle a voresource.loadlist message
int samp_resSiapHandler (String sender, String mtype, String msg_id, Map msg_map)
 handle a voresource.loadlist message
int samp_resSsapHandler (String sender, String mtype, String msg_id, Map msg_map)
 handle a voresource.loadlist message
int samp_resTapHandler (String sender, String mtype, String msg_id, Map msg_map)
 handle a voresource.loadlist message
int samp_resVOSpaceHandler (String sender, String mtype, String msg_id, Map msg_map)
 handle a voresource.loadlist message
+void samp_printMessage (String mtype, String sender, String msg_id, Map params)
void samp_printMap (String name, Map map)
int samp_nullResponse (void *data)
+int samp_testEcho (void *data)
handle_t samp_hubOpen (Samp *samp)
 Discover and open a connection to the SAMP Hub.
int samp_hubClose (handle_t handle)
 Close a connection to the Hub.
List samp_getAvailableHubs (handle_t handle)
 Get a list of available Hubs.
+char * samp_getActiveHubName (handle_t handle)
+int samp_getActiveHub (handle_t handle)
int samp_hubRunning (void)
+int samp_hubInit (handle_t samp, char *appName, char *descr)
int samp_processHubEvent (String mtype, Map params)
 Determine the type of Hub event mtype.
int samp_hubEvent (String mtype)
 Determine the type of Hub event mtype.
int samp_hubRegister (Hub *hub)
 Send a Register message to the Hub.
int samp_hubUnRegister (Hub *hub)
 Send a UnRegister message to the Hub.
int samp_hubSendShutdown (Hub *hub)
 Send a samp.app.event.shutdown message to the Hub.
int samp_hubSetXmlrpcCallback (Hub *hub)
 Set the client callback and send to Hub.
int samp_hubPing (Hub *hub)
 Ping the Hub to see if it is alive.
int samp_hubDeclareMetadata (Hub *hub)
 Declare "standard" metadata to the Hub.
int samp_hubDeclareSubscriptions (Hub *hub)
 Declare mtype subscriptions to the Hub.
handle_t samp_newList ()
 Create a new List object.
void samp_freeList (List list)
 Free the given List object.
int samp_listLen (List list)
 Get number of elements in a List.
void samp_setStringInList (List list, char *value)
 Set a string in a List (append).
void samp_setMapInList (List list, Map map)
 Set a Map in a List (append).
void samp_setListInList (List list1, List list2)
 Set a List in another List (append).
void samp_setIntInList (List list, int value)
 Set an Int in a List (append).
void samp_setFloatInList (List list, float value)
 Set a Float in a List (append).
char * samp_getStringFromList (List list, int index)
 Get a string from the List.
Map samp_getMapFromList (List list, int index)
 Get a Map from the List.
List samp_getListFromList (List list, int index)
 Get a List from the List.
+int samp_getIntFromList (List list, int index)
float samp_getFloatFromList (List list, int index)
 Get a Float from the List.
handle_t samp_newMap (void)
 Create a new Map object.
void samp_freeMap (Map map)
 Free the given Map object.
+int samp_getMapSize (Map map)
+char * samp_getMapKey (Map map, int index)
+char * samp_getMapVal (Map map, int index)
void samp_setStringInMap (Map map, char *key, char *value)
 Set a string in a Map (append).
void samp_setMapInMap (Map map1, char *key, Map map2)
 Set a Map in a Map (append).
void samp_setListInMap (Map map, char *key, List list)
 Set a List in a Map (append).
void samp_setIntInMap (Map map, char *key, int value)
 Set a Int in a Map (append).
void samp_setFloatInMap (Map map, char *key, float value)
 Set a string in a Map (append).
char * samp_getStringFromMap (Map map, char *key)
 Get a string from the Map.
Map samp_getMapFromMap (Map map, char *key)
 Get a Map from the Map.
List samp_getListFromMap (Map map, char *key)
 Get a LIST from the Map.
int samp_getIntFromMap (Map map, char *key)
 Get a integer from the Map.
float samp_getFloatFromMap (Map map, char *key)
 Get a float from the Map.
Msg samp_newMsg (void)
 Create a new Msg object.
void samp_freeMsg (Msg msg)
 Free the given Msg object.
+void samp_msgMType (Msg msg, String mtype)
void samp_msgParam (Msg msg, Param param)
 Add a parameter to the Msg.
+char * samp_msgTag (void)
Param samp_newParam (void)
 Create a new Param object.
void samp_freeParam (Param param)
 Free the given Msg object.
Param samp_paramInit (Msg msg)
 Get number of Params.
+void samp_addStringParam (Msg msg, char *keyw, String val)
void samp_addMapParam (Msg msg, char *keyw, Map val)
 Add a parameter to the Param.
void samp_addListParam (Msg msg, char *keyw, List val)
 Add a parameter to the Param.
void samp_addIntParam (Msg msg, char *keyw, int val)
 Add a <SAMP int>=""> parameter to the Param.
void samp_addFloatParam (Msg msg, char *keyw, float val)
 Add a <SAMP float>=""> parameter to the Param.
int samp_paramLen (Msg msg)
 Get number of Params.
void sampLog (handle_t handle, char *format,...)
 SAMP message logger.
void sampTrace (handle_t handle, char *format,...)
 SAMP tracer.
handle_t samp_newHandle (void *ptr)
 Get an unused object handle.
void samp_freeHandle (handle_t handle)
 Free the handle for later re-use.
handle_t samp_P2H (void *ptr)
 Convert a pointer to a handle.
+void * samp_H2P (handle_t handle)
char * samp_app2id (handle_t handle, char *appName)
 Convert an application name to a public-ID.
char * samp_id2app (handle_t handle, char *pubId)
 Convert a public-ID to the application name.
int samp_serverPort (void)
 Return a unique port number for the server.
void samp_printMetadata (handle_t handle, String name)
 Print the metadata for the application.
char * samp_getMetadata (handle_t handle, String name)
 Get the metadata item for the application.
+


Detailed Description

+SAMP interface include file. +

+SAMP.H -- SAMP interface include file.

+

Author:
Mike FItzpatrick
+
Date:
7/10/09
+

Define Documentation

+ +
+
+ + + + +
#define HUB_SHUTDOWN   0
+
+
+ +

+Special Hub events +

Referenced by samp_hubEvent(), and samp_processHubEvent().

+ +
+

+


Typedef Documentation

+ +
+
+ + + + +
typedef int List
+
+
+ +

+SAMP Map datatype +

+

+ +

+
+ + + + +
typedef int Map
+
+
+ +

+generic object handle +

+

+ +

+
+ + + + +
typedef int Msg
+
+
+ +

+SAMP List datatype +

+

+ +

+
+ + + + +
typedef int Param
+
+
+ +

+SAMP Msg datatype +

+

+ +

+
+ + + + +
typedef char* String
+
+
+ +

+SAMP Param datatype +

+

+


Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
int samp_addClient (handle_t  handle,
String  name,
String  id 
)
+
+
+ +

+SAMP_ADDCLIENT -- Add a newly registered client to the list of known apps so we can do the public-private name translation. +

+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void samp_addFloatParam (Msg  msg,
char *  keyw,
float  val 
)
+
+
+ +

+Add a <SAMP float>=""> parameter to the Param. +

+SAMP_ADDFLOATPARAM -- Add a <SAMP float>=""> parameter to the Param.

+

Parameters:
+ + + + +
msg handle to Msg object
keyw map keyword
val floating point value
+
+
Returns:
nothing
+ +

Referenced by samp_coordPointAtSky(), and samp_sendGeneric().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void samp_addIntParam (Msg  msg,
char *  keyw,
int  val 
)
+
+
+ +

+Add a <SAMP int>=""> parameter to the Param. +

+SAMP_ADDINTPARAM -- Add a <SAMP int>=""> parameter to the Param.

+

Parameters:
+ + + + +
msg handle to Msg object
keyw map keyword
val integer value
+
+
Returns:
nothing
+ +

Referenced by samp_sendGeneric(), and samp_tableHighlightRow().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void samp_addListParam (Msg  msg,
char *  keyw,
List  val 
)
+
+
+ +

+Add a parameter to the Param. +

+SAMP_ADDLISTPARAM -- Add a List parameter to the Param.

+

Parameters:
+ + + + +
msg handle to Msg object
keyw map keyword
val value list
+
+
Returns:
nothing
+ +

Referenced by samp_tableSelectRowList().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void samp_addMapParam (Msg  msg,
char *  keyw,
Map  val 
)
+
+
+ +

+Add a parameter to the Param. +

+SAMP_ADDMAPPARAM -- Add a Map parameter to the Param.

+

Parameters:
+ + + + +
msg handle to Msg object
keyw map keyword
val value map
+
+
Returns:
nothing
+ +

Referenced by samp_resourceLoad(), and samp_specLoadSSAGeneric().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
pubId samp_app2id (handle_t  handle,
char *  appName 
)
+
+
+ +

+Convert an application name to a public-ID. +

+SAMP_APP2ID -- Convert an application name to a public-ID.

+

Parameters:
+ + + +
handle samp struct handle
appName name of registered application
+
+
Returns:
public ID of application
+ +

Referenced by samp_call(), samp_callAndWait(), samp_envGet(), samp_notify(), samp_paramGet(), samp_Ping(), and samp_sendMsg().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_bibcodeHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Handle a bibcode.load message. +

+SAMP_BIBCODEHANDLER -- Handle a bibcode.load message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
val samp_bibLoad (handle_t  handle,
String  recip,
String  bibcode 
)
+
+
+ +

+Exchange a bibcode. +

+SAMP_BIBLOAD -- Exchange a bibcode.

+

Parameters:
+ + + + +
handle samp struct handle
recip name of recipient (or 'all')
bibcode Bibcode string
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
String msg id samp_call (handle_t  handle,
String  recipId,
String  msg_tag,
Map  msg 
)
+
+
+ +

+Make a call() call to the Hub. +

+SAMP_CALL -- Make a call() call to the Hub

+

Parameters:
+ + + + + +
handle samp struct handle
recipId recipient ID
msg_tag message tag
msg message map
+
+
Returns:
message ID
+ +

Referenced by samp_sendMsg().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
Map calls samp_callAll (handle_t  handle,
String  msg_tag,
Map  msg 
)
+
+
+ +

+Make a callAll() call to the Hub. +

+SAMP_CALLALL -- Make a callAll() call to the Hub

+

Parameters:
+ + + + +
handle samp struct handle
msg_tag message tag
msg message map
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

Referenced by samp_Ping(), and samp_sendMsg().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
status samp_callAndWait (handle_t  handle,
String  recipId,
String  msg_tag,
Map  msg 
)
+
+
+ +

+Make a callAndWait() call to the Hub. +

+SAMP_CALLANDWAIT -- Make a callAndWait() call to the Hub

+

Parameters:
+ + + + + +
handle samp struct handle
recipId recipient ID
msg_tag message tag
msg message map
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

Referenced by samp_Ping(), and samp_sendMsg().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
name samp_clientName (handle_t  handle,
String  pubId 
)
+
+
+ +

+Get the Client name from a pubic-id. +

+SAMP_CLIENTNAME -- Get the Client name from a pubic-id.

+

Parameters:
+ + + +
handle samp struct handle
pubId public ID
+
+
Returns:
declared application name
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
stat samp_cmdExec (handle_t  handle,
String  recip,
String  cmd 
)
+
+
+ +

+Execute a command in a remote application. +

+SAMP_CMDEXEC -- Execute a command in a remote application.

+

Parameters:
+ + + + +
handle samp struct handle
recip name of recipient (or 'all')
cmd Command string
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_cmdExecHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Handle a client.cmd.exec message. +

+SAMP_CMDEXECHANDLER -- Handle a client.cmd.exec message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
stat samp_coordPointAtSky (handle_t  handle,
String  recip,
float  ra,
float  dec 
)
+
+
+ +

+Tell an app to point at an RA/Dec coordinate. +

+SAMP_COORDPOINTATSKY -- Tell an app to point at an RA/Dec coordinate.

+

Parameters:
+ + + + + +
handle samp struct handle
recip name of recipient (or 'all')
ra RA of coord in degrees
dec Dec of coord in degrees
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +
+

+ +

+
+ + + + + + + + + +
stat samp_DeclareMetadata (handle_t  handle  ) 
+
+
+ +

+(Re)Declare all of our metadata. +

+SAMP_DECLAREMETATA -- (Re)Declare all of our metadata.

+

Parameters:
+ + +
handle samp struct handle
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +
+

+ +

+
+ + + + + + + + + +
stat samp_DeclareSubscriptions (handle_t  handle  ) 
+
+
+ +

+Declare the messages we're interested in. +

+SAMP_DECLARESUBSCRIPIONS -- Declare the messages we're interested in.

+

Parameters:
+ + +
handle samp struct handle
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

Referenced by samp_Unsubscribe().

+ +
+

+ +

+
+ + + + + + + + + +
void samp_defaultReplyHandler (handle_t  handle  ) 
+
+
+ +

+The interface's default Reply handler. +

+SAMP_DEFAULTREPLYHANDLER -- The interface's default Reply handler.

+

Parameters:
+ + +
handle samp handle
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
val samp_envGet (handle_t  handle,
String  recip,
String  name 
)
+
+
+ +

+Get an environment variable in a remote application. +

+SAMP_ENVGET -- Get an environment variable in a remote application.

+

Parameters:
+ + + + +
handle samp struct handle
recip name of recipient (or 'all')
name Name of variable in receiver's environment
+
+
Returns:
NULL, Value of variable, or list of values
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_envGetHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Handle a client.env.set message. +

+SAMP_ENVGETHANDLER -- Handle a client.env.set message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
stat samp_envSet (handle_t  handle,
String  recip,
String  name,
String  value 
)
+
+
+ +

+Set an environment variable in a remote application. +

+SAMP_ENVSET -- Set an environment variable in a remote application.

+

Parameters:
+ + + + + +
handle samp struct handle
recip name of recipient (or 'all')
name Name of variable in receiver's environment
value Value of variable or NULL
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_envSetHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Handle a client.env.set message. +

+SAMP_ENVSETHANDLER -- Handle a client.env.set message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
samp_execUserHandler (String  sender,
String  mtype,
String  msg_id,
Map  params 
)
+
+
+ +

+Execute the user-defined handler for the mtype. +

+SAMP_EXECUSERHANDLER -- Execute the user-defined handler for the mtype.

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message-id string
params Mtype parameter Map
+
+
Returns:
nothing
+ +

Referenced by samp_receiveCall(), samp_receiveNotification(), and samp_receiveResponse().

+ +
+

+ +

+
+ + + + + + + + + +
void samp_freeHandle (handle_t  handle  ) 
+
+
+ +

+Free the handle for later re-use. +

+SAMP_FREEHANDLE -- Free the handle for later re-use.

+

Parameters:
+ + +
handle object handle
+
+
Returns:
nothing
+ +

Referenced by samp_hubClose(), and sampClose().

+ +
+

+ +

+
+ + + + + + + + + +
void samp_freeList (List  list  ) 
+
+
+ +

+Free the given List object. +

+SAMP_FREELIST -- Free the given List object

+

Parameters:
+ + +
list List object handle
+
+
Returns:
nothing
+ +

Referenced by samp_mapClients(), and samp_tableSelectRowList().

+ +
+

+ +

+
+ + + + + + + + + +
void samp_freeMap (Map  map  ) 
+
+
+ +

+Free the given Map object. +

+SAMP_FREEMAP -- Free the given Map object

+

Parameters:
+ + +
map Map object to free
+
+
Returns:
nothing
+ +

Referenced by samp_envGetHandler(), samp_hubDeclareSubscriptions(), samp_paramGetHandler(), and samp_Ping().

+ +
+

+ +

+
+ + + + + + + + + +
void samp_freeMsg (Msg  msg  ) 
+
+
+ +

+Free the given Msg object. +

+SAMP_FREEMSG -- Free the given Msg object

+

Parameters:
+ + +
msg Msg object to free
+
+
Returns:
nothing
+ +

Referenced by samp_bibLoad(), samp_cmdExec(), samp_coordPointAtSky(), samp_envGet(), samp_envSet(), samp_imageLoadFITS(), samp_paramGet(), samp_paramSet(), samp_Ping(), samp_resourceLoad(), samp_sendGeneric(), samp_specLoadSSAGeneric(), samp_tableHighlightRow(), samp_tableLoadFITS(), samp_tableLoadVOTable(), and samp_tableSelectRowList().

+ +
+

+ +

+
+ + + + + + + + + +
void samp_freeParam (Param  param  ) 
+
+
+ +

+Free the given Msg object. +

+SAMP_FREEPARAM -- Free the given Param object

+

Parameters:
+ + +
param Param object to free
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + +
status samp_getAvailableHubs (handle_t  handle  ) 
+
+
+ +

+Get a list of available Hubs. +

+SAMP_GETAVAILABLEHUBS -- Get a list of available Hubs

+

Parameters:
+ + +
handle hub handle
+
+
Returns:
List of hub handles
+ +
+

+ +

+
+ + + + + + + + + +
samp_getErr (handle_t  handle  ) 
+
+
+ +

+Get the error response string. +

+SAMP_GETERR -- Get the error response string.

+

Parameters:
+ + +
handle samp struct handle
+
+
Returns:
Error text string
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
ival samp_getFloatFromList (List  list,
int  index 
)
+
+
+ +

+Get a Float from the List. +

+SAMP_GETFLOATFROMLIST -- Get a Float from the List

+

Parameters:
+ + + +
list List object handle
index List index containing the desired value
+
+
Returns:
int value
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
rval samp_getFloatFromMap (Map  map,
char *  key 
)
+
+
+ +

+Get a float from the Map. +

+SAMP_GETFLOATFROMMAP -- Get a float from the Map

+

Parameters:
+ + + +
map handle to Map object
key Map key
+
+
Returns:
floating point value
+ +

Referenced by samp_execUserHandler(), and samp_pointAtHandler().

+ +
+

+ +

+
+ + + + + + + + + +
int samp_getHandlerReply (void   ) 
+
+
+ +

+Get the Samp Handler reply map. +

+SAMP_GETHANDLERREPLY -- Get the Samp Handler reply map.

+

Returns:
Map handle for reply map
+ +

References nullMap, and OK_Map.

+ +

Referenced by samp_receiveCall(), and samp_receiveNotification().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
ival samp_getIntFromMap (Map  map,
char *  key 
)
+
+
+ +

+Get a integer from the Map. +

+SAMP_GETINTFROMMAP -- Get a integer from the Map

+

Parameters:
+ + + +
map handle to Map object
key Map key
+
+
Returns:
integer value
+ +

Referenced by samp_execUserHandler(), and samp_tbHighlightHandler().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
ival samp_getListFromList (List  list,
int  index 
)
+
+
+ +

+Get a List from the List. +

+Get an Int from the List.

+SAMP_GETLISTFROMLIST -- Get a List from the List

+

Parameters:
+ + + +
list List object handle
index List index containing the List
+
+
Returns:
List handle
+SAMP_GETINTFROMLIST -- Get an Int from the List

+

Parameters:
+ + + +
list List object handle
index List index containing the desired value
+
+
Returns:
int value
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
List samp_getListFromMap (Map  map,
char *  key 
)
+
+
+ +

+Get a LIST from the Map. +

+SAMP_GETLISTFROMMAP -- Get a LIST from the Map

+

Parameters:
+ + + +
map handle to Map object
key Map key
+
+
Returns:
handle to List value
+ +

Referenced by samp_execUserHandler(), and samp_tbSelectHandler().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
Map samp_getMapFromList (List  list,
int  index 
)
+
+
+ +

+Get a Map from the List. +

+SAMP_GETMAPFROMLIST -- Get a Map from the List

+

Parameters:
+ + + +
list List object handle
index List index containing the Map
+
+
Returns:
Map handle
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
Map samp_getMapFromMap (Map  map,
char *  key 
)
+
+
+ +

+Get a Map from the Map. +

+SAMP_GETMAPFROMMAP -- Get a Map from the Map

+

Parameters:
+ + + +
map handle to Map object
key Map key
+
+
Returns:
handle to Map value
+ +

Referenced by samp_execUserHandler(), samp_resConeHandler(), samp_resLoadHandler(), samp_resSiapHandler(), samp_resSsapHandler(), samp_resTapHandler(), samp_resVOSpaceHandler(), samp_specLoadHandler(), and samp_specSSAHandler().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
str samp_getMetadata (handle_t  handle,
String  param 
)
+
+
+ +

+Get the metadata item for the application. +

+SAMP_GETMETADATA -- Get the metadata item for the application.

+

Parameters:
+ + +
handle samp handle
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
map samp_GetMetadata (handle_t  handle,
String  pubId 
)
+
+
+ +

+Get the metadata for a specified app. +

+SAMP_GETMETADATA -- Get the metadata for a specified app.

+

Parameters:
+ + + +
handle samp struct handle
pubId App public-id
+
+
Returns:
Map to message response
+ +

Referenced by samp_mapClients().

+ +
+

+ +

+
+ + + + + + + + +
Map samp_getNullMap (  ) 
+
+
+ +

+SAMP_GETNULLMAP -- Generate a 'Null' map we can return to the Hub. +

+

+ +

+
+ + + + + + + + +
Map samp_getOKMap (  ) 
+
+
+ +

+SAMP_GETOKMAP -- Generate an 'OK' map we can return to the Hub. +

+

+ +

+
+ + + + + + + + + +
handle samp_GetRegisteredClients (handle_t  handle  ) 
+
+
+ +

+Get public-ids of the registered clients. +

+SAMP_GETREGISTEREDCLIENTS -- Get public-ids of the registered clients.

+

Parameters:
+ + +
handle samp struct handle
+
+
Returns:
handle to list of registered clients
+ +

Referenced by samp_mapClients().

+ +
+

+ +

+
+ + + + + + + + + +
func samp_getSampHandler (String  mtype  ) 
+
+
+ +

+Get the Samphandler for the named mtype. +

+SAMP_GETSAMPHANDLER -- Get the Samphandler for the named mtype.

+

Parameters:
+ + +
mtype mtype string
+
+
Returns:
nothing
+ +

Referenced by samp_receiveCall(), samp_receiveNotification(), and samp_Subscribe().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
char * samp_getStringFromList (List  list,
int  index 
)
+
+
+ +

+Get a string from the List. +

+SAMP_GETSTRINGFROMLIST -- Get a string from the List

+

Parameters:
+ + + +
list List object handle
index List index containing the string
+
+
Returns:
character string
+ +

Referenced by samp_mapClients().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
char * samp_getStringFromMap (Map  map,
char *  key 
)
+
+ +

+ +

+
+ + + + + + + + + + + + + + + + + + +
list samp_GetSubscribedClients (handle_t  handle,
String  mtype 
)
+
+
+ +

+Get clients matching the mtype subscription. +

+SAMP_GETSUBSCRIBEDCLIENTS -- Get clients matching the mtype subscription.

+

Parameters:
+ + + +
handle samp struct handle
mtype mtype string
+
+
Returns:
handle to list of clients having mtype subscription
+ +
+

+ +

+ +

+
+ + + + + + + + + +
int samp_hubActive (handle_t  handle  ) 
+
+
+ +

+Determine if the Hub is active (i.e. connected). +

+SAMP_HUBACTIVE -- Determine if the Hub is active (i.e. connected).

+

Parameters:
+ + +
handle user handle to samp struct
+
+
Returns:
nothing
+ +

References Samp::active.

+ +
+

+ +

+
+ + + + + + + + + +
status samp_hubClose (handle_t  handle  ) 
+
+
+ +

+Close a connection to the Hub. +

+SAMP_HUBCLOSE -- Close a connection to the Hub.

+

Parameters:
+ + +
handle hub handle
+
+
Returns:
unregister status
+ +

Referenced by sampClose(), and sampShutdown().

+ +
+

+ +

+
+ + + + + + + + + +
status samp_hubDeclareMetadata (Hub hub  ) 
+
+
+ +

+Declare "standard" metadata to the Hub. +

+SAMP_DECLAREMETADATA -- Declare "standard" metadata to the Hub.

+

Parameters:
+ + +
hub hub struct pointer
+
+
Returns:
status
+ +

Referenced by samp_DeclareMetadata(), and sampStartup().

+ +
+

+ +

+
+ + + + + + + + + +
status samp_hubDeclareSubscriptions (Hub hub  ) 
+
+
+ +

+Declare mtype subscriptions to the Hub. +

+SAMP_HUBDECLARESUBSCRIPTIONS -- Declare mtype subscriptions to the Hub.

+

Parameters:
+ + +
hub hub struct pointer
+
+
Returns:
status
+ +

Referenced by samp_DeclareSubscriptions(), and sampStartup().

+ +
+

+ +

+
+ + + + + + + + + +
code samp_hubEvent (String  mtype  ) 
+
+
+ +

+Determine the type of Hub event mtype. +

+SAMP_HUBEVENT -- Determine the type of Hub event mtype.

+

Parameters:
+ + +
mtype mtype string
+
+
Returns:
Hub event code or -1 if not found
+ +

Referenced by samp_processHubEvent().

+ +
+

+ +

+
+ + + + + + + + + +
handle samp_hubOpen (Samp sampP  ) 
+
+
+ +

+Discover and open a connection to the SAMP Hub. +

+SAMP_HUBOPEN -- Discover and open a connection to the SAMP Hub.

+

Parameters:
+ + +
samp Same structure
+
+
Returns:
hub handle
+ +

Referenced by sampInit(), and sampStartup().

+ +
+

+ +

+
+ + + + + + + + + +
status samp_hubPing (Hub hub  ) 
+
+
+ +

+Ping the Hub to see if it is alive. +

+SAMP_HUBPING -- Ping the Hub to see if it is alive.

+

Parameters:
+ + +
hub hub struct pointer
+
+
Returns:
status
+ +

Referenced by samp_Ping().

+ +
+

+ +

+
+ + + + + + + + + +
status samp_hubRegister (Hub hub  ) 
+
+
+ +

+Send a Register message to the Hub. +

+SAMP_HUB_REGISTER -- Send a Register message to the Hub.

+

Parameters:
+ + +
hub hub struct pointer
+
+
Returns:
status
+ +

Referenced by samp_hubOpen().

+ +
+

+ +

+
+ + + + + + + + + +
int samp_hubRunning (void   ) 
+
+
+ +

+SAMP_HUBRUNNING -- See whether a Hub is running. The test simply checks the existence of a Hub lockfile. +

References SZ_NAME.

+ +
+

+ +

+
+ + + + + + + + + +
status samp_hubSendShutdown (Hub hub  ) 
+
+
+ +

+Send a samp.app.event.shutdown message to the Hub. +

+SAMP_HUBSENDSHUTDOWN -- Send a samp.app.event.shutdown message to the Hub.

+

Parameters:
+ + +
hub hub struct pointer
+
+
Returns:
status
+ +
+

+ +

+
+ + + + + + + + + +
status samp_hubSetXmlrpcCallback (Hub hub  ) 
+
+
+ +

+Set the client callback and send to Hub. +

+SAMP_HUBSETXMLRPCCALLBACK -- Set the client callback and send to Hub

+

Parameters:
+ + +
hub hub struct pointer
+
+
Returns:
status
+ +

Referenced by samp_hubOpen().

+ +
+

+ +

+
+ + + + + + + + + +
status samp_hubUnRegister (Hub hub  ) 
+
+
+ +

+Send a UnRegister message to the Hub. +

+SAMP_HUBUNREGISTER -- Send a UnRegister message to the Hub.

+

Parameters:
+ + +
hub hub struct pointer
+
+
Returns:
status
+ +

Referenced by samp_hubClose(), and samp_UnRegister().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
appName samp_id2app (handle_t  handle,
char *  pubId 
)
+
+
+ +

+Convert a public-ID to the application name. +

+SAMP_ID2APP -- Convert a public-ID to the application name.

+

Parameters:
+ + + +
handle samp struct handle
pubId public ID of application
+
+
Returns:
name of registered application
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
stat samp_imageLoadFITS (handle_t  handle,
String  recip,
String  url,
String  tableId,
String  name 
)
+
+
+ +

+Tell an app to load a FITS image. +

+SAMP_IMAGELOADFITS -- Tell an app to load a FITS image.

+

Parameters:
+ + + + + + +
handle samp struct handle
recip Message recipient (or "all" for broadcast)
url URL to table to be loaded
imageId ID assigned to image (optional)
name Name assigned to image (optional)
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_imLoadHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Handle an image.load.fits message. +

+SAMP_IMLOADHANDLER -- Handle an image.load.fits message.

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +
+

+ +

+
+ + + + + + + + + +
int samp_listClients (handle_t  handle  ) 
+
+
+ +

+SAMP_LISTCLIENTS -- List the available clients to stdout. +

+

+ +

+
+ + + + + + + + + +
int samp_listLen (List  list  ) 
+
+
+ +

+Get number of elements in a List. +

+SAMP_LISTLEN -- Get number of elements in a List.

+

Parameters:
+ + +
list List object handle
+
+
Returns:
nothing
+ +

Referenced by samp_execUserHandler(), samp_GetRegisteredClients(), samp_GetSubscribedClients(), samp_mapClients(), and samp_tbSelectHandler().

+ +
+

+ +

+
+ + + + + + + + + +
int samp_mapClients (handle_t  handle  ) 
+
+
+ +

+SAMP_MAPCLIENTS -- Map the public-ids of registered clients to the appName. +

+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void samp_Metadata (handle_t  handle,
String  field,
String  value 
)
+
+
+ +

+Set a metadata field value for the application. +

+SAMP_METADATA -- Set a metadata field for the application. This will be sent to the Hub later in a declareMetadata() call.

+

Parameters:
+ + + + +
handle samp handle
field metadata field to set (name, author, etc)
samp value of field
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void samp_msgParam (Msg  msg,
Param  param 
)
+
+
+ +

+Add a parameter to the Msg. +

+SAMP_MSGPARAM -- Add a parameter to the Msg.

+

Parameters:
+ + + + +
msg handle to Msg object
keyw map keyword
param parameter map
+
+
Returns:
nothing
+ +

Referenced by samp_bibLoad(), samp_cmdExec(), samp_coordPointAtSky(), samp_envGet(), samp_envSet(), samp_imageLoadFITS(), samp_paramGet(), samp_paramSet(), samp_Ping(), samp_resourceLoad(), samp_sendGeneric(), samp_specLoadSSAGeneric(), samp_tableHighlightRow(), samp_tableLoadFITS(), samp_tableLoadVOTable(), and samp_tableSelectRowList().

+ +
+

+ +

+
+ + + + + + + + + +
handle_t samp_newHandle (void *  ptr  ) 
+
+
+ +

+Get an unused object handle. +

+SAMP_NEWHANDLE -- Get an unused object handle.

+

Parameters:
+ + +
ptr pointer to object to be stored
+
+
Returns:
new object handle
+ +

Referenced by samp_hubOpen(), and sampInit().

+ +
+

+ +

+
+ + + + + + + + + +
int samp_newList (void   ) 
+
+
+ +

+Create a new List object. +

+SAMP_NEWLIST -- Create a new List object

+

Returns:
handle to List object
+ +

Referenced by samp_GetRegisteredClients(), samp_GetSubscribedClients(), samp_tableSelectRowList(), and sampInit().

+ +
+

+ +

+
+ + + + + + + + + +
int samp_newMap (void   ) 
+
+
+ +

+Create a new Map object. +

+SAMP_NEWMAP -- Create a new Map object

+

Returns:
handle to new Map
+ +

Referenced by samp_envGetHandler(), samp_getNullMap(), samp_getOKMap(), samp_paramGetHandler(), and sampInit().

+ +
+

+ +

+
+ + + + + + + + + +
int samp_newMsg (void   ) 
+
+ +

+ +

+
+ + + + + + + + + +
int samp_newParam (void   ) 
+
+ +

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void samp_notify (handle_t  handle,
String  recipId,
Map  msg 
)
+
+
+ +

+Make a notify() call to the Hub. +

+SAMP_NOTIFY -- Make a notify() call to the Hub

+

Parameters:
+ + + + +
handle samp struct handle
recipId recipient ID
msg message map
+
+
Returns:
nothing
+ +

Referenced by samp_sendMsg().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void samp_notifyAll (handle_t  handle,
Map  msg 
)
+
+
+ +

+Make a notifyAll() call to the Hub. +

+SAMP_NOTIFYALL -- Make a notifyAll() call to the Hub

+

Parameters:
+ + + +
handle samp struct handle
msg message map
+
+
Returns:
nothing
+ +

Referenced by samp_sendMsg().

+ +
+

+ +

+
+ + + + + + + + + +
int samp_nullResponse (void *  data  ) 
+
+
+ +

+SAMP_NULLRESPONSE -- Handler to ignore async replies. +

Referenced by samp_hubSendShutdown(), samp_notify(), and samp_Reply().

+ +
+

+ +

+
+ + + + + + + + + +
handle_t samp_P2H (void *  ptr  ) 
+
+
+ +

+Convert a pointer to a handle. +

+SAMP_P2H -- Convert a pointer to a handle

+

Parameters:
+ + +
ptr pointer to object
+
+
Returns:
handle to object, < 0 on error
+ +

Referenced by samp_hubOpen(), and samp_processHubEvent().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
val samp_paramGet (handle_t  handle,
String  recip,
String  name 
)
+
+
+ +

+Get a parameter variable in a remote application. +

+SAMP_PARAMGET -- Get a parameter variable in a remote application.

+

Parameters:
+ + + + +
handle samp struct handle
recip name of recipient (or 'all')
name Name of variable in receiver's environment
+
+
Returns:
NULL, Value of variable, or list of values
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_paramGetHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Handle a client.param.set message. +

+SAMP_PARAMGETHANDLER -- Handle a client.param.set message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +
+

+ +

+
+ + + + + + + + + +
nparam samp_paramInit (Msg  msg  ) 
+
+
+ +

+Get number of Params. +

+SAMP_PARAMINIT -- Get number of Params.

+

Parameters:
+ + +
msg handle to Msg object
+
+
Returns:
nothing
+ +

Referenced by samp_addFloatParam(), samp_addIntParam(), samp_addListParam(), and samp_addMapParam().

+ +
+

+ +

+
+ + + + + + + + + +
nparam samp_paramLen (Msg  msg  ) 
+
+
+ +

+Get number of Params. +

+SAMP_PARAMLEN -- Get number of Params.

+

Parameters:
+ + +
msg handle to Msg object
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
stat samp_paramSet (handle_t  handle,
String  recip,
String  name,
String  value 
)
+
+
+ +

+Set an parameter variable in a remote application. +

+SAMP_PARAMSET -- Set an parameter variable in a remote application.

+

Parameters:
+ + + + + +
handle samp struct handle
recip name of recipient (or 'all')
name Name of variable in receiver's environment
value Value of variable or NULL
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_paramSetHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Handle a client.param.set message. +

+SAMP_PARAMSETHANDLER -- Handle a client.param.set message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
stat samp_Ping (handle_t  handle,
String  appName 
)
+
+
+ +

+Ping the hub/app to see if it is alive (returns >0). +

+SAMP_PING -- Ping the hub/app to see if it is alive (returns >0).

+

Parameters:
+ + + +
handle samp struct handle
appName application name
+
+
Returns:
OK or ERR if no response
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_PingHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Is app alive and responding to messages? +

+SAMP_PINGHANDLER -- Simple aliveness test function.

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_pointAtHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Handle a coord.pointAt.sky message. +

+SAMP_POINTATHANDLER -- Handle a coord.pointAt.sky message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void samp_printMap (String  name,
Map  map 
)
+
+
+ +

+SAMP_PRINTMAP -- Print the contents of a Map structure. +

+

+ +

+
+ + + + + + + + + + + + + + + + + + +
samp_printMetadata (handle_t  handle,
String  name 
)
+
+
+ +

+Print the metadata for the application. +

+SAMP_PRINTMETADATA -- Print the metadata for the application.

+

Parameters:
+ + +
handle samp handle
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
valid samp_processHubEvent (String  mtype,
Map  params 
)
+
+
+ +

+Determine the type of Hub event mtype. +

+SAMP_HUBEVENT -- Determine the type of Hub event mtype.

+

Parameters:
+ + + +
mtype mtype string
params message parameter Map
+
+
Returns:
non-zero value if a Hub event was processed
+ +

Referenced by samp_receiveNotification().

+ +
+

+ +

+
+ + + + + + + + + +
int samp_receiveCall (void *  data  ) 
+
+
+ +

+test.echo method +

+receiveCall () client method.

+SAMP_TESTECHO -- test.echo method

+

Parameters:
+ + +
data caller param data
+
+
Returns:
status code or errno
+SAMP_RECEIVECALL -- receiveCall() client method.

+

Parameters:
+ + +
data caller param data
+
+
Returns:
status code or errno
+ +
+

+ +

+
+ + + + + + + + + +
int samp_receiveNotification (void *  data  ) 
+
+
+ +

+receiveNotification () client method. +

+SAMP_RECEIVENOTIFICATION -- receiveNotification() client method.

+

Parameters:
+ + +
data caller param data
+
+
Returns:
status code or errno
+ +
+

+ +

+
+ + + + + + + + + +
int samp_receiveResponse (void *  data  ) 
+
+
+ +

+receiveResponse () client method. +

+SAMP_RECEIVERESPONSE -- receiveResponse() client method.

+

Parameters:
+ + +
data caller param data
+
+
Returns:
status code or errno
+ +
+

+ +

+
+ + + + + + + + + +
handle samp_Register (handle_t  handle  ) 
+
+
+ +

+Register with the Hub using the currently stored metadata. +

+SAMP_REGISTER -- Register with the Hub using the currently stored metadata.

+

Parameters:
+ + +
handle samp struct handle
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
int samp_removeClient (handle_t  handle,
String  id 
)
+
+
+ +

+SAMP_REMOVECLIENT -- Remove a registered client from the list of known apps that do the public-private name translation. +

+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
status samp_Reply (handle_t  handle,
String  msg_id,
Map  response 
)
+
+
+ +

+Reply to a message. +

+SAMP_REPLY -- Reply to a message. All we do here is send the reply message, we require that the response Map already be defined.

+

Parameters:
+ + + + +
handle samp struct handle
msg_id message ID
response response map
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

Referenced by samp_receiveCall().

+ +
+

+ +

+
+ + + + + + + + + +
int samp_replyStatus (handle_t  handle  ) 
+
+
+ +

+Reply with the status of the last message sent. +

+SAMP_REPLYSTATUS -- Reply with the status of the last message sent.

+May be used to 'poll' for a reponse from the caller in cases where use of a callback is a problem. Codes are: <0==ERR, 0==PENDING, 1==OK

+

Parameters:
+ + +
samp samp struct ptr
+
+
Returns:
message status
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_resConeHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+handle a voresource.loadlist message +

+SAMP_RESCONEHANDLER -- Handle a voresource.loadlist.cone message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_resLoadHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+handle a voresource.loadlist message +

+SAMP_RESLOADHANDLER -- handle a voresource.loadlist.* message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

Referenced by samp_resConeHandler(), samp_resSiapHandler(), samp_resSsapHandler(), samp_resTapHandler(), and samp_resVOSpaceHandler().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
val samp_resourceLoad (handle_t  handle,
String  recip,
String  type,
String  name,
Map  resMap 
)
+
+
+ +

+Exchange a resource list. +

+SAMP_RESOURCELOAD -- Exchange a resource list.

+

Parameters:
+ + + + + + +
handle samp struct handle
recip Name of recipient (or 'all')
type Resource type (or NULL)
name Descriptive name (optional)
resMap Resource map
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_resSiapHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+handle a voresource.loadlist message +

+SAMP_RESSIAPHANDLER -- Handle a voresource.loadlist.siap message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_resSsapHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+handle a voresource.loadlist message +

+SAMP_RESSSAPHANDLER -- Handle a voresource.loadlist.ssap message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_resTapHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+handle a voresource.loadlist message +

+SAMP_RESTAPHANDLER -- Handle a voresource.loadlist.tap message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_resVOSpaceHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+handle a voresource.loadlist message +

+SAMP_RESVOSPACEHANDLER -- Handle a voresource.loadlist.vospace message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
stat samp_sendGeneric (handle_t  handle,
String  recip,
String  mtype,
String  args[] 
)
+
+
+ +

+Send a geenric message. +

+SAMP_SENDGENERIC -- Send a generic message.

+

Parameters:
+ + + + + +
handle samp struct handle
recip Name of recipient (or 'all')
mtype Message type
args Argument list
+
+
Returns:
SAMP_OK or SAMP_ERR
+This method can be used to send any user-defined message. The 'mtype' string is arbitrary, we just assume the receiving client can understand what it means. The 'args' String array can be an array of values in which case the parameter name will be a series of generic 'arg0' thru 'argN-1' names. +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
stat samp_sendMsg (handle_t  handle,
String  recip,
Map  msg 
)
+
+
+ +

+Send the specified message. +

+SAMP_SENDMSG -- Send the specified message.

+

Parameters:
+ + + + +
handle samp struct handle
recip Name of recipient (or 'all')
msg Message map
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

Referenced by samp_bibLoad(), samp_cmdExec(), samp_coordPointAtSky(), samp_envSet(), samp_imageLoadFITS(), samp_paramSet(), samp_resourceLoad(), samp_sendGeneric(), samp_specLoadSSAGeneric(), samp_tableHighlightRow(), samp_tableLoadFITS(), samp_tableLoadVOTable(), and samp_tableSelectRowList().

+ +
+

+ +

+
+ + + + + + + + + +
port samp_serverPort (void   ) 
+
+
+ +

+Return a unique port number for the server. +

+SAMP_SERVERPORT -- Return a unique port number for the server.

+

Returns:
port number
+ +

Referenced by samp_hubSetXmlrpcCallback(), and sampInit().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void samp_setAppVersion (handle_t  handle,
String  version 
)
+
+
+ +

+Set the application name string. +

+Set the application version string.

+SAMP_SETAPPNAME -- Set the application name string.

+

Parameters:
+ + + +
handle samp handle
name application name
+
+
Returns:
nothing
+SAMP_SETAPPVERSION -- Set the application version string.

+

Parameters:
+ + + +
handle samp handle
name application version
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + +
void samp_setASyncMode (handle_t  handle  ) 
+
+
+ +

+Set the calling mode to use asynchronous messaging. +

+SAMP_SETASYNCMODE -- Set the calling mode to use asynchronous messaging.

+

Parameters:
+ + +
handle samp handle
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + +
void samp_setCallByRef (handle_t  handle  ) 
+
+
+ +

+Have interface call user handlers by reference. +

+SAMP_SETCALLBYREF -- Have interface call user handlers by reference.

+

Parameters:
+ + +
handle samp handle
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void samp_setCallMode (handle_t  handle,
int  mode 
)
+
+
+ +

+Set the default calling mode (synch or asynch). +

+SAMP_SETCALLMODE -- Set the default calling mode (synch or asynch)

+

Parameters:
+ + + +
handle samp handle
mode call mode (synch or asynch)
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
stat samp_setErr (handle_t  handle,
Map  resp 
)
+
+
+ +

+Set the error response string. +

+SAMP_SETERR -- Set the error response string/code.

+

Parameters:
+ + + +
handle samp struct handle
resp Response map
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

Referenced by samp_callAll(), samp_callAndWait(), samp_Ping(), and samp_sendMsg().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void samp_setFloatInList (List  list,
float  rval 
)
+
+
+ +

+Set a Float in a List (append). +

+SAMP_SETFLOATINLIST -- Set a Float in a List (append)

+

Parameters:
+ + + +
list1 List object handle
rval Float value to be appended
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void samp_setFloatInMap (Map  map,
char *  key,
float  value 
)
+
+
+ +

+Set a string in a Map (append). +

+SAMP_SETFLOATINMAP -- Set a Float in a Map (append)

+

Parameters:
+ + + + +
map handle to Map object
key Map key
value value
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + +
samp_setHandlerReply (Map  resp  ) 
+
+
+ +

+Set the Samp Handler reply map. +

+SAMP_SETHANDLERREPLY -- Set the Samp Handler reply map.

+

Parameters:
+ + +
resp response map
+
+
Returns:
nothing
+ +

Referenced by samp_envGetHandler(), and samp_paramGetHandler().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void samp_setIntInList (List  list,
int  ival 
)
+
+
+ +

+Set an Int in a List (append). +

+SAMP_SETINTINLIST -- Set an Int in a List (append)

+

Parameters:
+ + + +
list1 List object handle
ival Integer value to be appended
+
+
Returns:
nothing
+ +

Referenced by samp_tableSelectRowList().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void samp_setIntInMap (Map  map,
char *  key,
int  value 
)
+
+
+ +

+Set a Int in a Map (append). +

+SAMP_SETINTINMAP -- Set a Int in a Map (append)

+

Parameters:
+ + + + +
map handle to Map object
key Map key
value value
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void samp_setListInList (List  list1,
List  list2 
)
+
+
+ +

+Set a List in another List (append). +

+SAMP_SETLISTINLIST -- Set a List in another List (append)

+

Parameters:
+ + + +
list1 List object handle
list2 List to be appended
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void samp_setListInMap (Map  map,
char *  key,
List  list 
)
+
+
+ +

+Set a List in a Map (append). +

+SAMP_SETLISTINMAP -- Set a List in a Map (append)

+

Parameters:
+ + + + +
map handle to Map object
key Map key
list handle to List object to set
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void samp_setMapInList (List  list,
Map  map 
)
+
+
+ +

+Set a Map in a List (append). +

+SAMP_SETMAPINLIST -- Set a Map in a List (append)

+

Parameters:
+ + + +
list List object handle
map Map object to be set
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void samp_setMapInMap (Map  map1,
char *  key,
Map  map2 
)
+
+
+ +

+Set a Map in a Map (append). +

+SAMP_SETMAPINMAP -- Set a Map in a Map (append)

+

Parameters:
+ + + + +
map1 handle to Map object
key Map key
map2 handle to Map object to set
+
+
Returns:
nothing
+ +

Referenced by samp_envGetHandler(), samp_getOKMap(), samp_paramGetHandler(), and sampInit().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void samp_setMsgMode (handle_t  handle,
int  mode 
)
+
+
+ +

+Set the message pattern to the specified mode. +

+SAMP_SETMSGMODE -- Set the message pattern to the specified mode.

+

Parameters:
+ + + +
handle samp handle
mode message mode
+
+
Returns:
nothing
+ +

References Samp::msgMode.

+ +
+

+ +

+
+ + + + + + + + + +
void samp_setNotifyMode (handle_t  handle  ) 
+
+
+ +

+Set the calling mode to use notification messaging. +

+SAMP_SETNOTIFYMODE -- Set the calling mode to use notification messaging.

+

Parameters:
+ + +
handle samp handle
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void samp_setReplyCallback (handle_t  handle,
int *  func 
)
+
+
+ +

+Set the Reply callback. samp_setReplyCallback (handle_t handle, int *func). +

+SAMP_SETREPLYCALLBACK -- Set the Reply callback.

+

Parameters:
+ + + +
handle samp handle
func callback for Reply message
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void samp_setResponseCallback (handle_t  handle,
int *  func 
)
+
+
+ +

+Set the Response callback. samp_setResponseCallback (handle_t handle, int *func). +

+SAMP_SETRESPONSECALLBACK -- Set the Response callback.

+

Parameters:
+ + + +
handle samp handle
func callback for message response
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
samp_setSampHandler (handle_t  handle,
String  mtype,
void *  func 
)
+
+
+ +

+Set the SAMP interface handler for the mtype. +

+SAMP_SETSAMPHANDLER -- Set the SAMP interface handler for the mtype.

+

Parameters:
+ + + + +
handle user handle to samp struct
mtype mtype name
func callback function
+
+
Returns:
nothing
+ +

Referenced by samp_Subscribe().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void samp_setStringInList (List  list,
char *  value 
)
+
+
+ +

+Set a string in a List (append). +

+SAMP_SETSTRINGINLIST -- Set a string in a List (append)

+

Parameters:
+ + + +
list List object handle
value string value to set
+
+
Returns:
nothing
+ +

Referenced by samp_GetRegisteredClients(), and samp_GetSubscribedClients().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void samp_setStringInMap (Map  map,
char *  key,
char *  value 
)
+
+
+ +

+Set a string in a Map (append). +

+SAMP_SETSTRINGINMAP -- Set a string in a Map (append)

+

Parameters:
+ + + + +
map handle to Map object
key Map key
value Map value
+
+
Returns:
nothing
+ +

Referenced by samp_envGetHandler(), samp_getOKMap(), samp_paramGetHandler(), and sampInit().

+ +
+

+ +

+
+ + + + + + + + + +
void samp_setSyncMode (handle_t  handle  ) 
+
+
+ +

+Set the calling mode to use synchronous messaging. +

+SAMP_SETSYNCMODE -- Set the calling mode to use synchronous messaging.

+

Parameters:
+ + +
handle samp handle
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void samp_setTimeout (handle_t  handle,
int  timeout 
)
+
+
+ +

+Set the message timeout value (in seconds). +

+SAMP_SETTIMEOUT -- Set the message timeout value (in seconds).

+

Parameters:
+ + + +
handle samp handle
name application name
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
samp_setUserHandler (handle_t  handle,
String  mtype,
void *  func 
)
+
+
+ +

+Set the user-interface handler for the mtype. +

+SAMP_SETUSERHANDLER -- Set the user-interface handler for the mtype.

+

Parameters:
+ + + + +
handle user handle to samp struct
mtype mtype name
func callback function
+
+
Returns:
nothing
+ +

Referenced by samp_Subscribe().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_specLoadHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Handle a spectrum.load.* message. +

+SAMP_SPECLOADHANDLER -- Handle a spectrum.load.* message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

Referenced by samp_specSSAHandler().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
stat samp_specLoadSSAGeneric (handle_t  handle,
String  recip,
String  url,
Map  meta,
String  spectrumId,
String  name 
)
+
+
+ +

+Load a generic spectrum from an SSA service. +

+SAMP_SPECLOADSSAGENERIC -- Load a generic spectrum from an SSA service.

+

Parameters:
+ + + + + + + +
handle samp struct handle
recip name of recipient (or 'all')
url URL of spectrum to load
meta Metadata map describing data found at the URL
spectrumId Identifier for spectrum (optional)
name Name used to label spectrum (optional);
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_specSSAHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Handle a spectrum.load.ssa-generic message. +

+SAMP_SPECSSAHANDLER -- Handle a spectrum.load.ssa-generic message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_StatusHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Return status of the task. +

+SAMP_STATUSHANDLER -- Return status of the task.

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void samp_Subscribe (handle_t  handle,
String  mtype,
void *  userFunc 
)
+
+
+ +

+Subscribe to a given mtype. +

+SAMP_SUBSCRIBE -- Subscribe to a given mtype.

+

Parameters:
+ + + + +
handle user handle to samp struct
mtype mtype name
func callback function
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
stat samp_tableHighlightRow (handle_t  handle,
String  recip,
String  tableId,
String  url,
int  row 
)
+
+
+ +

+Tell an app to highlight a table row. +

+SAMP_TABLEHIGHLIGHTROW -- Tell an app to highlight a table row.

+

Parameters:
+ + + + + + +
handle samp struct handle
recip Message recipient (or "all" for broadcast)
tableId ID associated with a previously loaded table
url URL to table to be loaded
rows List of (zero-based) row indices
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
stat samp_tableLoadFITS (handle_t  handle,
String  recip,
String  url,
String  tableId,
String  name 
)
+
+
+ +

+Tell an app to load a FITS table. +

+SAMP_TABLELOADFITS -- Tell an app to load a FITS table.

+

Parameters:
+ + + + + + +
handle samp struct handle
recip Message recipient (or "all" for broadcast)
url URL to table to be loaded
tableId ID assigned to table (optional)
name Name assigned to table (optional)
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
stat samp_tableLoadVOTable (handle_t  handle,
String  recip,
String  url,
String  tableId,
String  name 
)
+
+
+ +

+Tell an app to load a VOTable. +

+SAMP_TABLELOADVOTABLE -- Tell an app to load a VOTable.

+

Parameters:
+ + + + + + +
handle samp struct handle
recip Message recipient (or "all" for broadcast)
url URL to table to be loaded
tableId ID assigned to table (optional)
name Name assigned to table (optional)
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
stat samp_tableSelectRowList (handle_t  handle,
String  recip,
String  tableId,
String  url,
int  rows[],
int  nrows 
)
+
+
+ +

+Tell an app to select a list of table rows. +

+SAMP_TABLESELECTROWLIST -- Tell an app to select a list of table rows.

+

Parameters:
+ + + + + + + +
handle samp struct handle
recip Message recipient (or "all" for broadcast)
tableId ID associated with a previously loaded table
url URL to table to be loaded
rows Array of (zero-based) row indices
nrows Number of rows
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_tbHighlightHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Handle a table.highlight.row message. +

+SAMP_TBHIGHLIGHTHANDLER -- Handle a table.highlight.row message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_tbLoadFITSHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Handle a generic table.load.fits message. +

+SAMP_TBLOADFITSHANDLER -- Handle a generic table.load.fits message *

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_tbLoadHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Handle a generic table.load.* message. +

+SAMP_TBLOADHANDLER -- Handle a generic table.load.* message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +

Referenced by samp_tbLoadFITSHandler(), and samp_tbLoadVOTHandler().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_tbLoadVOTHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Handle a generic table.load.votable message. +

+SAMP_TBLOADVOTHANDLER -- Handle a generic table.load.votable message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int samp_tbSelectHandler (String  sender,
String  mtype,
String  msg_id,
Map  msg_map 
)
+
+
+ +

+Handle a table.select.rowList message. +

+SAMP_TBSELECTHANDLER -- Handle a table.select.rowList message

+

Parameters:
+ + + + + +
sender sender name
mtype mtype string
msg_id message id
msg_map message map struct
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +
+

+ +

+
+ + + + + + + + + +
stat samp_UnRegister (handle_t  handle  ) 
+
+
+ +

+Un-Register from the hub. +

+SAMP_UNREGISTER -- Un-Register from the hub.

+

Parameters:
+ + +
handle samp struct handle
+
+
Returns:
SAMP_OK or SAMP_ERR
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void samp_Unsubscribe (handle_t  handle,
String  mtype 
)
+
+
+ +

+Unsubscribe to a given mtype. +

+SAMP_UNSUBSCRIBE -- Unsubscribe to a given mtype.

+

Parameters:
+ + + +
handle user handle to samp struct
mtype mtype name
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + +
void sampClose (handle_t  handle  ) 
+
+
+ +

+Close the SAMP interface and free resources. +

+SAMP_CLOSE -- Close the SAMP interface.

+

Parameters:
+ + +
handle user handle to samp struct
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
int sampDebug (handle_t  handle,
int  value 
)
+
+
+ +

+Set interface debug level. +

+SAMPDEBUG -- Set interface debug level.

+

Parameters:
+ + + +
handle user handle to samp struct
value debug value
+
+
Returns:
nothing
+ +

References Samp::debug, and Samp::verbose.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
handle_t sampInit (String  appName,
String  description 
)
+
+
+ +

+Initialize the SAMP interface. +

+Prototype declarations.

+SAMP_INIT -- Initialize the SAMP interface.

+

Parameters:
+ + + +
appName application name
description description of application
+
+
Returns:
samp handle
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
sampLog (handle_t  handle,
char *  format,
  ... 
)
+
+
+ +

+SAMP message logger. +

+SAMPLOG -- SAMP message logger.

+

Parameters:
+ + + +
handle SAMP handle
format message format string
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + +
int sampShutdown (handle_t  handle  ) 
+
+
+ +

+Shut down the active SAMP interface. +

+SAMP_SHUTDOWN -- Shut down the active SAMP interface.

+

Parameters:
+ + +
handle user handle to samp struct
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + +
int sampStartup (handle_t  handle  ) 
+
+
+ +

+Startup the SAMP interface to send/receive messages. +

+SAMP_STARTUP -- Startup the SAMP interface to send/receive messages.

+

Parameters:
+ + +
handle user handle to samp struct
+
+
Returns:
nothing
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
sampTrace (handle_t  handle,
char *  format,
  ... 
)
+
+
+ +

+SAMP tracer. +

+SAMPTRACE -- SAMP tracer.

+

Parameters:
+ + + +
handle SAMP handle
format message format string
+
+
Returns:
nothing
+ +

Referenced by samp_Metadata(), sampClose(), and sampInit().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
int sampVerbose (handle_t  handle,
int  value 
)
+
+
+ +

+Set interface debug level. +

+SAMPVERBOSE -- Set interface verbose level.

+

Parameters:
+ + + +
handle user handle to samp struct
value verbose value
+
+
Returns:
nothing
+ +

References Samp::verbose.

+ +
+

+

+
Generated on Wed Feb 27 21:10:15 2013 for SAMP Client Library by  + +doxygen 1.5.9
+ + diff --git a/vendor/voclient/libsamp/doc/html/samp_8h_source.html b/vendor/voclient/libsamp/doc/html/samp_8h_source.html new file mode 100644 index 00000000..9474ec50 --- /dev/null +++ b/vendor/voclient/libsamp/doc/html/samp_8h_source.html @@ -0,0 +1,481 @@ + + +SAMP Client Library: samp.h Source File + + + + + +
Generated on Wed Feb 27 21:10:15 2013 for SAMP Client Library by  + +doxygen 1.5.9
+ + diff --git a/vendor/voclient/libsamp/doc/html/structClient.html b/vendor/voclient/libsamp/doc/html/structClient.html new file mode 100644 index 00000000..5972b803 --- /dev/null +++ b/vendor/voclient/libsamp/doc/html/structClient.html @@ -0,0 +1,61 @@ + + +SAMP Client Library: Client Struct Reference + + + + + +
+

Client Struct Reference

#include <samp.h> +

+ + + + + + + +

Data Fields

+char pubId [SZ_NAME]
char name [SZ_NAME]
+


Detailed Description

+Registered Client name mappings.

Field Documentation

+ +

+


The documentation for this struct was generated from the following files: +
+
Generated on Wed Feb 27 21:10:16 2013 for SAMP Client Library by  + +doxygen 1.5.9
+ + diff --git a/vendor/voclient/libsamp/doc/html/structHub.html b/vendor/voclient/libsamp/doc/html/structHub.html new file mode 100644 index 00000000..b1679a81 --- /dev/null +++ b/vendor/voclient/libsamp/doc/html/structHub.html @@ -0,0 +1,287 @@ + + +SAMP Client Library: Hub Struct Reference + + + + + +
+

Hub Struct Reference

#include <samp.h> +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Data Fields

+char appName [SZ_LINE]
char appVer [SZ_LINE]
char description [SZ_LINE]
appMD meta
char secret [SZ_SECRET]
char url [SZ_URL]
char version [SZ_NAME]
int id
char appId [SZ_NAME]
char privateKey [SZ_LINE]
char hubId [SZ_LINE]
char selfId [SZ_LINE]
char timeout [SZ_NAME]
void * samp
+


Detailed Description

+Hub description. Our application connects to this hub by default, but the structure will be valid for any Hub.

Field Documentation

+ +
+
+ + + + +
char Hub::appId
+
+
+ +

+Hub XML-RPC connection +

Referenced by samp_hubOpen().

+ +
+

+ +

+
+ + + + +
char Hub::appVer
+
+
+ +

+application name +

Referenced by samp_hubOpen(), samp_Metadata(), and samp_setAppVersion().

+ +
+

+ +

+
+ + + + +
char Hub::description
+
+
+ +

+application version +

Referenced by samp_hubDeclareMetadata(), samp_hubOpen(), and samp_Metadata().

+ +
+

+ +

+
+ + + + +
char Hub::hubId
+
+
+ +

+client key value +

Referenced by samp_hubRegister(), and samp_Register().

+ +
+

+ +

+ +

+
+ + + + +
appMD Hub::meta
+
+
+ +

+descriptive text +

Referenced by samp_hubClose(), samp_hubDeclareMetadata(), samp_hubOpen(), and samp_Metadata().

+ +
+

+ +

+ +

+
+ + + + +
void * Hub::samp
+
+
+ +

+Sync msg timeout (str) +

Referenced by samp_hubDeclareSubscriptions(), and samp_hubOpen().

+ +
+

+ +

+
+ + + + +
char Hub::secret
+
+
+ +

+metadata +

Referenced by samp_hubRegister(), and samp_Register().

+ +
+

+ +

+
+ + + + +
char Hub::selfId
+
+
+ +

+Hub id value +

Referenced by samp_hubRegister(), and samp_Register().

+ +
+

+ +

+
+ + + + +
char Hub::timeout
+
+ +

+ +

+
+ + + + +
char Hub::url
+
+
+ +

+registration string +

Referenced by samp_hubOpen().

+ +
+

+ +

+
+ + + + +
char Hub::version
+
+
+ +

+Hub service endpoint +

+

+


The documentation for this struct was generated from the following files: +
+
Generated on Wed Feb 27 21:10:16 2013 for SAMP Client Library by  + +doxygen 1.5.9
+ + diff --git a/vendor/voclient/libsamp/doc/html/structSamp.html b/vendor/voclient/libsamp/doc/html/structSamp.html new file mode 100644 index 00000000..a7a13c2f --- /dev/null +++ b/vendor/voclient/libsamp/doc/html/structSamp.html @@ -0,0 +1,479 @@ + + +SAMP Client Library: Samp Struct Reference + + + + + +
+

Samp Struct Reference

#include <samp.h> +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Data Fields

+char appName [SZ_NAME]
char appVer [SZ_LINE]
char description [SZ_NAME]
char errortxt [SZ_LINE]
appMD meta
pthread_t svrThread
int(* defaultUserFunc )(char *sender, char *msgid, Map map)
+Subs subs [MAX_SUBS]
int nsubs
Client clients [MAX_CLIENTS]
int nclients
int serverTid
int serverPort
Hubhub
handle_t hubHandle
int hubThreadID
int active
int mapClients
int msgMode
int handlerMode
FILE * logfd
int debug
int verbose
int trace
+


Detailed Description

+SAMP application description. By default this describes our app by may be used to store information about other apps in the network as well.

Field Documentation

+ +
+
+ + + + +
int Samp::active
+
+
+ +

+Hub thread id +

Referenced by samp_hubActive(), sampShutdown(), and sampStartup().

+ +
+

+ +

+
+ + + + +
char Samp::appVer
+
+
+ +

+application name +

Referenced by samp_hubOpen(), samp_Metadata(), and samp_setAppVersion().

+ +
+

+ +

+ +

+
+ + + + +
int Samp::debug
+
+
+ +

+log file descriptor +

Referenced by samp_call(), samp_callAll(), samp_callAndWait(), samp_notifyAll(), sampDebug(), and sampLog().

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
int(* Samp::defaultUserFunc)(char *sender, char *msgid, Map map) (char *  sender,
char *  msgid,
Map  map 
)
+
+ +

+ +

+
+ + + + +
char Samp::description
+
+
+ +

+application version +

Referenced by samp_getMetadata(), samp_hubOpen(), samp_Metadata(), and samp_printMetadata().

+ +
+

+ +

+ +

+ +

+ +

+
+ + + + +
handle_t Samp::hubHandle
+
+
+ +

+Hub connection +

Referenced by sampClose(), sampShutdown(), and sampStartup().

+ +
+

+ +

+
+ + + + +
int Samp::hubThreadID
+
+
+ +

+Hub handle alias +

+

+ +

+
+ + + + +
FILE * Samp::logfd
+
+
+ +

+CBR / CBV for user handlers +

Referenced by sampLog().

+ +
+

+ +

+
+ + + + +
int Samp::mapClients
+
+
+ +

+is interface active +

Referenced by sampStartup().

+ +
+

+ +

+
+ + + + +
appMD Samp::meta
+
+
+ +

+last msh error string +

Referenced by samp_getMetadata(), samp_Metadata(), and samp_printMetadata().

+ +
+

+ +

+
+ + + + +
int Samp::msgMode
+
+
+ +

+map other clients

+is interface active +

Referenced by samp_sendMsg(), samp_setASyncMode(), samp_setCallMode(), samp_setMsgMode(), samp_setNotifyMode(), and samp_setSyncMode().

+ +
+

+ +

+ +

+ +

+
+ + + + +
int Samp::serverPort
+
+
+ +

+samp server threadId +

+

+ +

+
+ + + + +
int Samp::serverTid
+
+
+ +

+number of samp clients +

+

+ +

+
+ + + + +
pthread_t Samp::svrThread
+
+
+ +

+metadata +

Referenced by sampShutdown().

+ +
+

+ +

+ +

+
+ + + + +
int Samp::verbose
+
+
+ +

+debug flag +

Referenced by sampClose(), sampDebug(), sampShutdown(), sampStartup(), and sampVerbose().

+ +
+

+


The documentation for this struct was generated from the following files: +
+
Generated on Wed Feb 27 21:10:16 2013 for SAMP Client Library by  + +doxygen 1.5.9
+ + diff --git a/vendor/voclient/libsamp/doc/html/structSubs.html b/vendor/voclient/libsamp/doc/html/structSubs.html new file mode 100644 index 00000000..f69e3c6a --- /dev/null +++ b/vendor/voclient/libsamp/doc/html/structSubs.html @@ -0,0 +1,111 @@ + + +SAMP Client Library: Subs Struct Reference + + + + + +
+

Subs Struct Reference

#include <samp.h> +

+ + + + + + + + + +

Data Fields

+char mtype [SZ_LINE]
int(* userFunc )(void *p)
int(* sampFunc )(char *sid, char *sender, char *msgid, Map map)
+


Detailed Description

+Message subscription.

Field Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int(* Subs::sampFunc)(char *sid, char *sender, char *msgid, Map map) (char *  sid,
char *  sender,
char *  msgid,
Map  map 
)
+
+
+ +

+user handler function samp handler function +

Referenced by samp_getSampHandler(), samp_setSampHandler(), and samp_Unsubscribe().

+ +
+

+ +

+
+ + + + + + + + + +
int(* Subs::userFunc)(void *p) (void *  p  ) 
+
+ +

+


The documentation for this struct was generated from the following files: +
+
Generated on Wed Feb 27 21:10:16 2013 for SAMP Client Library by  + +doxygen 1.5.9
+ + diff --git a/vendor/voclient/libsamp/doc/html/structappMD.html b/vendor/voclient/libsamp/doc/html/structappMD.html new file mode 100644 index 00000000..fd43ea07 --- /dev/null +++ b/vendor/voclient/libsamp/doc/html/structappMD.html @@ -0,0 +1,174 @@ + + +SAMP Client Library: appMD Struct Reference + + + + + +
+

appMD Struct Reference

#include <samp.h> +

+ + + + + + + + + + + + + + + + + + + +

Data Fields

+char name [SZ_LINE]
char desc [SZ_DESC]
char iconURL [SZ_URL]
char docURL [SZ_URL]
char * descHTML
int nkeys
char * aKey [MAX_MDATTRS]
char * aVal [MAX_MDATTRS]
+


Detailed Description

+SAMP String datatype Application (and Hub) metadata.

+Application (and Hub) metadata.


Field Documentation

+ +
+
+ + + + +
char * appMD::aKey
+
+ +

+ +

+
+ + + + +
char * appMD::aVal
+
+ +

+ +

+
+ + + + +
char appMD::desc
+
+
+ +

+name +

Referenced by samp_hubOpen(), and samp_Metadata().

+ +
+

+ +

+
+ + + + +
char * appMD::descHTML
+
+
+ +

+documentation URL +

+

+ +

+
+ + + + +
char appMD::docURL
+
+ +

+ +

+
+ + + + +
char appMD::iconURL
+
+
+ +

+descriptive text +

Referenced by samp_getMetadata(), samp_hubDeclareMetadata(), samp_Metadata(), and samp_printMetadata().

+ +
+

+ +

+
+ + + + +
int appMD::nkeys
+
+
+ +

+descriptive text (HTML) +

Referenced by samp_getMetadata(), samp_hubClose(), samp_hubDeclareMetadata(), samp_Metadata(), and samp_printMetadata().

+ +
+

+


The documentation for this struct was generated from the following files: +
+
Generated on Wed Feb 27 21:10:16 2013 for SAMP Client Library by  + +doxygen 1.5.9
+ + diff --git a/vendor/voclient/libsamp/doc/html/tab_b.gif b/vendor/voclient/libsamp/doc/html/tab_b.gif new file mode 100644 index 00000000..0d623483 Binary files /dev/null and b/vendor/voclient/libsamp/doc/html/tab_b.gif differ diff --git a/vendor/voclient/libsamp/doc/html/tab_l.gif b/vendor/voclient/libsamp/doc/html/tab_l.gif new file mode 100644 index 00000000..9b1e6337 Binary files /dev/null and b/vendor/voclient/libsamp/doc/html/tab_l.gif differ diff --git a/vendor/voclient/libsamp/doc/html/tab_r.gif b/vendor/voclient/libsamp/doc/html/tab_r.gif new file mode 100644 index 00000000..ce9dd9f5 Binary files /dev/null and b/vendor/voclient/libsamp/doc/html/tab_r.gif differ diff --git a/vendor/voclient/libsamp/doc/html/tabs.css b/vendor/voclient/libsamp/doc/html/tabs.css new file mode 100644 index 00000000..ab02c624 --- /dev/null +++ b/vendor/voclient/libsamp/doc/html/tabs.css @@ -0,0 +1,105 @@ +/* tabs styles, based on http://www.alistapart.com/articles/slidingdoors */ + +DIV.tabs +{ + float : left; + width : 100%; + background : url("tab_b.gif") repeat-x bottom; + margin-bottom : 4px; +} + +DIV.tabs UL +{ + margin : 0px; + padding-left : 10px; + list-style : none; +} + +DIV.tabs LI, DIV.tabs FORM +{ + display : inline; + margin : 0px; + padding : 0px; +} + +DIV.tabs FORM +{ + float : right; +} + +DIV.tabs A +{ + float : left; + background : url("tab_r.gif") no-repeat right top; + border-bottom : 1px solid #84B0C7; + font-size : 80%; + font-weight : bold; + text-decoration : none; +} + +DIV.tabs A:hover +{ + background-position: 100% -150px; +} + +DIV.tabs A:link, DIV.tabs A:visited, +DIV.tabs A:active, DIV.tabs A:hover +{ + color: #1A419D; +} + +DIV.tabs SPAN +{ + float : left; + display : block; + background : url("tab_l.gif") no-repeat left top; + padding : 5px 9px; + white-space : nowrap; +} + +DIV.tabs INPUT +{ + float : right; + display : inline; + font-size : 1em; +} + +DIV.tabs TD +{ + font-size : 80%; + font-weight : bold; + text-decoration : none; +} + + + +/* Commented Backslash Hack hides rule from IE5-Mac \*/ +DIV.tabs SPAN {float : none;} +/* End IE5-Mac hack */ + +DIV.tabs A:hover SPAN +{ + background-position: 0% -150px; +} + +DIV.tabs LI.current A +{ + background-position: 100% -150px; + border-width : 0px; +} + +DIV.tabs LI.current SPAN +{ + background-position: 0% -150px; + padding-bottom : 6px; +} + +DIV.navpath +{ + background : none; + border : none; + border-bottom : 1px solid #84B0C7; + text-align : center; + margin : 2px; + padding : 2px; +} diff --git a/vendor/voclient/libsamp/doc/latex/Makefile b/vendor/voclient/libsamp/doc/latex/Makefile new file mode 100644 index 00000000..8b7c89a1 --- /dev/null +++ b/vendor/voclient/libsamp/doc/latex/Makefile @@ -0,0 +1,19 @@ +all: clean refman.pdf + +pdf: refman.pdf + +refman.pdf: refman.tex + pdflatex refman.tex + makeindex refman.idx + pdflatex refman.tex + latex_count=5 ; \ + while egrep -s 'Rerun (LaTeX|to get cross-references right)' refman.log && [ $$latex_count -gt 0 ] ;\ + do \ + echo "Rerunning latex...." ;\ + pdflatex refman.tex ;\ + latex_count=`expr $$latex_count - 1` ;\ + done + + +clean: + rm -f *.ps *.dvi *.aux *.toc *.idx *.ind *.ilg *.log *.out refman.pdf diff --git a/vendor/voclient/libsamp/doc/latex/annotated.tex b/vendor/voclient/libsamp/doc/latex/annotated.tex new file mode 100644 index 00000000..30770149 --- /dev/null +++ b/vendor/voclient/libsamp/doc/latex/annotated.tex @@ -0,0 +1,8 @@ +\section{Data Structures} +Here are the data structures with brief descriptions:\begin{CompactList} +\item\contentsline{section}{\hyperlink{structappMD}{appMD} }{\pageref{structappMD}}{} +\item\contentsline{section}{\hyperlink{structClient}{Client} }{\pageref{structClient}}{} +\item\contentsline{section}{\hyperlink{structHub}{Hub} }{\pageref{structHub}}{} +\item\contentsline{section}{\hyperlink{structSamp}{Samp} }{\pageref{structSamp}}{} +\item\contentsline{section}{\hyperlink{structSubs}{Subs} }{\pageref{structSubs}}{} +\end{CompactList} diff --git a/vendor/voclient/libsamp/doc/latex/doxygen.sty b/vendor/voclient/libsamp/doc/latex/doxygen.sty new file mode 100644 index 00000000..e36965b7 --- /dev/null +++ b/vendor/voclient/libsamp/doc/latex/doxygen.sty @@ -0,0 +1,97 @@ +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{doxygen} +\RequirePackage{calc} +\RequirePackage{array} +\RequirePackage{color} +\pagestyle{fancyplain} +\newcommand{\clearemptydoublepage}{\newpage{\pagestyle{empty}\cleardoublepage}} +\renewcommand{\chaptermark}[1]{\markboth{#1}{}} +\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}} +\lhead[\fancyplain{}{\bfseries\thepage}] + {\fancyplain{}{\bfseries\rightmark}} +\rhead[\fancyplain{}{\bfseries\leftmark}] + {\fancyplain{}{\bfseries\thepage}} +\rfoot[\fancyplain{}{\bfseries\scriptsize Generated on Wed Feb 27 21:10:15 2013 for SAMP Client Library by Doxygen }]{} +\lfoot[]{\fancyplain{}{\bfseries\scriptsize Generated on Wed Feb 27 21:10:15 2013 for SAMP Client Library by Doxygen }} +\cfoot{} +\newenvironment{Code} +{\footnotesize} +{\normalsize} +\newcommand{\doxyref}[3]{\textbf{#1} (\textnormal{#2}\,\pageref{#3})} +\newenvironment{DocInclude} +{\footnotesize} +{\normalsize} +\newenvironment{VerbInclude} +{\footnotesize} +{\normalsize} +\newenvironment{Image} +{\begin{figure}[H]} +{\end{figure}} +\newenvironment{ImageNoCaption}{}{} +\newenvironment{CompactList} +{\begin{list}{}{ + \setlength{\leftmargin}{0.5cm} + \setlength{\itemsep}{0pt} + \setlength{\parsep}{0pt} + \setlength{\topsep}{0pt} + \renewcommand{\makelabel}{\hfill}}} +{\end{list}} +\newenvironment{CompactItemize} +{ + \begin{itemize} + \setlength{\itemsep}{-3pt} + \setlength{\parsep}{0pt} + \setlength{\topsep}{0pt} + \setlength{\partopsep}{0pt} +} +{\end{itemize}} +\newcommand{\PBS}[1]{\let\temp=\\#1\let\\=\temp} +\newlength{\tmplength} +\newenvironment{TabularC}[1] +{ +\setlength{\tmplength} + {\linewidth/(#1)-\tabcolsep*2-\arrayrulewidth*(#1+1)/(#1)} + \par\begin{tabular*}{\linewidth} + {*{#1}{|>{\PBS\raggedright\hspace{0pt}}p{\the\tmplength}}|} +} +{\end{tabular*}\par} +\newcommand{\entrylabel}[1]{ + {\parbox[b]{\labelwidth-4pt}{\makebox[0pt][l]{\textbf{#1}}\vspace{1.5\baselineskip}}}} +\newenvironment{Desc} +{\begin{list}{} + { + \settowidth{\labelwidth}{40pt} + \setlength{\leftmargin}{\labelwidth} + \setlength{\parsep}{0pt} + \setlength{\itemsep}{-4pt} + \renewcommand{\makelabel}{\entrylabel} + } +} +{\end{list}} +\newenvironment{Indent} + {\begin{list}{}{\setlength{\leftmargin}{0.5cm}} + \item[]\ignorespaces} + {\unskip\end{list}} +\setlength{\parindent}{0cm} +\setlength{\parskip}{0.2cm} +\addtocounter{secnumdepth}{1} +\sloppy +\usepackage[T1]{fontenc} +\makeatletter +\renewcommand{\paragraph}{\@startsection{paragraph}{4}{0ex}% + {-3.25ex plus -1ex minus -0.2ex}% + {1.5ex plus 0.2ex}% + {\normalfont\normalsize\bfseries}} +\makeatother +\stepcounter{secnumdepth} +\stepcounter{tocdepth} +\definecolor{comment}{rgb}{0.5,0.0,0.0} +\definecolor{keyword}{rgb}{0.0,0.5,0.0} +\definecolor{keywordtype}{rgb}{0.38,0.25,0.125} +\definecolor{keywordflow}{rgb}{0.88,0.5,0.0} +\definecolor{preprocessor}{rgb}{0.5,0.38,0.125} +\definecolor{stringliteral}{rgb}{0.0,0.125,0.25} +\definecolor{charliteral}{rgb}{0.0,0.5,0.5} +\definecolor{vhdldigit}{rgb}{1.0,0.0,1.0} +\definecolor{vhdlkeyword}{rgb}{0.43,0.0,0.43} +\definecolor{vhdllogic}{rgb}{1.0,0.0,0.0} diff --git a/vendor/voclient/libsamp/doc/latex/files.tex b/vendor/voclient/libsamp/doc/latex/files.tex new file mode 100644 index 00000000..21ae5106 --- /dev/null +++ b/vendor/voclient/libsamp/doc/latex/files.tex @@ -0,0 +1,18 @@ +\section{File List} +Here is a list of all documented files with brief descriptions:\begin{CompactList} +\item\contentsline{section}{\hyperlink{samp_8c}{samp.c} (Top-level interface to the SAMP library )}{\pageref{samp_8c}}{} +\item\contentsline{section}{\hyperlink{samp_8h}{samp.h} (SAMP interface include file )}{\pageref{samp_8h}}{} +\item\contentsline{section}{\hyperlink{sampClient_8c}{sampClient.c} (\hyperlink{structClient}{Client} callable methods )}{\pageref{sampClient_8c}}{} +\item\contentsline{section}{\hyperlink{sampCommands_8c}{sampCommands.c} (SAMP commands used by app to send administrative messages )}{\pageref{sampCommands_8c}}{} +\item\contentsline{section}{\hyperlink{sampDecl_8h}{sampDecl.h} (SAMP interface method declarations )}{\pageref{sampDecl_8h}}{} +\item\contentsline{section}{\hyperlink{sampHandlers_8c}{sampHandlers.c} (Message handlers for the interface )}{\pageref{sampHandlers_8c}}{} +\item\contentsline{section}{\hyperlink{sampHub_8c}{sampHub.c} (Methods related to the SAMP \hyperlink{structHub}{Hub} interface )}{\pageref{sampHub_8c}}{} +\item\contentsline{section}{\hyperlink{sampList_8c}{sampList.c} ((Internal) interface to support the List structure )}{\pageref{sampList_8c}}{} +\item\contentsline{section}{\hyperlink{sampLog_8c}{sampLog.c} (SAMP trace and logging interface )}{\pageref{sampLog_8c}}{} +\item\contentsline{section}{\hyperlink{sampMap_8c}{sampMap.c} ((Internal) Interface to support the Map structure )}{\pageref{sampMap_8c}}{} +\item\contentsline{section}{\hyperlink{sampMethods_8c}{sampMethods.c} (SAMP methods implemented by a callable client )}{\pageref{sampMethods_8c}}{} +\item\contentsline{section}{\hyperlink{sampMsg_8c}{sampMsg.c} ((Internal) Interface to Message objects )}{\pageref{sampMsg_8c}}{} +\item\contentsline{section}{\hyperlink{sampMTypes_8c}{sampMTypes.c} (SAMP interface procedures for application mtypes )}{\pageref{sampMTypes_8c}}{} +\item\contentsline{section}{\hyperlink{sampParam_8c}{sampParam.c} ((Internal) Interface to Param objects )}{\pageref{sampParam_8c}}{} +\item\contentsline{section}{\hyperlink{sampUtil_8c}{sampUtil.c} (Utility methods to convert struct pointers to user handles )}{\pageref{sampUtil_8c}}{} +\end{CompactList} diff --git a/vendor/voclient/libsamp/doc/latex/refman.tex b/vendor/voclient/libsamp/doc/latex/refman.tex new file mode 100644 index 00000000..9f3cb083 --- /dev/null +++ b/vendor/voclient/libsamp/doc/latex/refman.tex @@ -0,0 +1,80 @@ +\documentclass[letterpaper]{book} +\usepackage{makeidx} +\usepackage{fancyhdr} +\usepackage{graphicx} +\usepackage{multicol} +\usepackage{float} +\usepackage{listings} +\usepackage{color} +\usepackage{textcomp} +\usepackage{alltt} +\usepackage{times} +\usepackage{ifpdf} +\ifpdf +\usepackage[pdftex, + pagebackref=true, + colorlinks=true, + linkcolor=blue, + unicode + ]{hyperref} +\else +\usepackage[ps2pdf, + pagebackref=true, + colorlinks=true, + linkcolor=blue, + unicode + ]{hyperref} +\usepackage{pspicture} +\fi +\usepackage[utf8]{inputenc} +\usepackage{doxygen} +\lstset{language=C++,inputencoding=utf8,basicstyle=\footnotesize,breaklines=true,breakatwhitespace=true,tabsize=4,numbers=left } +\makeindex +\setcounter{tocdepth}{3} +\renewcommand{\footrulewidth}{0.4pt} +\begin{document} +\hypersetup{pageanchor=false} +\begin{titlepage} +\vspace*{7cm} +\begin{center} +{\Large SAMP Client Library \\[1ex]\large v1.0 }\\ +\vspace*{1cm} +{\large Generated by Doxygen 1.5.9}\\ +\vspace*{0.5cm} +{\small Wed Feb 27 21:10:15 2013}\\ +\end{center} +\end{titlepage} +\clearemptydoublepage +\pagenumbering{roman} +\tableofcontents +\clearemptydoublepage +\pagenumbering{arabic} +\hypersetup{pageanchor=true} +\chapter{Data Structure Index} +\input{annotated} +\chapter{File Index} +\input{files} +\chapter{Data Structure Documentation} +\input{structappMD} +\include{structClient} +\include{structHub} +\include{structSamp} +\include{structSubs} +\chapter{File Documentation} +\input{samp_8c} +\include{samp_8h} +\include{sampClient_8c} +\include{sampCommands_8c} +\include{sampDecl_8h} +\include{sampHandlers_8c} +\include{sampHub_8c} +\include{sampList_8c} +\include{sampLog_8c} +\include{sampMap_8c} +\include{sampMethods_8c} +\include{sampMsg_8c} +\include{sampMTypes_8c} +\include{sampParam_8c} +\include{sampUtil_8c} +\printindex +\end{document} diff --git a/vendor/voclient/libsamp/doc/latex/sampClient_8c.tex b/vendor/voclient/libsamp/doc/latex/sampClient_8c.tex new file mode 100644 index 00000000..38107a42 --- /dev/null +++ b/vendor/voclient/libsamp/doc/latex/sampClient_8c.tex @@ -0,0 +1,246 @@ +\hypertarget{sampClient_8c}{ +\section{sampClient.c File Reference} +\label{sampClient_8c}\index{sampClient.c@{sampClient.c}} +} +\hyperlink{structClient}{Client} callable methods. + + +{\tt \#include $<$stdlib.h$>$}\par +{\tt \#include $<$stdio.h$>$}\par +{\tt \#include $<$unistd.h$>$}\par +{\tt \#include $<$string.h$>$}\par +{\tt \#include \char`\"{}samp.h\char`\"{}}\par +\subsection*{Functions} +\begin{CompactItemize} +\item +void \hyperlink{sampClient_8c_c73788ae17493c4042948f6b861ddd74}{samp\_\-notify} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recipId, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg) +\begin{CompactList}\small\item\em Make a notify() call to the \hyperlink{structHub}{Hub}. \item\end{CompactList}\item +\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} \hyperlink{sampClient_8c_f48228224c20ddaf8b4b4ce39fa6ec16}{samp\_\-notifyAll} (handle\_\-t handle, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg) +\begin{CompactList}\small\item\em Make a notifyAll() call to the \hyperlink{structHub}{Hub}. \item\end{CompactList}\item +\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} \hyperlink{sampClient_8c_68d7703657197a3d9256729cf2971033}{samp\_\-call} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recipId, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-tag, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg) +\begin{CompactList}\small\item\em Make a call() call to the \hyperlink{structHub}{Hub}. \item\end{CompactList}\item +int \hyperlink{sampClient_8c_66d67a1ba0dff1f6dab68f74299f500a}{samp\_\-callAll} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-tag, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg) +\begin{CompactList}\small\item\em Make a callAll() call to the \hyperlink{structHub}{Hub}. \item\end{CompactList}\item +int \hyperlink{sampClient_8c_6780568b9e9dfae5b361c2b2e52c16ed}{samp\_\-callAndWait} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recipId, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-tag, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg) +\begin{CompactList}\small\item\em Make a callAndWait() call to the \hyperlink{structHub}{Hub}. \item\end{CompactList}\item +int \hyperlink{sampClient_8c_ae0a6eaf06027e28ade8865196f1e2c6}{samp\_\-Reply} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} response) +\begin{CompactList}\small\item\em Reply to a message. \item\end{CompactList}\item +\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} \hyperlink{sampClient_8c_0a996f4e24693c2eacba579ecbceedbb}{samp\_\-clientName} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} pubId) +\begin{CompactList}\small\item\em Get the \hyperlink{structClient}{Client} name from a pubic-id. \item\end{CompactList}\item +int \hyperlink{sampClient_8c_91aeabe77e920fc1924b1cdc4f088e64}{samp\_\-setErr} (handle\_\-t handle, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} resp) +\begin{CompactList}\small\item\em Set the error response string. \item\end{CompactList}\item +\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} \hyperlink{sampClient_8c_4946a754670217dbdbc83cca92217022}{samp\_\-getErr} (handle\_\-t handle) +\begin{CompactList}\small\item\em Get the error response string. \item\end{CompactList}\end{CompactItemize} + + +\label{_details} +\hypertarget{_details}{} +\subsection{Detailed Description} +\hyperlink{structClient}{Client} callable methods. + +SAMPCLIENT.C -- \hyperlink{structClient}{Client} callable methods. + +samp\_\-notify (handle, recipId, msg\_\-map) list = samp\_\-notifyAll (handle, msg\_\-map) str = samp\_\-call (handle, recipId, tag, msg\_\-map) map = samp\_\-callAll (handle, msg\_\-tag, msg\_\-map) map = samp\_\-callAndWait (handle, recipId, msg\_\-tag, msg\_\-map) stat = samp\_\-Reply (handle, msg\_\-id, resp\_\-map) + +str = samp\_\-clientName (handle, pubId) stat = samp\_\-setErr (handle, resp\_\-map) str = samp\_\-getErr (handle) + +\begin{Desc} +\item[Author:]Mike Fitzpatrick \end{Desc} +\begin{Desc} +\item[Date:]7/10/11 \end{Desc} + + +\subsection{Function Documentation} +\hypertarget{sampClient_8c_68d7703657197a3d9256729cf2971033}{ +\index{sampClient.c@{sampClient.c}!samp\_\-call@{samp\_\-call}} +\index{samp\_\-call@{samp\_\-call}!sampClient.c@{sampClient.c}} +\subsubsection[{samp\_\-call}]{\setlength{\rightskip}{0pt plus 5cm}{\bf String} samp\_\-call (handle\_\-t {\em handle}, \/ {\bf String} {\em recipId}, \/ {\bf String} {\em msg\_\-tag}, \/ {\bf Map} {\em msg})}} +\label{sampClient_8c_68d7703657197a3d9256729cf2971033} + + +Make a call() call to the \hyperlink{structHub}{Hub}. + +SAMP\_\-CALL -- Make a call() call to the \hyperlink{structHub}{Hub} + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recipId}]recipient ID \item[{\em msg\_\-tag}]message tag \item[{\em msg}]message map \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]message ID \end{Desc} + + +References Samp::debug, Samp::errortxt, Samp::hub, hub, Hub::id, Hub::privateKey, samp\_\-app2id(), and Samp::trace. + +Referenced by samp\_\-sendMsg().\hypertarget{sampClient_8c_66d67a1ba0dff1f6dab68f74299f500a}{ +\index{sampClient.c@{sampClient.c}!samp\_\-callAll@{samp\_\-callAll}} +\index{samp\_\-callAll@{samp\_\-callAll}!sampClient.c@{sampClient.c}} +\subsubsection[{samp\_\-callAll}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-callAll (handle\_\-t {\em handle}, \/ {\bf String} {\em msg\_\-tag}, \/ {\bf Map} {\em msg})}} +\label{sampClient_8c_66d67a1ba0dff1f6dab68f74299f500a} + + +Make a callAll() call to the \hyperlink{structHub}{Hub}. + +SAMP\_\-CALLALL -- Make a callAll() call to the \hyperlink{structHub}{Hub} + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em msg\_\-tag}]message tag \item[{\em msg}]message map \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::debug, Samp::errortxt, Samp::hub, hub, Hub::id, Hub::privateKey, samp\_\-setErr(), and Samp::trace. + +Referenced by samp\_\-Ping(), and samp\_\-sendMsg().\hypertarget{sampClient_8c_6780568b9e9dfae5b361c2b2e52c16ed}{ +\index{sampClient.c@{sampClient.c}!samp\_\-callAndWait@{samp\_\-callAndWait}} +\index{samp\_\-callAndWait@{samp\_\-callAndWait}!sampClient.c@{sampClient.c}} +\subsubsection[{samp\_\-callAndWait}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-callAndWait (handle\_\-t {\em handle}, \/ {\bf String} {\em recipId}, \/ {\bf String} {\em msg\_\-tag}, \/ {\bf Map} {\em msg})}} +\label{sampClient_8c_6780568b9e9dfae5b361c2b2e52c16ed} + + +Make a callAndWait() call to the \hyperlink{structHub}{Hub}. + +SAMP\_\-CALLANDWAIT -- Make a callAndWait() call to the \hyperlink{structHub}{Hub} + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recipId}]recipient ID \item[{\em msg\_\-tag}]message tag \item[{\em msg}]message map \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::debug, Samp::errortxt, Samp::hub, hub, Hub::id, Hub::privateKey, samp\_\-app2id(), samp\_\-setErr(), Hub::timeout, and Samp::trace. + +Referenced by samp\_\-Ping(), and samp\_\-sendMsg().\hypertarget{sampClient_8c_0a996f4e24693c2eacba579ecbceedbb}{ +\index{sampClient.c@{sampClient.c}!samp\_\-clientName@{samp\_\-clientName}} +\index{samp\_\-clientName@{samp\_\-clientName}!sampClient.c@{sampClient.c}} +\subsubsection[{samp\_\-clientName}]{\setlength{\rightskip}{0pt plus 5cm}{\bf String} samp\_\-clientName (handle\_\-t {\em handle}, \/ {\bf String} {\em pubId})}} +\label{sampClient_8c_0a996f4e24693c2eacba579ecbceedbb} + + +Get the \hyperlink{structClient}{Client} name from a pubic-id. + +SAMP\_\-CLIENTNAME -- Get the \hyperlink{structClient}{Client} name from a pubic-id. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em pubId}]public ID \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]declared application name \end{Desc} +\hypertarget{sampClient_8c_4946a754670217dbdbc83cca92217022}{ +\index{sampClient.c@{sampClient.c}!samp\_\-getErr@{samp\_\-getErr}} +\index{samp\_\-getErr@{samp\_\-getErr}!sampClient.c@{sampClient.c}} +\subsubsection[{samp\_\-getErr}]{\setlength{\rightskip}{0pt plus 5cm}{\bf String} samp\_\-getErr (handle\_\-t {\em handle})}} +\label{sampClient_8c_4946a754670217dbdbc83cca92217022} + + +Get the error response string. + +SAMP\_\-GETERR -- Get the error response string. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]Error text string \end{Desc} + + +References Samp::errortxt.\hypertarget{sampClient_8c_c73788ae17493c4042948f6b861ddd74}{ +\index{sampClient.c@{sampClient.c}!samp\_\-notify@{samp\_\-notify}} +\index{samp\_\-notify@{samp\_\-notify}!sampClient.c@{sampClient.c}} +\subsubsection[{samp\_\-notify}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-notify (handle\_\-t {\em handle}, \/ {\bf String} {\em recipId}, \/ {\bf Map} {\em msg})}} +\label{sampClient_8c_c73788ae17493c4042948f6b861ddd74} + + +Make a notify() call to the \hyperlink{structHub}{Hub}. + +SAMP\_\-NOTIFY -- Make a notify() call to the \hyperlink{structHub}{Hub} + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recipId}]recipient ID \item[{\em msg}]message map \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::hub, hub, Hub::id, Hub::privateKey, samp\_\-app2id(), and samp\_\-nullResponse(). + +Referenced by samp\_\-sendMsg().\hypertarget{sampClient_8c_f48228224c20ddaf8b4b4ce39fa6ec16}{ +\index{sampClient.c@{sampClient.c}!samp\_\-notifyAll@{samp\_\-notifyAll}} +\index{samp\_\-notifyAll@{samp\_\-notifyAll}!sampClient.c@{sampClient.c}} +\subsubsection[{samp\_\-notifyAll}]{\setlength{\rightskip}{0pt plus 5cm}{\bf List} samp\_\-notifyAll (handle\_\-t {\em handle}, \/ {\bf Map} {\em msg})}} +\label{sampClient_8c_f48228224c20ddaf8b4b4ce39fa6ec16} + + +Make a notifyAll() call to the \hyperlink{structHub}{Hub}. + +SAMP\_\-NOTIFYALL -- Make a notifyAll() call to the \hyperlink{structHub}{Hub} + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em msg}]message map \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::debug, Samp::errortxt, Samp::hub, hub, Hub::id, Hub::privateKey, and Samp::trace. + +Referenced by samp\_\-sendMsg().\hypertarget{sampClient_8c_ae0a6eaf06027e28ade8865196f1e2c6}{ +\index{sampClient.c@{sampClient.c}!samp\_\-Reply@{samp\_\-Reply}} +\index{samp\_\-Reply@{samp\_\-Reply}!sampClient.c@{sampClient.c}} +\subsubsection[{samp\_\-Reply}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-Reply (handle\_\-t {\em handle}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em response})}} +\label{sampClient_8c_ae0a6eaf06027e28ade8865196f1e2c6} + + +Reply to a message. + +SAMP\_\-REPLY -- Reply to a message. All we do here is send the reply message, we require that the response Map already be defined. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em msg\_\-id}]message ID \item[{\em response}]response map \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::hub, hub, Hub::id, Hub::privateKey, and samp\_\-nullResponse(). + +Referenced by samp\_\-receiveCall().\hypertarget{sampClient_8c_91aeabe77e920fc1924b1cdc4f088e64}{ +\index{sampClient.c@{sampClient.c}!samp\_\-setErr@{samp\_\-setErr}} +\index{samp\_\-setErr@{samp\_\-setErr}!sampClient.c@{sampClient.c}} +\subsubsection[{samp\_\-setErr}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-setErr (handle\_\-t {\em handle}, \/ {\bf Map} {\em resp})}} +\label{sampClient_8c_91aeabe77e920fc1924b1cdc4f088e64} + + +Set the error response string. + +SAMP\_\-SETERR -- Set the error response string/code. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em resp}]Response map \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::errortxt. + +Referenced by samp\_\-callAll(), samp\_\-callAndWait(), samp\_\-Ping(), and samp\_\-sendMsg(). \ No newline at end of file diff --git a/vendor/voclient/libsamp/doc/latex/sampCommands_8c.tex b/vendor/voclient/libsamp/doc/latex/sampCommands_8c.tex new file mode 100644 index 00000000..820518e9 --- /dev/null +++ b/vendor/voclient/libsamp/doc/latex/sampCommands_8c.tex @@ -0,0 +1,223 @@ +\hypertarget{sampCommands_8c}{ +\section{sampCommands.c File Reference} +\label{sampCommands_8c}\index{sampCommands.c@{sampCommands.c}} +} +SAMP commands used by app to send administrative messages. + + +{\tt \#include $<$stdlib.h$>$}\par +{\tt \#include $<$stdio.h$>$}\par +{\tt \#include $<$unistd.h$>$}\par +{\tt \#include $<$string.h$>$}\par +{\tt \#include $<$time.h$>$}\par +{\tt \#include $<$ctype.h$>$}\par +{\tt \#include \char`\"{}samp.h\char`\"{}}\par +\subsection*{Functions} +\begin{CompactItemize} +\item +int \hyperlink{sampCommands_8c_84ffd50bd4b8dc79e9cf32398c6b3d69}{samp\_\-Register} (handle\_\-t handle) +\begin{CompactList}\small\item\em Register with the \hyperlink{structHub}{Hub} using the currently stored metadata. \item\end{CompactList}\item +int \hyperlink{sampCommands_8c_106fc27544de7c25625ed60eb48e4edd}{samp\_\-UnRegister} (handle\_\-t handle) +\begin{CompactList}\small\item\em Un-Register from the hub. \item\end{CompactList}\item +int \hyperlink{sampCommands_8c_9c6024ae76103069355256c29ee22722}{samp\_\-DeclareMetadata} (handle\_\-t handle) +\begin{CompactList}\small\item\em (Re)Declare all of our metadata. \item\end{CompactList}\item +int \hyperlink{sampCommands_8c_2be0812dc8d34c68407c62762f727c51}{samp\_\-Ping} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} appName) +\begin{CompactList}\small\item\em Ping the hub/app to see if it is alive (returns $>$0). \item\end{CompactList}\item +\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} \hyperlink{sampCommands_8c_2ac4b5c50094c394a74f18d6ebe3cd91}{samp\_\-GetMetadata} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} pubId) +\begin{CompactList}\small\item\em Get the metadata for a specified app. \item\end{CompactList}\item +int \hyperlink{sampCommands_8c_d2b0bdea58688142f55faeffcfc65525}{samp\_\-DeclareSubscriptions} (handle\_\-t handle) +\begin{CompactList}\small\item\em Declare the messages we're interested in. \item\end{CompactList}\item +\hypertarget{sampCommands_8c_c4f65b6315c8bd7380176d2b97462354}{ +\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} \textbf{samp\_\-GetSubscriptions} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} pubId)} +\label{sampCommands_8c_c4f65b6315c8bd7380176d2b97462354} + +\item +\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} \hyperlink{sampCommands_8c_954712a523e3f86826b4711abd35b165}{samp\_\-GetRegisteredClients} (handle\_\-t handle) +\begin{CompactList}\small\item\em Get public-ids of the registered clients. \item\end{CompactList}\item +\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} \hyperlink{sampCommands_8c_367a24fc0aa7a81416e6a0d0dbfcd93f}{samp\_\-GetSubscribedClients} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype) +\begin{CompactList}\small\item\em Get clients matching the mtype subscription. \item\end{CompactList}\end{CompactItemize} + + +\label{_details} +\hypertarget{_details}{} +\subsection{Detailed Description} +SAMP commands used by app to send administrative messages. + +SAMPCOMMANDS.C -- SAMP commands used by app to send administrative messages. + +stat = samp\_\-Register (handle) stat = samp\_\-UnRegister (handle) stat = samp\_\-DeclareMetadata (handle) stat = samp\_\-Ping (handle, appName) map = samp\_\-GetMetadata (handle, pubId) samp\_\-DeclareSubscriptions (handle) map = samp\_\-GetSubscriptions (handle) list = samp\_\-GetRegisteredClients (handle) list = samp\_\-GetSubscribedClients (handle, mtype) + +\begin{Desc} +\item[Author:]Mike Fitzpatrick \end{Desc} +\begin{Desc} +\item[Date:]7/10/11 \end{Desc} + + +\subsection{Function Documentation} +\hypertarget{sampCommands_8c_9c6024ae76103069355256c29ee22722}{ +\index{sampCommands.c@{sampCommands.c}!samp\_\-DeclareMetadata@{samp\_\-DeclareMetadata}} +\index{samp\_\-DeclareMetadata@{samp\_\-DeclareMetadata}!sampCommands.c@{sampCommands.c}} +\subsubsection[{samp\_\-DeclareMetadata}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-DeclareMetadata (handle\_\-t {\em handle})}} +\label{sampCommands_8c_9c6024ae76103069355256c29ee22722} + + +(Re)Declare all of our metadata. + +SAMP\_\-DECLAREMETATA -- (Re)Declare all of our metadata. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::hub, hub, and samp\_\-hubDeclareMetadata().\hypertarget{sampCommands_8c_d2b0bdea58688142f55faeffcfc65525}{ +\index{sampCommands.c@{sampCommands.c}!samp\_\-DeclareSubscriptions@{samp\_\-DeclareSubscriptions}} +\index{samp\_\-DeclareSubscriptions@{samp\_\-DeclareSubscriptions}!sampCommands.c@{sampCommands.c}} +\subsubsection[{samp\_\-DeclareSubscriptions}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-DeclareSubscriptions (handle\_\-t {\em handle})}} +\label{sampCommands_8c_d2b0bdea58688142f55faeffcfc65525} + + +Declare the messages we're interested in. + +SAMP\_\-DECLARESUBSCRIPIONS -- Declare the messages we're interested in. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::hub, hub, and samp\_\-hubDeclareSubscriptions(). + +Referenced by samp\_\-Unsubscribe().\hypertarget{sampCommands_8c_2ac4b5c50094c394a74f18d6ebe3cd91}{ +\index{sampCommands.c@{sampCommands.c}!samp\_\-GetMetadata@{samp\_\-GetMetadata}} +\index{samp\_\-GetMetadata@{samp\_\-GetMetadata}!sampCommands.c@{sampCommands.c}} +\subsubsection[{samp\_\-GetMetadata}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Map} samp\_\-GetMetadata (handle\_\-t {\em handle}, \/ {\bf String} {\em pubId})}} +\label{sampCommands_8c_2ac4b5c50094c394a74f18d6ebe3cd91} + + +Get the metadata for a specified app. + +SAMP\_\-GETMETADATA -- Get the metadata for a specified app. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em pubId}]App public-id \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]Map to message response \end{Desc} + + +References Samp::errortxt, Samp::hub, hub, Hub::id, and Hub::privateKey. + +Referenced by samp\_\-mapClients().\hypertarget{sampCommands_8c_954712a523e3f86826b4711abd35b165}{ +\index{sampCommands.c@{sampCommands.c}!samp\_\-GetRegisteredClients@{samp\_\-GetRegisteredClients}} +\index{samp\_\-GetRegisteredClients@{samp\_\-GetRegisteredClients}!sampCommands.c@{sampCommands.c}} +\subsubsection[{samp\_\-GetRegisteredClients}]{\setlength{\rightskip}{0pt plus 5cm}{\bf List} samp\_\-GetRegisteredClients (handle\_\-t {\em handle})}} +\label{sampCommands_8c_954712a523e3f86826b4711abd35b165} + + +Get public-ids of the registered clients. + +SAMP\_\-GETREGISTEREDCLIENTS -- Get public-ids of the registered clients. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]handle to list of registered clients \end{Desc} + + +References Samp::hub, Hub::id, Hub::privateKey, samp\_\-listLen(), samp\_\-newList(), and samp\_\-setStringInList(). + +Referenced by samp\_\-mapClients().\hypertarget{sampCommands_8c_367a24fc0aa7a81416e6a0d0dbfcd93f}{ +\index{sampCommands.c@{sampCommands.c}!samp\_\-GetSubscribedClients@{samp\_\-GetSubscribedClients}} +\index{samp\_\-GetSubscribedClients@{samp\_\-GetSubscribedClients}!sampCommands.c@{sampCommands.c}} +\subsubsection[{samp\_\-GetSubscribedClients}]{\setlength{\rightskip}{0pt plus 5cm}{\bf List} samp\_\-GetSubscribedClients (handle\_\-t {\em handle}, \/ {\bf String} {\em mtype})}} +\label{sampCommands_8c_367a24fc0aa7a81416e6a0d0dbfcd93f} + + +Get clients matching the mtype subscription. + +SAMP\_\-GETSUBSCRIBEDCLIENTS -- Get clients matching the mtype subscription. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em mtype}]mtype string \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]handle to list of clients having mtype subscription \end{Desc} + + +References Samp::hub, Hub::id, Hub::privateKey, samp\_\-listLen(), samp\_\-newList(), and samp\_\-setStringInList().\hypertarget{sampCommands_8c_2be0812dc8d34c68407c62762f727c51}{ +\index{sampCommands.c@{sampCommands.c}!samp\_\-Ping@{samp\_\-Ping}} +\index{samp\_\-Ping@{samp\_\-Ping}!sampCommands.c@{sampCommands.c}} +\subsubsection[{samp\_\-Ping}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-Ping (handle\_\-t {\em handle}, \/ {\bf String} {\em appName})}} +\label{sampCommands_8c_2be0812dc8d34c68407c62762f727c51} + + +Ping the hub/app to see if it is alive (returns $>$0). + +SAMP\_\-PING -- Ping the hub/app to see if it is alive (returns $>$0). + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em appName}]application name \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]OK or ERR if no response \end{Desc} + + +References Samp::hub, samp\_\-app2id(), samp\_\-callAll(), samp\_\-callAndWait(), samp\_\-freeMap(), samp\_\-freeMsg(), samp\_\-hubPing(), samp\_\-msgParam(), samp\_\-newMsg(), samp\_\-newParam(), and samp\_\-setErr().\hypertarget{sampCommands_8c_84ffd50bd4b8dc79e9cf32398c6b3d69}{ +\index{sampCommands.c@{sampCommands.c}!samp\_\-Register@{samp\_\-Register}} +\index{samp\_\-Register@{samp\_\-Register}!sampCommands.c@{sampCommands.c}} +\subsubsection[{samp\_\-Register}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-Register (handle\_\-t {\em handle})}} +\label{sampCommands_8c_84ffd50bd4b8dc79e9cf32398c6b3d69} + + +Register with the \hyperlink{structHub}{Hub} using the currently stored metadata. + +SAMP\_\-REGISTER -- Register with the \hyperlink{structHub}{Hub} using the currently stored metadata. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::hub, hub, Hub::hubId, Hub::id, Hub::privateKey, samp\_\-replyStatus(), Hub::secret, and Hub::selfId.\hypertarget{sampCommands_8c_106fc27544de7c25625ed60eb48e4edd}{ +\index{sampCommands.c@{sampCommands.c}!samp\_\-UnRegister@{samp\_\-UnRegister}} +\index{samp\_\-UnRegister@{samp\_\-UnRegister}!sampCommands.c@{sampCommands.c}} +\subsubsection[{samp\_\-UnRegister}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-UnRegister (handle\_\-t {\em handle})}} +\label{sampCommands_8c_106fc27544de7c25625ed60eb48e4edd} + + +Un-Register from the hub. + +SAMP\_\-UNREGISTER -- Un-Register from the hub. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::hub, hub, and samp\_\-hubUnRegister(). \ No newline at end of file diff --git a/vendor/voclient/libsamp/doc/latex/sampDecl_8h.tex b/vendor/voclient/libsamp/doc/latex/sampDecl_8h.tex new file mode 100644 index 00000000..6cde2e60 --- /dev/null +++ b/vendor/voclient/libsamp/doc/latex/sampDecl_8h.tex @@ -0,0 +1,3333 @@ +\hypertarget{sampDecl_8h}{ +\section{sampDecl.h File Reference} +\label{sampDecl_8h}\index{sampDecl.h@{sampDecl.h}} +} +SAMP interface method declarations. + + +\subsection*{Data Structures} +\begin{CompactItemize} +\item +struct \hyperlink{structappMD}{appMD} +\item +struct \hyperlink{structSubs}{Subs} +\item +struct \hyperlink{structClient}{Client} +\item +struct \hyperlink{structHub}{Hub} +\item +struct \hyperlink{structSamp}{Samp} +\end{CompactItemize} +\subsection*{Defines} +\begin{CompactItemize} +\item +\#define \hyperlink{sampDecl_8h_6fc88d7dbc85d8d10379f58c910ce847}{SZ\_\-NAME}~256 +\item +\hypertarget{sampDecl_8h_32108415ff44b6f7537b9516f4a84be7}{ +\#define \textbf{SZ\_\-LINE}~256} +\label{sampDecl_8h_32108415ff44b6f7537b9516f4a84be7} + +\item +\hypertarget{sampDecl_8h_7b6cc171ab550fcd6c34d92e010fcec3}{ +\#define \textbf{SZ\_\-SECRET}~64} +\label{sampDecl_8h_7b6cc171ab550fcd6c34d92e010fcec3} + +\item +\hypertarget{sampDecl_8h_3e01a6ceff717c54fca995bb444611a8}{ +\#define \textbf{SZ\_\-DESC}~8192} +\label{sampDecl_8h_3e01a6ceff717c54fca995bb444611a8} + +\item +\hypertarget{sampDecl_8h_76e806c1a560659f0c849d427b64644a}{ +\#define \textbf{SZ\_\-URL}~1024} +\label{sampDecl_8h_76e806c1a560659f0c849d427b64644a} + +\item +\hypertarget{sampDecl_8h_08329a2ecb12005e4089db9f336bde2a}{ +\#define \textbf{SZ\_\-CMD}~1024} +\label{sampDecl_8h_08329a2ecb12005e4089db9f336bde2a} + +\item +\hypertarget{sampDecl_8h_6e5a1caf522da4cb934712482b0aed5b}{ +\#define \textbf{MAX\_\-SAMPS}~16} +\label{sampDecl_8h_6e5a1caf522da4cb934712482b0aed5b} + +\item +\hypertarget{sampDecl_8h_aeadc2a66777c5ca1a67bca1bc4648c5}{ +\#define \textbf{MAX\_\-HUBS}~16} +\label{sampDecl_8h_aeadc2a66777c5ca1a67bca1bc4648c5} + +\item +\hypertarget{sampDecl_8h_0543164fb84dcec0c53c79671c473519}{ +\#define \textbf{MAX\_\-MDATTRS}~32} +\label{sampDecl_8h_0543164fb84dcec0c53c79671c473519} + +\item +\hypertarget{sampDecl_8h_4cecb71b936e9c443f548540fb7a54ff}{ +\#define \textbf{MAX\_\-SUBS}~256} +\label{sampDecl_8h_4cecb71b936e9c443f548540fb7a54ff} + +\item +\hypertarget{sampDecl_8h_0a8f91f93d75a07f0ae45077db45b3eb}{ +\#define \textbf{MAX\_\-CLIENTS}~32} +\label{sampDecl_8h_0a8f91f93d75a07f0ae45077db45b3eb} + +\item +\hypertarget{sampDecl_8h_3b94af9dcb0358f28d175d80eed98330}{ +\#define \textbf{MAX\_\-ROWS}~256} +\label{sampDecl_8h_3b94af9dcb0358f28d175d80eed98330} + +\item +\hypertarget{sampDecl_8h_400c6ad9a4514ac728ef6f26c41e26df}{ +\#define \textbf{MSG\_\-SYNC}~0} +\label{sampDecl_8h_400c6ad9a4514ac728ef6f26c41e26df} + +\item +\hypertarget{sampDecl_8h_f38b71e9d650543379f59e8f7ade60c8}{ +\#define \textbf{MSG\_\-ASYNC}~1} +\label{sampDecl_8h_f38b71e9d650543379f59e8f7ade60c8} + +\item +\hypertarget{sampDecl_8h_ee5730f808625a70be4589312bd6c9ab}{ +\#define \textbf{MSG\_\-NOTIFY}~2} +\label{sampDecl_8h_ee5730f808625a70be4589312bd6c9ab} + +\item +\hypertarget{sampDecl_8h_5ce6908d24bcc91b57bc9ac9923a3855}{ +\#define \textbf{DEF\_\-CALLMODE}~MSG\_\-ASYNC} +\label{sampDecl_8h_5ce6908d24bcc91b57bc9ac9923a3855} + +\end{CompactItemize} +\subsection*{Typedefs} +\begin{CompactItemize} +\item +\hypertarget{sampDecl_8h_578aa9310452ad28beded7f62bbb46b0}{ +typedef XINT \textbf{handle\_\-t}} +\label{sampDecl_8h_578aa9310452ad28beded7f62bbb46b0} + +\item +typedef int \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} +\item +typedef int \hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} +\item +typedef int \hyperlink{sampDecl_8h_eb3d03dd240212c044285bdd522e3b2b}{Msg} +\item +typedef int \hyperlink{sampDecl_8h_4c5a7aff173725461e76e5f0183d7ed8}{Param} +\item +typedef char $\ast$ \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} +\item +\hypertarget{sampDecl_8h_cc13f9a2430a2e5b4d08f22a005c28ca}{ +typedef struct \hyperlink{structappMD}{appMD} $\ast$ \textbf{appMDP}} +\label{sampDecl_8h_cc13f9a2430a2e5b4d08f22a005c28ca} + +\item +\hypertarget{sampDecl_8h_5f6c3b3319ba8bd60a15bac1b8fe9a96}{ +typedef struct \hyperlink{structSubs}{Subs} $\ast$ \textbf{SubsP}} +\label{sampDecl_8h_5f6c3b3319ba8bd60a15bac1b8fe9a96} + +\item +\hypertarget{sampDecl_8h_46ebb9354eb637730c6acd2818807321}{ +typedef struct \hyperlink{structClient}{Client} $\ast$ \textbf{ClientP}} +\label{sampDecl_8h_46ebb9354eb637730c6acd2818807321} + +\item +\hypertarget{sampDecl_8h_cf8156b03ce4e66cd90203b1038112a8}{ +typedef struct \hyperlink{structHub}{Hub} $\ast$ \textbf{HubP}} +\label{sampDecl_8h_cf8156b03ce4e66cd90203b1038112a8} + +\item +\hypertarget{sampDecl_8h_159006987ca77a172c19bd254cb6f1c5}{ +typedef struct \hyperlink{structSamp}{Samp} $\ast$ \textbf{SampP}} +\label{sampDecl_8h_159006987ca77a172c19bd254cb6f1c5} + +\end{CompactItemize} +\subsection*{Functions} +\begin{CompactItemize} +\item +handle\_\-t \hyperlink{sampDecl_8h_30f39c72c3783055faa82ad3860f3d1d}{sampInit} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} appName, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} description) +\begin{CompactList}\small\item\em Initialize the SAMP interface. \item\end{CompactList}\item +void \hyperlink{sampDecl_8h_2e77115e730e95b31d897b8c50999b74}{samp\_\-Metadata} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} field, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} value) +\begin{CompactList}\small\item\em Set a metadata field value for the application. \item\end{CompactList}\item +void \hyperlink{sampDecl_8h_c6b76655d73825acdacfac8b5a1139ee}{samp\_\-Subscribe} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, void $\ast$func) +\begin{CompactList}\small\item\em Subscribe to a given mtype. \item\end{CompactList}\item +void \hyperlink{sampDecl_8h_b3fded97bbbf3751c4916543959f16a5}{samp\_\-Unsubscribe} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype) +\begin{CompactList}\small\item\em Unsubscribe to a given mtype. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_8e18ae12df031094ace47863f93b3634}{sampStartup} (handle\_\-t handle) +\begin{CompactList}\small\item\em Startup the SAMP interface to send/receive messages. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_65908d088c8b917d10db38c147590ad9}{sampShutdown} (handle\_\-t handle) +\begin{CompactList}\small\item\em Shut down the active SAMP interface. \item\end{CompactList}\item +void \hyperlink{sampDecl_8h_123413db26ad50a84bd41863af5deae5}{sampClose} (handle\_\-t handle) +\begin{CompactList}\small\item\em Close the SAMP interface and free resources. \item\end{CompactList}\item +void \hyperlink{sampDecl_8h_1d00dc78292cfbc01262ef65ab055063}{samp\_\-setSyncMode} (handle\_\-t handle) +\begin{CompactList}\small\item\em Set the calling mode to use synchronous messaging. \item\end{CompactList}\item +void \hyperlink{sampDecl_8h_a9aef12dd82bfd38a2382a4ac88c54af}{samp\_\-setASyncMode} (handle\_\-t handle) +\begin{CompactList}\small\item\em Set the calling mode to use asynchronous messaging. \item\end{CompactList}\item +void \hyperlink{sampDecl_8h_9056a8601300892f918835259c7fdb3b}{samp\_\-setNotifyMode} (handle\_\-t handle) +\begin{CompactList}\small\item\em Set the calling mode to use notification messaging. \item\end{CompactList}\item +void \hyperlink{sampDecl_8h_d4c1514e94c9ef511cfcd27004c38c4d}{samp\_\-setCallByRef} (handle\_\-t handle) +\begin{CompactList}\small\item\em Have interface call user handlers by reference. \item\end{CompactList}\item +void \hyperlink{sampDecl_8h_fc27715ec9a5cb60cf0b5415eb7f9a48}{samp\_\-setCallMode} (handle\_\-t handle, int mode) +\begin{CompactList}\small\item\em Set the default calling mode (synch or asynch). \item\end{CompactList}\item +void \hyperlink{sampDecl_8h_a3c0bdb4c512357dbc53b0ad7a7d5b01}{samp\_\-setReplyCallback} (handle\_\-t handle, int $\ast$func) +\begin{CompactList}\small\item\em Set the Reply callback. samp\_\-setReplyCallback (handle\_\-t handle, int $\ast$func). \item\end{CompactList}\item +void \hyperlink{sampDecl_8h_3db66f28546459327665f8491ea97f4d}{samp\_\-setResponseCallback} (handle\_\-t handle, int $\ast$func) +\begin{CompactList}\small\item\em Set the Response callback. samp\_\-setResponseCallback (handle\_\-t handle, int $\ast$func). \item\end{CompactList}\item +void \hyperlink{sampDecl_8h_e11a97c262ab5ab4438eca6c60c0d8cf}{samp\_\-setTimeout} (handle\_\-t handle, int timeout) +\begin{CompactList}\small\item\em Set the message timeout value (in seconds). \item\end{CompactList}\item +\hypertarget{sampDecl_8h_7731da5bec549e7554d1bdc11b13eaf6}{ +void \textbf{samp\_\-setAppName} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} name)} +\label{sampDecl_8h_7731da5bec549e7554d1bdc11b13eaf6} + +\item +void \hyperlink{sampDecl_8h_8fbfdc550ede5d52840300ab33639c49}{samp\_\-setAppVersion} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} version) +\begin{CompactList}\small\item\em Set the application name string. \item\end{CompactList}\item +void \hyperlink{sampDecl_8h_96851f1c15e4baf67949d86d15f2568d}{samp\_\-defaultReplyHandler} (handle\_\-t handle) +\begin{CompactList}\small\item\em The interface's default Reply handler. \item\end{CompactList}\item +\hypertarget{sampDecl_8h_cd506ac12f25f64ada7c9859af3f857f}{ +void \textbf{samp\_\-deaultfResponseHandler} (handle\_\-t handle)} +\label{sampDecl_8h_cd506ac12f25f64ada7c9859af3f857f} + +\item +int \hyperlink{sampDecl_8h_d47754f3b9fceff4d3019821519432b4}{samp\_\-replyStatus} (handle\_\-t handle) +\begin{CompactList}\small\item\em Reply with the status of the last message sent. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_ff4d125fc9594be25984989fad2fd3c8}{samp\_\-mapClients} (handle\_\-t handle) +\item +int \hyperlink{sampDecl_8h_1e494e73abe2ddfd946fb39e84da42a9}{samp\_\-listClients} (handle\_\-t handle) +\item +int \hyperlink{sampDecl_8h_8a2111bbe4c88cef635e3bf67e899563}{samp\_\-addClient} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} name, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} id) +\item +int \hyperlink{sampDecl_8h_e30e492f306a40f853a454faf60ab479}{samp\_\-removeClient} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} id) +\item +\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} \hyperlink{sampDecl_8h_cbf9b52550a9ab0b3515c32e692c46fb}{samp\_\-getOKMap} (void) +\item +\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} \hyperlink{sampDecl_8h_27baec44edb57136951b5f86ae893246}{samp\_\-getNullMap} (void) +\item +int \hyperlink{sampDecl_8h_84ffd50bd4b8dc79e9cf32398c6b3d69}{samp\_\-Register} (handle\_\-t handle) +\begin{CompactList}\small\item\em Register with the \hyperlink{structHub}{Hub} using the currently stored metadata. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_106fc27544de7c25625ed60eb48e4edd}{samp\_\-UnRegister} (handle\_\-t handle) +\begin{CompactList}\small\item\em Un-Register from the hub. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_9c6024ae76103069355256c29ee22722}{samp\_\-DeclareMetadata} (handle\_\-t handle) +\begin{CompactList}\small\item\em (Re)Declare all of our metadata. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_2be0812dc8d34c68407c62762f727c51}{samp\_\-Ping} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} appName) +\begin{CompactList}\small\item\em Ping the hub/app to see if it is alive (returns $>$0). \item\end{CompactList}\item +\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} \hyperlink{sampDecl_8h_2ac4b5c50094c394a74f18d6ebe3cd91}{samp\_\-GetMetadata} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} pubId) +\begin{CompactList}\small\item\em Get the metadata for a specified app. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_d2b0bdea58688142f55faeffcfc65525}{samp\_\-DeclareSubscriptions} (handle\_\-t handle) +\begin{CompactList}\small\item\em Declare the messages we're interested in. \item\end{CompactList}\item +\hypertarget{sampDecl_8h_c4f65b6315c8bd7380176d2b97462354}{ +\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} \textbf{samp\_\-GetSubscriptions} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} pubId)} +\label{sampDecl_8h_c4f65b6315c8bd7380176d2b97462354} + +\item +\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} \hyperlink{sampDecl_8h_954712a523e3f86826b4711abd35b165}{samp\_\-GetRegisteredClients} (handle\_\-t handle) +\begin{CompactList}\small\item\em Get public-ids of the registered clients. \item\end{CompactList}\item +\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} \hyperlink{sampDecl_8h_367a24fc0aa7a81416e6a0d0dbfcd93f}{samp\_\-GetSubscribedClients} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype) +\begin{CompactList}\small\item\em Get clients matching the mtype subscription. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_34e9d38073f36daaf41c418f8d680ee5}{samp\_\-tableLoadVOTable} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} url, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} tableId, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} name) +\begin{CompactList}\small\item\em Tell an app to load a VOTable. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_74aeaaf742121348390ec854c30c1479}{samp\_\-tableLoadFITS} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} url, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} tableId, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} name) +\begin{CompactList}\small\item\em Tell an app to load a FITS table. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_4812b571ed87f7842ca20b7024770df3}{samp\_\-imageLoadFITS} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} url, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} imageId, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} name) +\begin{CompactList}\small\item\em Tell an app to load a FITS image. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_e38ac987f1dfd87ad64f97d55396270e}{samp\_\-tableHighlightRow} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} tableId, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} url, int row) +\begin{CompactList}\small\item\em Tell an app to highlight a table row. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_f133efb67fe4bcfd2b9c8ab9d23b4c5e}{samp\_\-tableSelectRowList} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} tableId, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} url, int rows\mbox{[}$\,$\mbox{]}, int nrows) +\begin{CompactList}\small\item\em Tell an app to select a list of table rows. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_e1e86e79d9a1768e5f265cbb44279172}{samp\_\-coordPointAtSky} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, float ra, float dec) +\begin{CompactList}\small\item\em Tell an app to point at an RA/Dec coordinate. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_18b351385bd175581a6788a4f7342f07}{samp\_\-specLoadSSAGeneric} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} url, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} meta, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} spectrumId, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} name) +\begin{CompactList}\small\item\em Load a generic spectrum from an SSA service. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_5900317c1609ddd5b6da70dc0eb2040c}{samp\_\-cmdExec} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} cmd) +\begin{CompactList}\small\item\em Execute a command in a remote application. \item\end{CompactList}\item +char $\ast$ \hyperlink{sampDecl_8h_9c64fef9c158d7fd4ff7f72691ccd319}{samp\_\-envGet} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} name) +\begin{CompactList}\small\item\em Get an environment variable in a remote application. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_ded4b8bdac87c5b6faa7f13d8abb22a1}{samp\_\-envSet} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} name, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} value) +\begin{CompactList}\small\item\em Set an environment variable in a remote application. \item\end{CompactList}\item +char $\ast$ \hyperlink{sampDecl_8h_19b75403d63714c4fccc8a8d4fa4c8cf}{samp\_\-paramGet} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} name) +\begin{CompactList}\small\item\em Get a parameter variable in a remote application. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_535cb6760c733a75746d2f104b1a01be}{samp\_\-paramSet} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} name, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} value) +\begin{CompactList}\small\item\em Set an parameter variable in a remote application. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_ae7f51c1f6169b918568a1202d0fa031}{samp\_\-bibLoad} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} bibcode) +\begin{CompactList}\small\item\em Exchange a bibcode. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_8013c549ef47e0507edf39c8ab1b62aa}{samp\_\-resourceLoad} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} type, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} name, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} resMap) +\begin{CompactList}\small\item\em Exchange a resource list. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_b2ff2e029c57b56ad57416c624341fe6}{samp\_\-sendGeneric} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} args\mbox{[}$\,$\mbox{]}) +\begin{CompactList}\small\item\em Send a geenric message. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_80ef1a82845b96091857c7d4a3c7972c}{samp\_\-sendMsg} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg) +\begin{CompactList}\small\item\em Send the specified message. \item\end{CompactList}\item +void \hyperlink{sampDecl_8h_c73788ae17493c4042948f6b861ddd74}{samp\_\-notify} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recipId, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg) +\begin{CompactList}\small\item\em Make a notify() call to the \hyperlink{structHub}{Hub}. \item\end{CompactList}\item +\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} \hyperlink{sampDecl_8h_f48228224c20ddaf8b4b4ce39fa6ec16}{samp\_\-notifyAll} (handle\_\-t handle, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg) +\begin{CompactList}\small\item\em Make a notifyAll() call to the \hyperlink{structHub}{Hub}. \item\end{CompactList}\item +\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} \hyperlink{sampDecl_8h_77f32922cfe662f4b423b678ba09513c}{samp\_\-call} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recipId, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} tag, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg) +\begin{CompactList}\small\item\em Make a call() call to the \hyperlink{structHub}{Hub}. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_66d67a1ba0dff1f6dab68f74299f500a}{samp\_\-callAll} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-tag, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg) +\begin{CompactList}\small\item\em Make a callAll() call to the \hyperlink{structHub}{Hub}. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_6780568b9e9dfae5b361c2b2e52c16ed}{samp\_\-callAndWait} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recipId, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-tag, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg) +\begin{CompactList}\small\item\em Make a callAndWait() call to the \hyperlink{structHub}{Hub}. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_9c6ff3d76997c3d7301a977309a117e0}{samp\_\-Reply} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} resp) +\begin{CompactList}\small\item\em Reply to a message. \item\end{CompactList}\item +\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} \hyperlink{sampDecl_8h_0a996f4e24693c2eacba579ecbceedbb}{samp\_\-clientName} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} pubId) +\begin{CompactList}\small\item\em Get the \hyperlink{structClient}{Client} name from a pubic-id. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_91aeabe77e920fc1924b1cdc4f088e64}{samp\_\-setErr} (handle\_\-t handle, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} resp) +\begin{CompactList}\small\item\em Set the error response string. \item\end{CompactList}\item +\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} \hyperlink{sampDecl_8h_4946a754670217dbdbc83cca92217022}{samp\_\-getErr} (handle\_\-t handle) +\begin{CompactList}\small\item\em Get the error response string. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_59f85e0fce4c9ae7121c98e137d3f743}{samp\_\-receiveCall} (void $\ast$data) +\begin{CompactList}\small\item\em test.echo method \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_03be7cc9e154a6ccdd499286df640936}{samp\_\-receiveNotification} (void $\ast$data) +\begin{CompactList}\small\item\em receiveNotification () client method. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_754b50ad59145c7fd1e4c8f4277f11e4}{samp\_\-receiveResponse} (void $\ast$data) +\begin{CompactList}\small\item\em receiveResponse () client method. \item\end{CompactList}\item +void \hyperlink{sampDecl_8h_81222e1f3572585fa30f11a78aa08c3f}{samp\_\-setUserHandler} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, void $\ast$func) +\begin{CompactList}\small\item\em Set the user-interface handler for the mtype. \item\end{CompactList}\item +void \hyperlink{sampDecl_8h_2e8ec01a0dd96314622ae313206583db}{samp\_\-setSampHandler} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, void $\ast$func) +\begin{CompactList}\small\item\em Set the SAMP interface handler for the mtype. \item\end{CompactList}\item +void $\ast$ \hyperlink{sampDecl_8h_6bb258d378627da1aa0254fccdb6bd2c}{samp\_\-getUserHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype) +\begin{CompactList}\small\item\em Get the User handler for the named mtype. \item\end{CompactList}\item +void $\ast$ \hyperlink{sampDecl_8h_6ef18dbc5870f58d2161c9ba03a81d26}{samp\_\-getSampHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype) +\begin{CompactList}\small\item\em Get the Samphandler for the named mtype. \item\end{CompactList}\item +void \hyperlink{sampDecl_8h_979664bde900a1e1bf7bc499dc92898e}{samp\_\-execUserHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} params) +\begin{CompactList}\small\item\em Execute the user-defined handler for the mtype. \item\end{CompactList}\item +\hypertarget{sampDecl_8h_1b7812ba89eebe15ad24f36a3d439a0a}{ +int \textbf{samp\_\-genericMsgHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map)} +\label{sampDecl_8h_1b7812ba89eebe15ad24f36a3d439a0a} + +\item +int \hyperlink{sampDecl_8h_16d8b8822d169107b8702ae753797923}{samp\_\-PingHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Is app alive and responding to messages? \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_2e342b672e77e012cc98a6f5506a44be}{samp\_\-StatusHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Return status of the task. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_9bd8036dd65dc4f874f39568b691a123}{samp\_\-imLoadHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Handle an image.load.fits message. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_26f96dc6cbf72283e2ee9cb8b4619ed3}{samp\_\-tbLoadHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Handle a generic table.load.$\ast$ message. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_750c0fee0c7a99e135299c08751f288c}{samp\_\-tbLoadFITSHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Handle a generic table.load.fits message. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_144ec2329355d91022d5ea38736c0093}{samp\_\-tbLoadVOTHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Handle a generic table.load.votable message. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_bc319b97b3dbea29bd79c4f723db5438}{samp\_\-specLoadHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Handle a spectrum.load.$\ast$ message. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_dd2bca8fa3bf3b4ebbf449edc6b65d85}{samp\_\-specSSAHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Handle a spectrum.load.ssa-generic message. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_d9184eb45a5bc93b5205fd5b1c6ef688}{samp\_\-tbHighlightHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Handle a table.highlight.row message. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_98d68d7091c0b7790631bb53e0ace656}{samp\_\-tbSelectHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Handle a table.select.rowList message. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_3f5632858a2b09759ffe98cd2e183cfb}{samp\_\-pointAtHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Handle a coord.pointAt.sky message. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_262bf09278c61b60b5189fef7f26d26b}{samp\_\-bibcodeHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Handle a bibcode.load message. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_c57d19afc6fa0b4bc9c7a0fd50d0f54b}{samp\_\-cmdExecHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Handle a client.cmd.exec message. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_e25a92f57babd71d43653d7fcb81025c}{samp\_\-envGetHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Handle a client.env.set message. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_0910e6b9d11cdd3111c1f18450de394a}{samp\_\-envSetHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Handle a client.env.set message. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_659c272ce881662c1826a04728dc06f6}{samp\_\-paramGetHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Handle a client.param.set message. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_071aa9e32f2e94d5b667e87cf65d2bdf}{samp\_\-paramSetHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Handle a client.param.set message. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_c0bf7cf7fea362c0c82ad7bc3f267c48}{samp\_\-resLoadHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em handle a voresource.loadlist message \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_287569451dc1bf59d1f9f6d13b56716d}{samp\_\-resConeHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em handle a voresource.loadlist message \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_8b2300222d7b11f144eb4385412e69a5}{samp\_\-resSiapHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em handle a voresource.loadlist message \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_866578a01c3b762435823b1b11869c42}{samp\_\-resSsapHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em handle a voresource.loadlist message \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_ad42ca17cbaf23012ad497559ea45e4c}{samp\_\-resTapHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em handle a voresource.loadlist message \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_fa207ebdc587ba5eeab60fbf79b635d4}{samp\_\-resVOSpaceHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em handle a voresource.loadlist message \item\end{CompactList}\item +\hypertarget{sampDecl_8h_e743048f5b1f903496b2a8a2e9666367}{ +void \textbf{samp\_\-printMessage} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} params)} +\label{sampDecl_8h_e743048f5b1f903496b2a8a2e9666367} + +\item +void \hyperlink{sampDecl_8h_a8a947c24f2c9333adf4e5d7fa11d134}{samp\_\-printMap} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} name, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map) +\item +int \hyperlink{sampDecl_8h_5361571754505eaefdf5739cd3e9519e}{samp\_\-nullResponse} (void $\ast$data) +\item +\hypertarget{sampDecl_8h_cc687f745f400b41c9af4f6419bf9bf8}{ +int \textbf{samp\_\-testEcho} (void $\ast$data)} +\label{sampDecl_8h_cc687f745f400b41c9af4f6419bf9bf8} + +\item +handle\_\-t \hyperlink{sampDecl_8h_2b208c34c0e6017f071b9ce654d0f3d6}{samp\_\-hubOpen} (\hyperlink{structSamp}{Samp} $\ast$samp) +\begin{CompactList}\small\item\em Discover and open a connection to the SAMP \hyperlink{structHub}{Hub}. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_52f471568663ac6f0116d57a9ce00f00}{samp\_\-hubClose} (handle\_\-t handle) +\begin{CompactList}\small\item\em Close a connection to the \hyperlink{structHub}{Hub}. \item\end{CompactList}\item +\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} \hyperlink{sampDecl_8h_e792eedc70daa9b2d010ca6cd8e57fe8}{samp\_\-getAvailableHubs} (handle\_\-t handle) +\begin{CompactList}\small\item\em Get a list of available Hubs. \item\end{CompactList}\item +\hypertarget{sampDecl_8h_4b4292d136520c3d276d655e2093dd30}{ +char $\ast$ \textbf{samp\_\-getActiveHubName} (handle\_\-t handle)} +\label{sampDecl_8h_4b4292d136520c3d276d655e2093dd30} + +\item +\hypertarget{sampDecl_8h_bf266e81b16f556e2f42cad5a2eb9157}{ +int \textbf{samp\_\-getActiveHub} (handle\_\-t handle)} +\label{sampDecl_8h_bf266e81b16f556e2f42cad5a2eb9157} + +\item +\hypertarget{sampDecl_8h_12c4307b544d66d57d54cbc4c031dd35}{ +int \textbf{samp\_\-hubInit} (handle\_\-t samp, char $\ast$appName, char $\ast$descr)} +\label{sampDecl_8h_12c4307b544d66d57d54cbc4c031dd35} + +\item +int \hyperlink{sampDecl_8h_2933b26ac05c440196368edad0167bdf}{samp\_\-processHubEvent} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} params) +\begin{CompactList}\small\item\em Determine the type of \hyperlink{structHub}{Hub} event mtype. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_19f64b527fcc431541206e41f8e36132}{samp\_\-hubEvent} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype) +\begin{CompactList}\small\item\em Determine the type of \hyperlink{structHub}{Hub} event mtype. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_13ad32079ae1db571e3114b7bd8ba356}{samp\_\-hubRegister} (\hyperlink{structHub}{Hub} $\ast$\hyperlink{sampHub_8c_d702b07240de0e0cf9e4b781a38317ad}{hub}) +\begin{CompactList}\small\item\em Send a Register message to the \hyperlink{structHub}{Hub}. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_6d4e32ed0eb19f02cc8a75f75a98deec}{samp\_\-hubUnRegister} (\hyperlink{structHub}{Hub} $\ast$\hyperlink{sampHub_8c_d702b07240de0e0cf9e4b781a38317ad}{hub}) +\begin{CompactList}\small\item\em Send a UnRegister message to the \hyperlink{structHub}{Hub}. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_a704d2a0d290f2fdfb3ebfffc39adcb3}{samp\_\-hubSendShutdown} (\hyperlink{structHub}{Hub} $\ast$\hyperlink{sampHub_8c_d702b07240de0e0cf9e4b781a38317ad}{hub}) +\begin{CompactList}\small\item\em Send a samp.app.event.shutdown message to the \hyperlink{structHub}{Hub}. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_2fcb0032e5ae98fff93becdb06da49f9}{samp\_\-hubSetXmlrpcCallback} (\hyperlink{structHub}{Hub} $\ast$\hyperlink{sampHub_8c_d702b07240de0e0cf9e4b781a38317ad}{hub}) +\begin{CompactList}\small\item\em Set the client callback and send to \hyperlink{structHub}{Hub}. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_47b1a9a4627fde97f95b40b372153cf6}{samp\_\-hubPing} (\hyperlink{structHub}{Hub} $\ast$\hyperlink{sampHub_8c_d702b07240de0e0cf9e4b781a38317ad}{hub}) +\begin{CompactList}\small\item\em Ping the \hyperlink{structHub}{Hub} to see if it is alive. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_088f1e762175d0dbc315853d06e50149}{samp\_\-hubDeclareMetadata} (\hyperlink{structHub}{Hub} $\ast$\hyperlink{sampHub_8c_d702b07240de0e0cf9e4b781a38317ad}{hub}) +\begin{CompactList}\small\item\em Declare \char`\"{}standard\char`\"{} metadata to the \hyperlink{structHub}{Hub}. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_7be493427eac28b2a064eedd8a7d63ff}{samp\_\-hubDeclareSubscriptions} (\hyperlink{structHub}{Hub} $\ast$\hyperlink{sampHub_8c_d702b07240de0e0cf9e4b781a38317ad}{hub}) +\begin{CompactList}\small\item\em Declare mtype subscriptions to the \hyperlink{structHub}{Hub}. \item\end{CompactList}\item +handle\_\-t \hyperlink{sampDecl_8h_b5375a6478dccefe7df2b48416604b29}{samp\_\-newList} () +\begin{CompactList}\small\item\em Create a new List object. \item\end{CompactList}\item +void \hyperlink{sampDecl_8h_b162ae9b9f98da80f6bb5c34b5cbcbf6}{samp\_\-freeList} (\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} list) +\begin{CompactList}\small\item\em Free the given List object. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_c260afb0cbf19b427e3eba96a2341e52}{samp\_\-listLen} (\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} list) +\begin{CompactList}\small\item\em Get number of elements in a List. \item\end{CompactList}\item +void \hyperlink{sampDecl_8h_5b69180b036e58528c98b1cf5a42825a}{samp\_\-setStringInList} (\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} list, char $\ast$value) +\begin{CompactList}\small\item\em Set a string in a List (append). \item\end{CompactList}\item +void \hyperlink{sampDecl_8h_ea188bb711f3b5549d11204b0ff2da08}{samp\_\-setMapInList} (\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} list, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map) +\begin{CompactList}\small\item\em Set a Map in a List (append). \item\end{CompactList}\item +void \hyperlink{sampDecl_8h_0ff97d44e62b7c88a046a29324552400}{samp\_\-setListInList} (\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} list1, \hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} list2) +\begin{CompactList}\small\item\em Set a List in another List (append). \item\end{CompactList}\item +void \hyperlink{sampDecl_8h_2d8a8a26d7284bb211a933895cddd29c}{samp\_\-setIntInList} (\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} list, int value) +\begin{CompactList}\small\item\em Set an Int in a List (append). \item\end{CompactList}\item +void \hyperlink{sampDecl_8h_041a551aff57ca03f3ff72a9803e2b58}{samp\_\-setFloatInList} (\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} list, float value) +\begin{CompactList}\small\item\em Set a Float in a List (append). \item\end{CompactList}\item +char $\ast$ \hyperlink{sampDecl_8h_2d1cd41c4583ac300aaa2d50ad3f76ed}{samp\_\-getStringFromList} (\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} list, int index) +\begin{CompactList}\small\item\em Get a string from the List. \item\end{CompactList}\item +\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} \hyperlink{sampDecl_8h_33ca96ee3a8e7d26356c7b66f469da74}{samp\_\-getMapFromList} (\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} list, int index) +\begin{CompactList}\small\item\em Get a Map from the List. \item\end{CompactList}\item +\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} \hyperlink{sampDecl_8h_1ec1ddadb4e889792b6fa7df6f6c3125}{samp\_\-getListFromList} (\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} list, int index) +\begin{CompactList}\small\item\em Get a List from the List. \item\end{CompactList}\item +\hypertarget{sampDecl_8h_1174e001b2d16ed0aa1b317cfc883af1}{ +int \textbf{samp\_\-getIntFromList} (\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} list, int index)} +\label{sampDecl_8h_1174e001b2d16ed0aa1b317cfc883af1} + +\item +float \hyperlink{sampDecl_8h_4e8339b2b3f5ff1a58cebb74eddca9e6}{samp\_\-getFloatFromList} (\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} list, int index) +\begin{CompactList}\small\item\em Get a Float from the List. \item\end{CompactList}\item +handle\_\-t \hyperlink{sampDecl_8h_55c96c3dfe79d00b8445a60769785dae}{samp\_\-newMap} (void) +\begin{CompactList}\small\item\em Create a new Map object. \item\end{CompactList}\item +void \hyperlink{sampDecl_8h_fe80438de542c6657d623993360b37d1}{samp\_\-freeMap} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map) +\begin{CompactList}\small\item\em Free the given Map object. \item\end{CompactList}\item +\hypertarget{sampDecl_8h_1c99f7146ad3acd3e381a02d5df1234f}{ +int \textbf{samp\_\-getMapSize} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map)} +\label{sampDecl_8h_1c99f7146ad3acd3e381a02d5df1234f} + +\item +\hypertarget{sampDecl_8h_4c8a1b402743b52f2837e97cf41e9e34}{ +char $\ast$ \textbf{samp\_\-getMapKey} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map, int index)} +\label{sampDecl_8h_4c8a1b402743b52f2837e97cf41e9e34} + +\item +\hypertarget{sampDecl_8h_7dcdf07dd7f3252f3bf2dd5002c62251}{ +char $\ast$ \textbf{samp\_\-getMapVal} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map, int index)} +\label{sampDecl_8h_7dcdf07dd7f3252f3bf2dd5002c62251} + +\item +void \hyperlink{sampDecl_8h_b9b2157de89369eb5cd95bfe804eb89a}{samp\_\-setStringInMap} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map, char $\ast$key, char $\ast$value) +\begin{CompactList}\small\item\em Set a string in a Map (append). \item\end{CompactList}\item +void \hyperlink{sampDecl_8h_f102490efe1b92d99b67f244dc498c7b}{samp\_\-setMapInMap} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map1, char $\ast$key, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map2) +\begin{CompactList}\small\item\em Set a Map in a Map (append). \item\end{CompactList}\item +void \hyperlink{sampDecl_8h_362c2f670c98dd6a3ef69debd1871604}{samp\_\-setListInMap} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map, char $\ast$key, \hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} list) +\begin{CompactList}\small\item\em Set a List in a Map (append). \item\end{CompactList}\item +void \hyperlink{sampDecl_8h_c22ec42dbf9a01c9b4e00cf011e7eb9d}{samp\_\-setIntInMap} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map, char $\ast$key, int value) +\begin{CompactList}\small\item\em Set a Int in a Map (append). \item\end{CompactList}\item +void \hyperlink{sampDecl_8h_0f07ae542f5b317311b3799bd96a88fd}{samp\_\-setFloatInMap} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map, char $\ast$key, float value) +\begin{CompactList}\small\item\em Set a string in a Map (append). \item\end{CompactList}\item +char $\ast$ \hyperlink{sampDecl_8h_96ca606e0e7da659c3dc0a30846bcd66}{samp\_\-getStringFromMap} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map, char $\ast$key) +\begin{CompactList}\small\item\em Get a string from the Map. \item\end{CompactList}\item +\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} \hyperlink{sampDecl_8h_525e8ffdfa32867f392f2c1340215453}{samp\_\-getMapFromMap} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map, char $\ast$key) +\begin{CompactList}\small\item\em Get a Map from the Map. \item\end{CompactList}\item +\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} \hyperlink{sampDecl_8h_31ddb90cf2184ae0151b9e7ec8c1a51f}{samp\_\-getListFromMap} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map, char $\ast$key) +\begin{CompactList}\small\item\em Get a LIST from the Map. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_210fc0eba30abddf1bdc2e780d58072c}{samp\_\-getIntFromMap} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map, char $\ast$key) +\begin{CompactList}\small\item\em Get a integer from the Map. \item\end{CompactList}\item +float \hyperlink{sampDecl_8h_b0d3768990294554a298c4057b3b315d}{samp\_\-getFloatFromMap} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map, char $\ast$key) +\begin{CompactList}\small\item\em Get a float from the Map. \item\end{CompactList}\item +\hyperlink{sampDecl_8h_eb3d03dd240212c044285bdd522e3b2b}{Msg} \hyperlink{sampDecl_8h_1a66c53bb9e023fb0219ab9baeded3d6}{samp\_\-newMsg} (void) +\begin{CompactList}\small\item\em Create a new Msg object. \item\end{CompactList}\item +void \hyperlink{sampDecl_8h_adf2979a5fad0c9a855740330b7fd9ce}{samp\_\-freeMsg} (\hyperlink{sampDecl_8h_eb3d03dd240212c044285bdd522e3b2b}{Msg} msg) +\begin{CompactList}\small\item\em Free the given Msg object. \item\end{CompactList}\item +\hypertarget{sampDecl_8h_34c9e29fa57216f19a70764df8e5826b}{ +void \textbf{samp\_\-msgMType} (\hyperlink{sampDecl_8h_eb3d03dd240212c044285bdd522e3b2b}{Msg} msg, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype)} +\label{sampDecl_8h_34c9e29fa57216f19a70764df8e5826b} + +\item +void \hyperlink{sampDecl_8h_281c8f7f8b21a74704dd200d5aaed481}{samp\_\-msgParam} (\hyperlink{sampDecl_8h_eb3d03dd240212c044285bdd522e3b2b}{Msg} msg, \hyperlink{sampDecl_8h_4c5a7aff173725461e76e5f0183d7ed8}{Param} param) +\begin{CompactList}\small\item\em Add a parameter to the Msg. \item\end{CompactList}\item +\hypertarget{sampDecl_8h_cb9eff6a0f442a1c9fde13c1e9fc097d}{ +char $\ast$ \textbf{samp\_\-msgTag} (void)} +\label{sampDecl_8h_cb9eff6a0f442a1c9fde13c1e9fc097d} + +\item +\hyperlink{sampDecl_8h_4c5a7aff173725461e76e5f0183d7ed8}{Param} \hyperlink{sampDecl_8h_c58f0b105566a61785fb9f2ed9b42830}{samp\_\-newParam} (void) +\begin{CompactList}\small\item\em Create a new Param object. \item\end{CompactList}\item +void \hyperlink{sampDecl_8h_5a6fbf3ac37164268afae80c35666c5e}{samp\_\-freeParam} (\hyperlink{sampDecl_8h_4c5a7aff173725461e76e5f0183d7ed8}{Param} param) +\begin{CompactList}\small\item\em Free the given Msg object. \item\end{CompactList}\item +\hyperlink{sampDecl_8h_4c5a7aff173725461e76e5f0183d7ed8}{Param} \hyperlink{sampDecl_8h_d8c5669be313874fef1c484643683f49}{samp\_\-paramInit} (\hyperlink{sampDecl_8h_eb3d03dd240212c044285bdd522e3b2b}{Msg} msg) +\begin{CompactList}\small\item\em Get number of Params. \item\end{CompactList}\item +\hypertarget{sampDecl_8h_62c2d0b887252730fd6f7bdaa7211403}{ +void \textbf{samp\_\-addStringParam} (\hyperlink{sampDecl_8h_eb3d03dd240212c044285bdd522e3b2b}{Msg} msg, char $\ast$keyw, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} val)} +\label{sampDecl_8h_62c2d0b887252730fd6f7bdaa7211403} + +\item +void \hyperlink{sampDecl_8h_e3e90c84dd6b1a08d8af18ca9e168b37}{samp\_\-addMapParam} (\hyperlink{sampDecl_8h_eb3d03dd240212c044285bdd522e3b2b}{Msg} msg, char $\ast$keyw, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} val) +\begin{CompactList}\small\item\em Add a parameter to the Param. \item\end{CompactList}\item +void \hyperlink{sampDecl_8h_24f72c4ed033ed2f219b420e491b3c0f}{samp\_\-addListParam} (\hyperlink{sampDecl_8h_eb3d03dd240212c044285bdd522e3b2b}{Msg} msg, char $\ast$keyw, \hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} val) +\begin{CompactList}\small\item\em Add a parameter to the Param. \item\end{CompactList}\item +void \hyperlink{sampDecl_8h_6897da75444209fc1819042bde906aa6}{samp\_\-addIntParam} (\hyperlink{sampDecl_8h_eb3d03dd240212c044285bdd522e3b2b}{Msg} msg, char $\ast$keyw, int val) +\begin{CompactList}\small\item\em Add a $<$SAMP int$>$=\char`\"{}\char`\"{}$>$ parameter to the Param. \item\end{CompactList}\item +void \hyperlink{sampDecl_8h_d297770f4ab1338697d69b2705d6c1d9}{samp\_\-addFloatParam} (\hyperlink{sampDecl_8h_eb3d03dd240212c044285bdd522e3b2b}{Msg} msg, char $\ast$keyw, float val) +\begin{CompactList}\small\item\em Add a $<$SAMP float$>$=\char`\"{}\char`\"{}$>$ parameter to the Param. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_7680995e5d4f26ea3d91bf72c9c72e51}{samp\_\-paramLen} (\hyperlink{sampDecl_8h_eb3d03dd240212c044285bdd522e3b2b}{Msg} msg) +\begin{CompactList}\small\item\em Get number of Params. \item\end{CompactList}\item +void \hyperlink{sampDecl_8h_4919f892b6fccced4e6b9d777071b781}{sampLog} (handle\_\-t handle, char $\ast$format,...) +\begin{CompactList}\small\item\em SAMP message logger. \item\end{CompactList}\item +void \hyperlink{sampDecl_8h_2b3dd1662e61c83e29109126689b08b9}{sampTrace} (handle\_\-t handle, char $\ast$format,...) +\begin{CompactList}\small\item\em SAMP tracer. \item\end{CompactList}\item +\hypertarget{sampDecl_8h_711aa545f55e9307f662062deefd5903}{ +handle\_\-t \textbf{samp\_\-newHandle} (void $\ast$ptr)} +\label{sampDecl_8h_711aa545f55e9307f662062deefd5903} + +\item +\hypertarget{sampDecl_8h_f02a7c646a9ed56e545d8bf33434c207}{ +void \textbf{samp\_\-freeHandle} (handle\_\-t handle)} +\label{sampDecl_8h_f02a7c646a9ed56e545d8bf33434c207} + +\item +\hypertarget{sampDecl_8h_4d0aef2f09b9cce38d4ea8024831c6e5}{ +handle\_\-t \textbf{samp\_\-P2H} (void $\ast$ptr)} +\label{sampDecl_8h_4d0aef2f09b9cce38d4ea8024831c6e5} + +\item +\hypertarget{sampDecl_8h_909310a995650c224515c9ca0a3ef582}{ +void $\ast$ \textbf{samp\_\-H2P} (handle\_\-t handle)} +\label{sampDecl_8h_909310a995650c224515c9ca0a3ef582} + +\item +char $\ast$ \hyperlink{sampDecl_8h_aed9017996a8361f8abf5b5c6a954414}{samp\_\-app2id} (handle\_\-t handle, char $\ast$appName) +\begin{CompactList}\small\item\em Convert an application name to a public-ID. \item\end{CompactList}\item +char $\ast$ \hyperlink{sampDecl_8h_a75368198ec8cd2fff6ad304806862b8}{samp\_\-id2app} (handle\_\-t handle, char $\ast$pubId) +\begin{CompactList}\small\item\em Convert a public-ID to the application name. \item\end{CompactList}\item +int \hyperlink{sampDecl_8h_0af6dba3d1022e6b220a9b1076021353}{samp\_\-serverPort} (void) +\begin{CompactList}\small\item\em Return a unique port number for the server. \item\end{CompactList}\item +void \hyperlink{sampDecl_8h_ace22fd6ada035930ef93e5a54c375b1}{samp\_\-printMetadata} (handle\_\-t handle, char $\ast$name) +\begin{CompactList}\small\item\em Print the metadata for the application. \item\end{CompactList}\item +char $\ast$ \hyperlink{sampDecl_8h_f9622190e1976c42efebd30f0c51cfe4}{samp\_\-getMetadata} (handle\_\-t handle, char $\ast$name) +\begin{CompactList}\small\item\em Get the metadata item for the application. \item\end{CompactList}\end{CompactItemize} + + +\label{_details} +\hypertarget{_details}{} +\subsection{Detailed Description} +SAMP interface method declarations. + +SAMPDECL.H -- SAMP interface method declarations. + +\begin{Desc} +\item[Author:]Mike FItzpatrick \end{Desc} +\begin{Desc} +\item[Date:]8/10/11 \end{Desc} + + +\subsection{Define Documentation} +\hypertarget{sampDecl_8h_6fc88d7dbc85d8d10379f58c910ce847}{ +\index{sampDecl.h@{sampDecl.h}!SZ\_\-NAME@{SZ\_\-NAME}} +\index{SZ\_\-NAME@{SZ\_\-NAME}!sampDecl.h@{sampDecl.h}} +\subsubsection[{SZ\_\-NAME}]{\setlength{\rightskip}{0pt plus 5cm}\#define SZ\_\-NAME~256}} +\label{sampDecl_8h_6fc88d7dbc85d8d10379f58c910ce847} + + +SAMP String datatype + +Referenced by samp\_\-addClient(), samp\_\-bibcodeHandler(), samp\_\-envGetHandler(), samp\_\-envSetHandler(), samp\_\-execUserHandler(), samp\_\-hubRunning(), samp\_\-imLoadHandler(), samp\_\-mapClients(), samp\_\-paramGetHandler(), samp\_\-paramSetHandler(), samp\_\-removeClient(), samp\_\-resConeHandler(), samp\_\-resLoadHandler(), samp\_\-resourceLoad(), samp\_\-resSiapHandler(), samp\_\-resSsapHandler(), samp\_\-resTapHandler(), samp\_\-resVOSpaceHandler(), samp\_\-sendGeneric(), samp\_\-specLoadHandler(), samp\_\-specSSAHandler(), samp\_\-tbHighlightHandler(), samp\_\-tbLoadFITSHandler(), samp\_\-tbLoadHandler(), samp\_\-tbLoadVOTHandler(), and samp\_\-tbSelectHandler(). + +\subsection{Typedef Documentation} +\hypertarget{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{ +\index{sampDecl.h@{sampDecl.h}!List@{List}} +\index{List@{List}!sampDecl.h@{sampDecl.h}} +\subsubsection[{List}]{\setlength{\rightskip}{0pt plus 5cm}typedef int {\bf List}}} +\label{sampDecl_8h_39f9d235896a8fd920f319105eb82791} + + +SAMP Map datatype \hypertarget{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{ +\index{sampDecl.h@{sampDecl.h}!Map@{Map}} +\index{Map@{Map}!sampDecl.h@{sampDecl.h}} +\subsubsection[{Map}]{\setlength{\rightskip}{0pt plus 5cm}typedef int {\bf Map}}} +\label{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30} + + +generic object handle \hypertarget{sampDecl_8h_eb3d03dd240212c044285bdd522e3b2b}{ +\index{sampDecl.h@{sampDecl.h}!Msg@{Msg}} +\index{Msg@{Msg}!sampDecl.h@{sampDecl.h}} +\subsubsection[{Msg}]{\setlength{\rightskip}{0pt plus 5cm}typedef int {\bf Msg}}} +\label{sampDecl_8h_eb3d03dd240212c044285bdd522e3b2b} + + +SAMP List datatype \hypertarget{sampDecl_8h_4c5a7aff173725461e76e5f0183d7ed8}{ +\index{sampDecl.h@{sampDecl.h}!Param@{Param}} +\index{Param@{Param}!sampDecl.h@{sampDecl.h}} +\subsubsection[{Param}]{\setlength{\rightskip}{0pt plus 5cm}typedef int {\bf Param}}} +\label{sampDecl_8h_4c5a7aff173725461e76e5f0183d7ed8} + + +SAMP Msg datatype \hypertarget{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{ +\index{sampDecl.h@{sampDecl.h}!String@{String}} +\index{String@{String}!sampDecl.h@{sampDecl.h}} +\subsubsection[{String}]{\setlength{\rightskip}{0pt plus 5cm}typedef char$\ast$ {\bf String}}} +\label{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39} + + +SAMP Param datatype + +\subsection{Function Documentation} +\hypertarget{sampDecl_8h_8a2111bbe4c88cef635e3bf67e899563}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-addClient@{samp\_\-addClient}} +\index{samp\_\-addClient@{samp\_\-addClient}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-addClient}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-addClient (handle\_\-t {\em handle}, \/ {\bf String} {\em name}, \/ {\bf String} {\em id})}} +\label{sampDecl_8h_8a2111bbe4c88cef635e3bf67e899563} + + +SAMP\_\-ADDCLIENT -- Add a newly registered client to the list of known apps so we can do the public-private name translation. + +References Samp::clients, Client::name, Samp::nclients, and SZ\_\-NAME. + +Referenced by samp\_\-processHubEvent().\hypertarget{sampDecl_8h_d297770f4ab1338697d69b2705d6c1d9}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-addFloatParam@{samp\_\-addFloatParam}} +\index{samp\_\-addFloatParam@{samp\_\-addFloatParam}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-addFloatParam}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-addFloatParam ({\bf Msg} {\em msg}, \/ char $\ast$ {\em keyw}, \/ float {\em val})}} +\label{sampDecl_8h_d297770f4ab1338697d69b2705d6c1d9} + + +Add a $<$SAMP float$>$=\char`\"{}\char`\"{}$>$ parameter to the Param. + +SAMP\_\-ADDFLOATPARAM -- Add a $<$SAMP float$>$=\char`\"{}\char`\"{}$>$ parameter to the Param. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em msg}]handle to Msg object \item[{\em keyw}]map keyword \item[{\em val}]floating point value \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References samp\_\-paramInit().\hypertarget{sampDecl_8h_6897da75444209fc1819042bde906aa6}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-addIntParam@{samp\_\-addIntParam}} +\index{samp\_\-addIntParam@{samp\_\-addIntParam}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-addIntParam}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-addIntParam ({\bf Msg} {\em msg}, \/ char $\ast$ {\em keyw}, \/ int {\em val})}} +\label{sampDecl_8h_6897da75444209fc1819042bde906aa6} + + +Add a $<$SAMP int$>$=\char`\"{}\char`\"{}$>$ parameter to the Param. + +SAMP\_\-ADDINTPARAM -- Add a $<$SAMP int$>$=\char`\"{}\char`\"{}$>$ parameter to the Param. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em msg}]handle to Msg object \item[{\em keyw}]map keyword \item[{\em val}]integer value \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References samp\_\-paramInit().\hypertarget{sampDecl_8h_24f72c4ed033ed2f219b420e491b3c0f}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-addListParam@{samp\_\-addListParam}} +\index{samp\_\-addListParam@{samp\_\-addListParam}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-addListParam}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-addListParam ({\bf Msg} {\em msg}, \/ char $\ast$ {\em keyw}, \/ {\bf List} {\em val})}} +\label{sampDecl_8h_24f72c4ed033ed2f219b420e491b3c0f} + + +Add a parameter to the Param. + +SAMP\_\-ADDLISTPARAM -- Add a List parameter to the Param. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em msg}]handle to Msg object \item[{\em keyw}]map keyword \item[{\em val}]value list \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References samp\_\-paramInit().\hypertarget{sampDecl_8h_e3e90c84dd6b1a08d8af18ca9e168b37}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-addMapParam@{samp\_\-addMapParam}} +\index{samp\_\-addMapParam@{samp\_\-addMapParam}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-addMapParam}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-addMapParam ({\bf Msg} {\em msg}, \/ char $\ast$ {\em keyw}, \/ {\bf Map} {\em val})}} +\label{sampDecl_8h_e3e90c84dd6b1a08d8af18ca9e168b37} + + +Add a parameter to the Param. + +SAMP\_\-ADDMAPPARAM -- Add a Map parameter to the Param. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em msg}]handle to Msg object \item[{\em keyw}]map keyword \item[{\em val}]value map \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References samp\_\-paramInit().\hypertarget{sampDecl_8h_aed9017996a8361f8abf5b5c6a954414}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-app2id@{samp\_\-app2id}} +\index{samp\_\-app2id@{samp\_\-app2id}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-app2id}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ samp\_\-app2id (handle\_\-t {\em handle}, \/ char $\ast$ {\em appName})}} +\label{sampDecl_8h_aed9017996a8361f8abf5b5c6a954414} + + +Convert an application name to a public-ID. + +SAMP\_\-APP2ID -- Convert an application name to a public-ID. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em appName}]name of registered application \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]public ID of application \end{Desc} + + +References Samp::clients, Client::name, and Samp::nclients.\hypertarget{sampDecl_8h_262bf09278c61b60b5189fef7f26d26b}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-bibcodeHandler@{samp\_\-bibcodeHandler}} +\index{samp\_\-bibcodeHandler@{samp\_\-bibcodeHandler}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-bibcodeHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-bibcodeHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampDecl_8h_262bf09278c61b60b5189fef7f26d26b} + + +Handle a bibcode.load message. + +SAMP\_\-BIBCODEHANDLER -- Handle a bibcode.load message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::handlerMode, samp\_\-getStringFromMap(), samp\_\-getUserHandler(), and SZ\_\-NAME.\hypertarget{sampDecl_8h_ae7f51c1f6169b918568a1202d0fa031}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-bibLoad@{samp\_\-bibLoad}} +\index{samp\_\-bibLoad@{samp\_\-bibLoad}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-bibLoad}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-bibLoad (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ {\bf String} {\em bibcode})}} +\label{sampDecl_8h_ae7f51c1f6169b918568a1202d0fa031} + + +Exchange a bibcode. + +SAMP\_\-BIBLOAD -- Exchange a bibcode. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]name of recipient (or 'all') \item[{\em bibcode}]Bibcode string \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::hub, hub, samp\_\-freeMsg(), samp\_\-msgParam(), samp\_\-newMsg(), samp\_\-newParam(), and samp\_\-sendMsg().\hypertarget{sampDecl_8h_77f32922cfe662f4b423b678ba09513c}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-call@{samp\_\-call}} +\index{samp\_\-call@{samp\_\-call}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-call}]{\setlength{\rightskip}{0pt plus 5cm}{\bf String} samp\_\-call (handle\_\-t {\em handle}, \/ {\bf String} {\em recipId}, \/ {\bf String} {\em msg\_\-tag}, \/ {\bf Map} {\em msg})}} +\label{sampDecl_8h_77f32922cfe662f4b423b678ba09513c} + + +Make a call() call to the \hyperlink{structHub}{Hub}. + +SAMP\_\-CALL -- Make a call() call to the \hyperlink{structHub}{Hub} + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recipId}]recipient ID \item[{\em msg\_\-tag}]message tag \item[{\em msg}]message map \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]message ID \end{Desc} + + +References Samp::debug, Samp::errortxt, Samp::hub, hub, Hub::id, Hub::privateKey, samp\_\-app2id(), and Samp::trace.\hypertarget{sampDecl_8h_66d67a1ba0dff1f6dab68f74299f500a}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-callAll@{samp\_\-callAll}} +\index{samp\_\-callAll@{samp\_\-callAll}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-callAll}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-callAll (handle\_\-t {\em handle}, \/ {\bf String} {\em msg\_\-tag}, \/ {\bf Map} {\em msg})}} +\label{sampDecl_8h_66d67a1ba0dff1f6dab68f74299f500a} + + +Make a callAll() call to the \hyperlink{structHub}{Hub}. + +SAMP\_\-CALLALL -- Make a callAll() call to the \hyperlink{structHub}{Hub} + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em msg\_\-tag}]message tag \item[{\em msg}]message map \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::debug, Samp::errortxt, Samp::hub, hub, Hub::id, Hub::privateKey, samp\_\-setErr(), and Samp::trace.\hypertarget{sampDecl_8h_6780568b9e9dfae5b361c2b2e52c16ed}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-callAndWait@{samp\_\-callAndWait}} +\index{samp\_\-callAndWait@{samp\_\-callAndWait}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-callAndWait}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-callAndWait (handle\_\-t {\em handle}, \/ {\bf String} {\em recipId}, \/ {\bf String} {\em msg\_\-tag}, \/ {\bf Map} {\em msg})}} +\label{sampDecl_8h_6780568b9e9dfae5b361c2b2e52c16ed} + + +Make a callAndWait() call to the \hyperlink{structHub}{Hub}. + +SAMP\_\-CALLANDWAIT -- Make a callAndWait() call to the \hyperlink{structHub}{Hub} + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recipId}]recipient ID \item[{\em msg\_\-tag}]message tag \item[{\em msg}]message map \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::debug, Samp::errortxt, Samp::hub, hub, Hub::id, Hub::privateKey, samp\_\-app2id(), samp\_\-setErr(), Hub::timeout, and Samp::trace.\hypertarget{sampDecl_8h_0a996f4e24693c2eacba579ecbceedbb}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-clientName@{samp\_\-clientName}} +\index{samp\_\-clientName@{samp\_\-clientName}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-clientName}]{\setlength{\rightskip}{0pt plus 5cm}{\bf String} samp\_\-clientName (handle\_\-t {\em handle}, \/ {\bf String} {\em pubId})}} +\label{sampDecl_8h_0a996f4e24693c2eacba579ecbceedbb} + + +Get the \hyperlink{structClient}{Client} name from a pubic-id. + +SAMP\_\-CLIENTNAME -- Get the \hyperlink{structClient}{Client} name from a pubic-id. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em pubId}]public ID \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]declared application name \end{Desc} +\hypertarget{sampDecl_8h_5900317c1609ddd5b6da70dc0eb2040c}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-cmdExec@{samp\_\-cmdExec}} +\index{samp\_\-cmdExec@{samp\_\-cmdExec}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-cmdExec}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-cmdExec (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ {\bf String} {\em cmd})}} +\label{sampDecl_8h_5900317c1609ddd5b6da70dc0eb2040c} + + +Execute a command in a remote application. + +SAMP\_\-CMDEXEC -- Execute a command in a remote application. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]name of recipient (or 'all') \item[{\em cmd}]Command string \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::hub, hub, samp\_\-freeMsg(), samp\_\-msgParam(), samp\_\-newMsg(), samp\_\-newParam(), and samp\_\-sendMsg().\hypertarget{sampDecl_8h_c57d19afc6fa0b4bc9c7a0fd50d0f54b}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-cmdExecHandler@{samp\_\-cmdExecHandler}} +\index{samp\_\-cmdExecHandler@{samp\_\-cmdExecHandler}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-cmdExecHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-cmdExecHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampDecl_8h_c57d19afc6fa0b4bc9c7a0fd50d0f54b} + + +Handle a client.cmd.exec message. + +SAMP\_\-CMDEXECHANDLER -- Handle a client.cmd.exec message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::handlerMode, samp\_\-getStringFromMap(), and samp\_\-getUserHandler().\hypertarget{sampDecl_8h_e1e86e79d9a1768e5f265cbb44279172}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-coordPointAtSky@{samp\_\-coordPointAtSky}} +\index{samp\_\-coordPointAtSky@{samp\_\-coordPointAtSky}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-coordPointAtSky}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-coordPointAtSky (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ float {\em ra}, \/ float {\em dec})}} +\label{sampDecl_8h_e1e86e79d9a1768e5f265cbb44279172} + + +Tell an app to point at an RA/Dec coordinate. + +SAMP\_\-COORDPOINTATSKY -- Tell an app to point at an RA/Dec coordinate. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]name of recipient (or 'all') \item[{\em ra}]RA of coord in degrees \item[{\em dec}]Dec of coord in degrees \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::hub, hub, samp\_\-addFloatParam(), samp\_\-freeMsg(), samp\_\-msgParam(), samp\_\-newMsg(), samp\_\-newParam(), and samp\_\-sendMsg().\hypertarget{sampDecl_8h_9c6024ae76103069355256c29ee22722}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-DeclareMetadata@{samp\_\-DeclareMetadata}} +\index{samp\_\-DeclareMetadata@{samp\_\-DeclareMetadata}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-DeclareMetadata}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-DeclareMetadata (handle\_\-t {\em handle})}} +\label{sampDecl_8h_9c6024ae76103069355256c29ee22722} + + +(Re)Declare all of our metadata. + +SAMP\_\-DECLAREMETATA -- (Re)Declare all of our metadata. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::hub, hub, and samp\_\-hubDeclareMetadata().\hypertarget{sampDecl_8h_d2b0bdea58688142f55faeffcfc65525}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-DeclareSubscriptions@{samp\_\-DeclareSubscriptions}} +\index{samp\_\-DeclareSubscriptions@{samp\_\-DeclareSubscriptions}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-DeclareSubscriptions}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-DeclareSubscriptions (handle\_\-t {\em handle})}} +\label{sampDecl_8h_d2b0bdea58688142f55faeffcfc65525} + + +Declare the messages we're interested in. + +SAMP\_\-DECLARESUBSCRIPIONS -- Declare the messages we're interested in. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::hub, hub, and samp\_\-hubDeclareSubscriptions().\hypertarget{sampDecl_8h_96851f1c15e4baf67949d86d15f2568d}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-defaultReplyHandler@{samp\_\-defaultReplyHandler}} +\index{samp\_\-defaultReplyHandler@{samp\_\-defaultReplyHandler}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-defaultReplyHandler}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-defaultReplyHandler (handle\_\-t {\em handle})}} +\label{sampDecl_8h_96851f1c15e4baf67949d86d15f2568d} + + +The interface's default Reply handler. + +SAMP\_\-DEFAULTREPLYHANDLER -- The interface's default Reply handler. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{sampDecl_8h_9c64fef9c158d7fd4ff7f72691ccd319}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-envGet@{samp\_\-envGet}} +\index{samp\_\-envGet@{samp\_\-envGet}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-envGet}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ samp\_\-envGet (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ {\bf String} {\em name})}} +\label{sampDecl_8h_9c64fef9c158d7fd4ff7f72691ccd319} + + +Get an environment variable in a remote application. + +SAMP\_\-ENVGET -- Get an environment variable in a remote application. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]name of recipient (or 'all') \item[{\em name}]Name of variable in receiver's environment \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]NULL, Value of variable, or list of values \end{Desc} + + +References Samp::clients, Samp::errortxt, Samp::hub, hub, Hub::id, Client::name, Samp::nclients, Hub::privateKey, samp\_\-app2id(), samp\_\-freeMsg(), samp\_\-msgParam(), samp\_\-newMsg(), samp\_\-newParam(), and Hub::timeout.\hypertarget{sampDecl_8h_e25a92f57babd71d43653d7fcb81025c}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-envGetHandler@{samp\_\-envGetHandler}} +\index{samp\_\-envGetHandler@{samp\_\-envGetHandler}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-envGetHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-envGetHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampDecl_8h_e25a92f57babd71d43653d7fcb81025c} + + +Handle a client.env.set message. + +SAMP\_\-ENVGETHANDLER -- Handle a client.env.set message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::handlerMode, samp\_\-freeMap(), samp\_\-getStringFromMap(), samp\_\-getUserHandler(), samp\_\-newMap(), samp\_\-setHandlerReply(), samp\_\-setMapInMap(), samp\_\-setStringInMap(), and SZ\_\-NAME.\hypertarget{sampDecl_8h_ded4b8bdac87c5b6faa7f13d8abb22a1}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-envSet@{samp\_\-envSet}} +\index{samp\_\-envSet@{samp\_\-envSet}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-envSet}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-envSet (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ {\bf String} {\em name}, \/ {\bf String} {\em value})}} +\label{sampDecl_8h_ded4b8bdac87c5b6faa7f13d8abb22a1} + + +Set an environment variable in a remote application. + +SAMP\_\-ENVSET -- Set an environment variable in a remote application. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]name of recipient (or 'all') \item[{\em name}]Name of variable in receiver's environment \item[{\em value}]Value of variable or NULL \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::hub, hub, samp\_\-freeMsg(), samp\_\-msgParam(), samp\_\-newMsg(), samp\_\-newParam(), and samp\_\-sendMsg().\hypertarget{sampDecl_8h_0910e6b9d11cdd3111c1f18450de394a}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-envSetHandler@{samp\_\-envSetHandler}} +\index{samp\_\-envSetHandler@{samp\_\-envSetHandler}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-envSetHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-envSetHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampDecl_8h_0910e6b9d11cdd3111c1f18450de394a} + + +Handle a client.env.set message. + +SAMP\_\-ENVSETHANDLER -- Handle a client.env.set message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::handlerMode, samp\_\-getStringFromMap(), samp\_\-getUserHandler(), and SZ\_\-NAME.\hypertarget{sampDecl_8h_979664bde900a1e1bf7bc499dc92898e}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-execUserHandler@{samp\_\-execUserHandler}} +\index{samp\_\-execUserHandler@{samp\_\-execUserHandler}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-execUserHandler}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-execUserHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em params})}} +\label{sampDecl_8h_979664bde900a1e1bf7bc499dc92898e} + + +Execute the user-defined handler for the mtype. + +SAMP\_\-EXECUSERHANDLER -- Execute the user-defined handler for the mtype. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message-id string \item[{\em params}]Mtype parameter Map \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::defaultUserFunc, Samp::handlerMode, samp\_\-getFloatFromMap(), samp\_\-getIntFromMap(), samp\_\-getListFromMap(), samp\_\-getMapFromMap(), samp\_\-getStringFromMap(), samp\_\-getUserHandler(), samp\_\-listLen(), and SZ\_\-NAME.\hypertarget{sampDecl_8h_b162ae9b9f98da80f6bb5c34b5cbcbf6}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-freeList@{samp\_\-freeList}} +\index{samp\_\-freeList@{samp\_\-freeList}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-freeList}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-freeList ({\bf List} {\em list})}} +\label{sampDecl_8h_b162ae9b9f98da80f6bb5c34b5cbcbf6} + + +Free the given List object. + +SAMP\_\-FREELIST -- Free the given List object + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em list}]List object handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{sampDecl_8h_fe80438de542c6657d623993360b37d1}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-freeMap@{samp\_\-freeMap}} +\index{samp\_\-freeMap@{samp\_\-freeMap}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-freeMap}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-freeMap ({\bf Map} {\em map})}} +\label{sampDecl_8h_fe80438de542c6657d623993360b37d1} + + +Free the given Map object. + +SAMP\_\-FREEMAP -- Free the given Map object + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em map}]Map object to free \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{sampDecl_8h_adf2979a5fad0c9a855740330b7fd9ce}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-freeMsg@{samp\_\-freeMsg}} +\index{samp\_\-freeMsg@{samp\_\-freeMsg}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-freeMsg}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-freeMsg ({\bf Msg} {\em msg})}} +\label{sampDecl_8h_adf2979a5fad0c9a855740330b7fd9ce} + + +Free the given Msg object. + +SAMP\_\-FREEMSG -- Free the given Msg object + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em msg}]Msg object to free \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{sampDecl_8h_5a6fbf3ac37164268afae80c35666c5e}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-freeParam@{samp\_\-freeParam}} +\index{samp\_\-freeParam@{samp\_\-freeParam}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-freeParam}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-freeParam ({\bf Param} {\em param})}} +\label{sampDecl_8h_5a6fbf3ac37164268afae80c35666c5e} + + +Free the given Msg object. + +SAMP\_\-FREEPARAM -- Free the given Param object + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em param}]Param object to free \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{sampDecl_8h_e792eedc70daa9b2d010ca6cd8e57fe8}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-getAvailableHubs@{samp\_\-getAvailableHubs}} +\index{samp\_\-getAvailableHubs@{samp\_\-getAvailableHubs}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-getAvailableHubs}]{\setlength{\rightskip}{0pt plus 5cm}{\bf List} samp\_\-getAvailableHubs (handle\_\-t {\em handle})}} +\label{sampDecl_8h_e792eedc70daa9b2d010ca6cd8e57fe8} + + +Get a list of available Hubs. + +SAMP\_\-GETAVAILABLEHUBS -- Get a list of available Hubs + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]hub handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]List of hub handles \end{Desc} +\hypertarget{sampDecl_8h_4946a754670217dbdbc83cca92217022}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-getErr@{samp\_\-getErr}} +\index{samp\_\-getErr@{samp\_\-getErr}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-getErr}]{\setlength{\rightskip}{0pt plus 5cm}{\bf String} samp\_\-getErr (handle\_\-t {\em handle})}} +\label{sampDecl_8h_4946a754670217dbdbc83cca92217022} + + +Get the error response string. + +SAMP\_\-GETERR -- Get the error response string. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]Error text string \end{Desc} + + +References Samp::errortxt.\hypertarget{sampDecl_8h_4e8339b2b3f5ff1a58cebb74eddca9e6}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-getFloatFromList@{samp\_\-getFloatFromList}} +\index{samp\_\-getFloatFromList@{samp\_\-getFloatFromList}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-getFloatFromList}]{\setlength{\rightskip}{0pt plus 5cm}float samp\_\-getFloatFromList ({\bf List} {\em list}, \/ int {\em index})}} +\label{sampDecl_8h_4e8339b2b3f5ff1a58cebb74eddca9e6} + + +Get a Float from the List. + +SAMP\_\-GETFLOATFROMLIST -- Get a Float from the List + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em list}]List object handle \item[{\em index}]List index containing the desired value \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]int value \end{Desc} +\hypertarget{sampDecl_8h_b0d3768990294554a298c4057b3b315d}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-getFloatFromMap@{samp\_\-getFloatFromMap}} +\index{samp\_\-getFloatFromMap@{samp\_\-getFloatFromMap}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-getFloatFromMap}]{\setlength{\rightskip}{0pt plus 5cm}float samp\_\-getFloatFromMap ({\bf Map} {\em map}, \/ char $\ast$ {\em key})}} +\label{sampDecl_8h_b0d3768990294554a298c4057b3b315d} + + +Get a float from the Map. + +SAMP\_\-GETFLOATFROMMAP -- Get a float from the Map + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em map}]handle to Map object \item[{\em key}]Map key \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]floating point value \end{Desc} +\hypertarget{sampDecl_8h_210fc0eba30abddf1bdc2e780d58072c}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-getIntFromMap@{samp\_\-getIntFromMap}} +\index{samp\_\-getIntFromMap@{samp\_\-getIntFromMap}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-getIntFromMap}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-getIntFromMap ({\bf Map} {\em map}, \/ char $\ast$ {\em key})}} +\label{sampDecl_8h_210fc0eba30abddf1bdc2e780d58072c} + + +Get a integer from the Map. + +SAMP\_\-GETINTFROMMAP -- Get a integer from the Map + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em map}]handle to Map object \item[{\em key}]Map key \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]integer value \end{Desc} +\hypertarget{sampDecl_8h_1ec1ddadb4e889792b6fa7df6f6c3125}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-getListFromList@{samp\_\-getListFromList}} +\index{samp\_\-getListFromList@{samp\_\-getListFromList}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-getListFromList}]{\setlength{\rightskip}{0pt plus 5cm}{\bf List} samp\_\-getListFromList ({\bf List} {\em list}, \/ int {\em index})}} +\label{sampDecl_8h_1ec1ddadb4e889792b6fa7df6f6c3125} + + +Get a List from the List. + +Get an Int from the List. + +SAMP\_\-GETLISTFROMLIST -- Get a List from the List + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em list}]List object handle \item[{\em index}]List index containing the List \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]List handle\end{Desc} +SAMP\_\-GETINTFROMLIST -- Get an Int from the List + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em list}]List object handle \item[{\em index}]List index containing the desired value \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]int value \end{Desc} +\hypertarget{sampDecl_8h_31ddb90cf2184ae0151b9e7ec8c1a51f}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-getListFromMap@{samp\_\-getListFromMap}} +\index{samp\_\-getListFromMap@{samp\_\-getListFromMap}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-getListFromMap}]{\setlength{\rightskip}{0pt plus 5cm}{\bf List} samp\_\-getListFromMap ({\bf Map} {\em map}, \/ char $\ast$ {\em key})}} +\label{sampDecl_8h_31ddb90cf2184ae0151b9e7ec8c1a51f} + + +Get a LIST from the Map. + +SAMP\_\-GETLISTFROMMAP -- Get a LIST from the Map + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em map}]handle to Map object \item[{\em key}]Map key \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]handle to List value \end{Desc} +\hypertarget{sampDecl_8h_33ca96ee3a8e7d26356c7b66f469da74}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-getMapFromList@{samp\_\-getMapFromList}} +\index{samp\_\-getMapFromList@{samp\_\-getMapFromList}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-getMapFromList}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Map} samp\_\-getMapFromList ({\bf List} {\em list}, \/ int {\em index})}} +\label{sampDecl_8h_33ca96ee3a8e7d26356c7b66f469da74} + + +Get a Map from the List. + +SAMP\_\-GETMAPFROMLIST -- Get a Map from the List + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em list}]List object handle \item[{\em index}]List index containing the Map \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]Map handle \end{Desc} +\hypertarget{sampDecl_8h_525e8ffdfa32867f392f2c1340215453}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-getMapFromMap@{samp\_\-getMapFromMap}} +\index{samp\_\-getMapFromMap@{samp\_\-getMapFromMap}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-getMapFromMap}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Map} samp\_\-getMapFromMap ({\bf Map} {\em map}, \/ char $\ast$ {\em key})}} +\label{sampDecl_8h_525e8ffdfa32867f392f2c1340215453} + + +Get a Map from the Map. + +SAMP\_\-GETMAPFROMMAP -- Get a Map from the Map + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em map}]handle to Map object \item[{\em key}]Map key \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]handle to Map value \end{Desc} +\hypertarget{sampDecl_8h_f9622190e1976c42efebd30f0c51cfe4}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-getMetadata@{samp\_\-getMetadata}} +\index{samp\_\-getMetadata@{samp\_\-getMetadata}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-getMetadata}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ samp\_\-getMetadata (handle\_\-t {\em handle}, \/ {\bf String} {\em name})}} +\label{sampDecl_8h_f9622190e1976c42efebd30f0c51cfe4} + + +Get the metadata item for the application. + +SAMP\_\-GETMETADATA -- Get the metadata item for the application. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References appMD::aKey, appMD::aVal, Samp::description, appMD::docURL, appMD::iconURL, Samp::meta, and appMD::nkeys.\hypertarget{sampDecl_8h_2ac4b5c50094c394a74f18d6ebe3cd91}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-GetMetadata@{samp\_\-GetMetadata}} +\index{samp\_\-GetMetadata@{samp\_\-GetMetadata}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-GetMetadata}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Map} samp\_\-GetMetadata (handle\_\-t {\em handle}, \/ {\bf String} {\em pubId})}} +\label{sampDecl_8h_2ac4b5c50094c394a74f18d6ebe3cd91} + + +Get the metadata for a specified app. + +SAMP\_\-GETMETADATA -- Get the metadata for a specified app. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em pubId}]App public-id \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]Map to message response \end{Desc} + + +References Samp::errortxt, Samp::hub, hub, Hub::id, and Hub::privateKey.\hypertarget{sampDecl_8h_27baec44edb57136951b5f86ae893246}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-getNullMap@{samp\_\-getNullMap}} +\index{samp\_\-getNullMap@{samp\_\-getNullMap}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-getNullMap}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Map} samp\_\-getNullMap (void)}} +\label{sampDecl_8h_27baec44edb57136951b5f86ae893246} + + +SAMP\_\-GETNULLMAP -- Generate a 'Null' map we can return to the \hyperlink{structHub}{Hub}. + +References samp\_\-newMap().\hypertarget{sampDecl_8h_cbf9b52550a9ab0b3515c32e692c46fb}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-getOKMap@{samp\_\-getOKMap}} +\index{samp\_\-getOKMap@{samp\_\-getOKMap}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-getOKMap}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Map} samp\_\-getOKMap (void)}} +\label{sampDecl_8h_cbf9b52550a9ab0b3515c32e692c46fb} + + +SAMP\_\-GETOKMAP -- Generate an 'OK' map we can return to the \hyperlink{structHub}{Hub}. + +References nullMap, samp\_\-newMap(), samp\_\-setMapInMap(), and samp\_\-setStringInMap().\hypertarget{sampDecl_8h_954712a523e3f86826b4711abd35b165}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-GetRegisteredClients@{samp\_\-GetRegisteredClients}} +\index{samp\_\-GetRegisteredClients@{samp\_\-GetRegisteredClients}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-GetRegisteredClients}]{\setlength{\rightskip}{0pt plus 5cm}{\bf List} samp\_\-GetRegisteredClients (handle\_\-t {\em handle})}} +\label{sampDecl_8h_954712a523e3f86826b4711abd35b165} + + +Get public-ids of the registered clients. + +SAMP\_\-GETREGISTEREDCLIENTS -- Get public-ids of the registered clients. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]handle to list of registered clients \end{Desc} + + +References Samp::hub, Hub::id, Hub::privateKey, samp\_\-listLen(), samp\_\-newList(), and samp\_\-setStringInList().\hypertarget{sampDecl_8h_6ef18dbc5870f58d2161c9ba03a81d26}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-getSampHandler@{samp\_\-getSampHandler}} +\index{samp\_\-getSampHandler@{samp\_\-getSampHandler}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-getSampHandler}]{\setlength{\rightskip}{0pt plus 5cm}void$\ast$ samp\_\-getSampHandler ({\bf String} {\em mtype})}} +\label{sampDecl_8h_6ef18dbc5870f58d2161c9ba03a81d26} + + +Get the Samphandler for the named mtype. + +SAMP\_\-GETSAMPHANDLER -- Get the Samphandler for the named mtype. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em mtype}]mtype string \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::nsubs, and Subs::sampFunc.\hypertarget{sampDecl_8h_2d1cd41c4583ac300aaa2d50ad3f76ed}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-getStringFromList@{samp\_\-getStringFromList}} +\index{samp\_\-getStringFromList@{samp\_\-getStringFromList}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-getStringFromList}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ samp\_\-getStringFromList ({\bf List} {\em list}, \/ int {\em index})}} +\label{sampDecl_8h_2d1cd41c4583ac300aaa2d50ad3f76ed} + + +Get a string from the List. + +SAMP\_\-GETSTRINGFROMLIST -- Get a string from the List + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em list}]List object handle \item[{\em index}]List index containing the string \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]character string \end{Desc} +\hypertarget{sampDecl_8h_96ca606e0e7da659c3dc0a30846bcd66}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-getStringFromMap@{samp\_\-getStringFromMap}} +\index{samp\_\-getStringFromMap@{samp\_\-getStringFromMap}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-getStringFromMap}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ samp\_\-getStringFromMap ({\bf Map} {\em map}, \/ char $\ast$ {\em key})}} +\label{sampDecl_8h_96ca606e0e7da659c3dc0a30846bcd66} + + +Get a string from the Map. + +SAMP\_\-GETSTRINGFROMMAP -- Get a string from the Map + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em map}]handle to Map object \item[{\em key}]Map key \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]string value from Map \end{Desc} +\hypertarget{sampDecl_8h_367a24fc0aa7a81416e6a0d0dbfcd93f}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-GetSubscribedClients@{samp\_\-GetSubscribedClients}} +\index{samp\_\-GetSubscribedClients@{samp\_\-GetSubscribedClients}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-GetSubscribedClients}]{\setlength{\rightskip}{0pt plus 5cm}{\bf List} samp\_\-GetSubscribedClients (handle\_\-t {\em handle}, \/ {\bf String} {\em mtype})}} +\label{sampDecl_8h_367a24fc0aa7a81416e6a0d0dbfcd93f} + + +Get clients matching the mtype subscription. + +SAMP\_\-GETSUBSCRIBEDCLIENTS -- Get clients matching the mtype subscription. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em mtype}]mtype string \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]handle to list of clients having mtype subscription \end{Desc} + + +References Samp::hub, Hub::id, Hub::privateKey, samp\_\-listLen(), samp\_\-newList(), and samp\_\-setStringInList().\hypertarget{sampDecl_8h_6bb258d378627da1aa0254fccdb6bd2c}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-getUserHandler@{samp\_\-getUserHandler}} +\index{samp\_\-getUserHandler@{samp\_\-getUserHandler}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-getUserHandler}]{\setlength{\rightskip}{0pt plus 5cm}void$\ast$ samp\_\-getUserHandler ({\bf String} {\em mtype})}} +\label{sampDecl_8h_6bb258d378627da1aa0254fccdb6bd2c} + + +Get the User handler for the named mtype. + +SAMP\_\-GETUSERHANDLER -- Get the User handler for the named mtype. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em mtype}]mtype string \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::defaultUserFunc, Samp::nsubs, and Subs::userFunc.\hypertarget{sampDecl_8h_52f471568663ac6f0116d57a9ce00f00}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-hubClose@{samp\_\-hubClose}} +\index{samp\_\-hubClose@{samp\_\-hubClose}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-hubClose}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-hubClose (handle\_\-t {\em handle})}} +\label{sampDecl_8h_52f471568663ac6f0116d57a9ce00f00} + + +Close a connection to the \hyperlink{structHub}{Hub}. + +SAMP\_\-HUBCLOSE -- Close a connection to the \hyperlink{structHub}{Hub}. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]hub handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]unregister status \end{Desc} + + +References appMD::aKey, appMD::aVal, Hub::meta, appMD::nkeys, samp\_\-freeHandle(), and samp\_\-hubUnRegister().\hypertarget{sampDecl_8h_088f1e762175d0dbc315853d06e50149}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-hubDeclareMetadata@{samp\_\-hubDeclareMetadata}} +\index{samp\_\-hubDeclareMetadata@{samp\_\-hubDeclareMetadata}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-hubDeclareMetadata}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-hubDeclareMetadata ({\bf Hub} $\ast$ {\em hub})}} +\label{sampDecl_8h_088f1e762175d0dbc315853d06e50149} + + +Declare \char`\"{}standard\char`\"{} metadata to the \hyperlink{structHub}{Hub}. + +SAMP\_\-DECLAREMETADATA -- Declare \char`\"{}standard\char`\"{} metadata to the \hyperlink{structHub}{Hub}. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em hub}]hub struct pointer \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]status \end{Desc} + + +References appMD::aKey, appMD::aVal, Hub::description, appMD::docURL, appMD::iconURL, Hub::id, Hub::meta, appMD::nkeys, and Hub::privateKey.\hypertarget{sampDecl_8h_7be493427eac28b2a064eedd8a7d63ff}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-hubDeclareSubscriptions@{samp\_\-hubDeclareSubscriptions}} +\index{samp\_\-hubDeclareSubscriptions@{samp\_\-hubDeclareSubscriptions}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-hubDeclareSubscriptions}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-hubDeclareSubscriptions ({\bf Hub} $\ast$ {\em hub})}} +\label{sampDecl_8h_7be493427eac28b2a064eedd8a7d63ff} + + +Declare mtype subscriptions to the \hyperlink{structHub}{Hub}. + +SAMP\_\-HUBDECLARESUBSCRIPTIONS -- Declare mtype subscriptions to the \hyperlink{structHub}{Hub}. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em hub}]hub struct pointer \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]status \end{Desc} + + +References Hub::id, Samp::nsubs, nullMap, Hub::privateKey, Hub::samp, samp\_\-freeMap(), and Subs::userFunc.\hypertarget{sampDecl_8h_19f64b527fcc431541206e41f8e36132}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-hubEvent@{samp\_\-hubEvent}} +\index{samp\_\-hubEvent@{samp\_\-hubEvent}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-hubEvent}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-hubEvent ({\bf String} {\em mtype})}} +\label{sampDecl_8h_19f64b527fcc431541206e41f8e36132} + + +Determine the type of \hyperlink{structHub}{Hub} event mtype. + +SAMP\_\-HUBEVENT -- Determine the type of \hyperlink{structHub}{Hub} event mtype. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em mtype}]mtype string \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]\hyperlink{structHub}{Hub} event code or -1 if not found \end{Desc} + + +References HUB\_\-SHUTDOWN.\hypertarget{sampDecl_8h_2b208c34c0e6017f071b9ce654d0f3d6}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-hubOpen@{samp\_\-hubOpen}} +\index{samp\_\-hubOpen@{samp\_\-hubOpen}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-hubOpen}]{\setlength{\rightskip}{0pt plus 5cm}handle\_\-t samp\_\-hubOpen ({\bf Samp} $\ast$ {\em sampP})}} +\label{sampDecl_8h_2b208c34c0e6017f071b9ce654d0f3d6} + + +Discover and open a connection to the SAMP \hyperlink{structHub}{Hub}. + +SAMP\_\-HUBOPEN -- Discover and open a connection to the SAMP \hyperlink{structHub}{Hub}. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em samp}]Same structure \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]hub handle \end{Desc} + + +References Hub::appId, Samp::appVer, Hub::appVer, appMD::desc, Hub::description, Samp::description, Hub::id, Hub::meta, Hub::samp, samp\_\-hubRegister(), samp\_\-hubSetXmlrpcCallback(), samp\_\-newHandle(), samp\_\-P2H(), Hub::timeout, and Hub::url.\hypertarget{sampDecl_8h_47b1a9a4627fde97f95b40b372153cf6}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-hubPing@{samp\_\-hubPing}} +\index{samp\_\-hubPing@{samp\_\-hubPing}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-hubPing}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-hubPing ({\bf Hub} $\ast$ {\em hub})}} +\label{sampDecl_8h_47b1a9a4627fde97f95b40b372153cf6} + + +Ping the \hyperlink{structHub}{Hub} to see if it is alive. + +SAMP\_\-HUBPING -- Ping the \hyperlink{structHub}{Hub} to see if it is alive. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em hub}]hub struct pointer \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]status \end{Desc} + + +References Hub::id, and Hub::privateKey.\hypertarget{sampDecl_8h_13ad32079ae1db571e3114b7bd8ba356}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-hubRegister@{samp\_\-hubRegister}} +\index{samp\_\-hubRegister@{samp\_\-hubRegister}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-hubRegister}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-hubRegister ({\bf Hub} $\ast$ {\em hub})}} +\label{sampDecl_8h_13ad32079ae1db571e3114b7bd8ba356} + + +Send a Register message to the \hyperlink{structHub}{Hub}. + +SAMP\_\-HUB\_\-REGISTER -- Send a Register message to the \hyperlink{structHub}{Hub}. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em hub}]hub struct pointer \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]status \end{Desc} + + +References Hub::hubId, Hub::id, Hub::privateKey, Hub::secret, and Hub::selfId.\hypertarget{sampDecl_8h_a704d2a0d290f2fdfb3ebfffc39adcb3}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-hubSendShutdown@{samp\_\-hubSendShutdown}} +\index{samp\_\-hubSendShutdown@{samp\_\-hubSendShutdown}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-hubSendShutdown}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-hubSendShutdown ({\bf Hub} $\ast$ {\em hub})}} +\label{sampDecl_8h_a704d2a0d290f2fdfb3ebfffc39adcb3} + + +Send a samp.app.event.shutdown message to the \hyperlink{structHub}{Hub}. + +SAMP\_\-HUBSENDSHUTDOWN -- Send a samp.app.event.shutdown message to the \hyperlink{structHub}{Hub}. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em hub}]hub struct pointer \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]status \end{Desc} + + +References Hub::id, Hub::privateKey, and samp\_\-nullResponse().\hypertarget{sampDecl_8h_2fcb0032e5ae98fff93becdb06da49f9}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-hubSetXmlrpcCallback@{samp\_\-hubSetXmlrpcCallback}} +\index{samp\_\-hubSetXmlrpcCallback@{samp\_\-hubSetXmlrpcCallback}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-hubSetXmlrpcCallback}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-hubSetXmlrpcCallback ({\bf Hub} $\ast$ {\em hub})}} +\label{sampDecl_8h_2fcb0032e5ae98fff93becdb06da49f9} + + +Set the client callback and send to \hyperlink{structHub}{Hub}. + +SAMP\_\-HUBSETXMLRPCCALLBACK -- Set the client callback and send to \hyperlink{structHub}{Hub} + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em hub}]hub struct pointer \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]status \end{Desc} + + +References Hub::id, Hub::privateKey, and samp\_\-serverPort().\hypertarget{sampDecl_8h_6d4e32ed0eb19f02cc8a75f75a98deec}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-hubUnRegister@{samp\_\-hubUnRegister}} +\index{samp\_\-hubUnRegister@{samp\_\-hubUnRegister}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-hubUnRegister}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-hubUnRegister ({\bf Hub} $\ast$ {\em hub})}} +\label{sampDecl_8h_6d4e32ed0eb19f02cc8a75f75a98deec} + + +Send a UnRegister message to the \hyperlink{structHub}{Hub}. + +SAMP\_\-HUBUNREGISTER -- Send a UnRegister message to the \hyperlink{structHub}{Hub}. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em hub}]hub struct pointer \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]status \end{Desc} + + +References Hub::id, and Hub::privateKey.\hypertarget{sampDecl_8h_a75368198ec8cd2fff6ad304806862b8}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-id2app@{samp\_\-id2app}} +\index{samp\_\-id2app@{samp\_\-id2app}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-id2app}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ samp\_\-id2app (handle\_\-t {\em handle}, \/ char $\ast$ {\em pubId})}} +\label{sampDecl_8h_a75368198ec8cd2fff6ad304806862b8} + + +Convert a public-ID to the application name. + +SAMP\_\-ID2APP -- Convert a public-ID to the application name. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em pubId}]public ID of application \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]name of registered application \end{Desc} + + +References Samp::clients, Client::name, and Samp::nclients.\hypertarget{sampDecl_8h_4812b571ed87f7842ca20b7024770df3}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-imageLoadFITS@{samp\_\-imageLoadFITS}} +\index{samp\_\-imageLoadFITS@{samp\_\-imageLoadFITS}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-imageLoadFITS}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-imageLoadFITS (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ {\bf String} {\em url}, \/ {\bf String} {\em imageId}, \/ {\bf String} {\em name})}} +\label{sampDecl_8h_4812b571ed87f7842ca20b7024770df3} + + +Tell an app to load a FITS image. + +SAMP\_\-IMAGELOADFITS -- Tell an app to load a FITS image. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]Message recipient (or \char`\"{}all\char`\"{} for broadcast) \item[{\em url}]URL to table to be loaded \item[{\em imageId}]ID assigned to image (optional) \item[{\em name}]Name assigned to image (optional) \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::hub, hub, samp\_\-freeMsg(), samp\_\-msgParam(), samp\_\-newMsg(), samp\_\-newParam(), and samp\_\-sendMsg().\hypertarget{sampDecl_8h_9bd8036dd65dc4f874f39568b691a123}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-imLoadHandler@{samp\_\-imLoadHandler}} +\index{samp\_\-imLoadHandler@{samp\_\-imLoadHandler}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-imLoadHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-imLoadHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampDecl_8h_9bd8036dd65dc4f874f39568b691a123} + + +Handle an image.load.fits message. + +SAMP\_\-IMLOADHANDLER -- Handle an image.load.fits message. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::handlerMode, samp\_\-getStringFromMap(), samp\_\-getUserHandler(), and SZ\_\-NAME.\hypertarget{sampDecl_8h_1e494e73abe2ddfd946fb39e84da42a9}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-listClients@{samp\_\-listClients}} +\index{samp\_\-listClients@{samp\_\-listClients}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-listClients}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-listClients (handle\_\-t {\em handle})}} +\label{sampDecl_8h_1e494e73abe2ddfd946fb39e84da42a9} + + +SAMP\_\-LISTCLIENTS -- List the available clients to stdout. + +References Samp::clients, Client::name, and Samp::nclients.\hypertarget{sampDecl_8h_c260afb0cbf19b427e3eba96a2341e52}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-listLen@{samp\_\-listLen}} +\index{samp\_\-listLen@{samp\_\-listLen}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-listLen}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-listLen ({\bf List} {\em list})}} +\label{sampDecl_8h_c260afb0cbf19b427e3eba96a2341e52} + + +Get number of elements in a List. + +SAMP\_\-LISTLEN -- Get number of elements in a List. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em list}]List object handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{sampDecl_8h_ff4d125fc9594be25984989fad2fd3c8}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-mapClients@{samp\_\-mapClients}} +\index{samp\_\-mapClients@{samp\_\-mapClients}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-mapClients}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-mapClients (handle\_\-t {\em handle})}} +\label{sampDecl_8h_ff4d125fc9594be25984989fad2fd3c8} + + +SAMP\_\-MAPCLIENTS -- Map the public-ids of registered clients to the appName. + +References Samp::clients, Client::name, Samp::nclients, samp\_\-freeList(), samp\_\-GetMetadata(), samp\_\-GetRegisteredClients(), samp\_\-getStringFromList(), samp\_\-listLen(), and SZ\_\-NAME. + +Referenced by sampStartup().\hypertarget{sampDecl_8h_2e77115e730e95b31d897b8c50999b74}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-Metadata@{samp\_\-Metadata}} +\index{samp\_\-Metadata@{samp\_\-Metadata}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-Metadata}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-Metadata (handle\_\-t {\em handle}, \/ {\bf String} {\em field}, \/ {\bf String} {\em value})}} +\label{sampDecl_8h_2e77115e730e95b31d897b8c50999b74} + + +Set a metadata field value for the application. + +SAMP\_\-METADATA -- Set a metadata field for the application. This will be sent to the \hyperlink{structHub}{Hub} later in a declareMetadata() call. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp handle \item[{\em field}]metadata field to set (name, author, etc) \item[{\em samp}]value of field \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References appMD::aKey, Samp::appVer, Hub::appVer, appMD::aVal, appMD::desc, Hub::description, Samp::description, appMD::docURL, Samp::hub, appMD::iconURL, Hub::meta, Samp::meta, appMD::nkeys, and sampTrace().\hypertarget{sampDecl_8h_281c8f7f8b21a74704dd200d5aaed481}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-msgParam@{samp\_\-msgParam}} +\index{samp\_\-msgParam@{samp\_\-msgParam}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-msgParam}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-msgParam ({\bf Msg} {\em msg}, \/ {\bf Param} {\em param})}} +\label{sampDecl_8h_281c8f7f8b21a74704dd200d5aaed481} + + +Add a parameter to the Msg. + +SAMP\_\-MSGPARAM -- Add a parameter to the Msg. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em msg}]handle to Msg object \item[{\em keyw}]map keyword \item[{\em param}]parameter map \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{sampDecl_8h_b5375a6478dccefe7df2b48416604b29}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-newList@{samp\_\-newList}} +\index{samp\_\-newList@{samp\_\-newList}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-newList}]{\setlength{\rightskip}{0pt plus 5cm}handle\_\-t samp\_\-newList (void)}} +\label{sampDecl_8h_b5375a6478dccefe7df2b48416604b29} + + +Create a new List object. + +SAMP\_\-NEWLIST -- Create a new List object + +\begin{Desc} +\item[Returns:]handle to List object \end{Desc} +\hypertarget{sampDecl_8h_55c96c3dfe79d00b8445a60769785dae}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-newMap@{samp\_\-newMap}} +\index{samp\_\-newMap@{samp\_\-newMap}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-newMap}]{\setlength{\rightskip}{0pt plus 5cm}handle\_\-t samp\_\-newMap (void)}} +\label{sampDecl_8h_55c96c3dfe79d00b8445a60769785dae} + + +Create a new Map object. + +SAMP\_\-NEWMAP -- Create a new Map object + +\begin{Desc} +\item[Returns:]handle to new Map \end{Desc} +\hypertarget{sampDecl_8h_1a66c53bb9e023fb0219ab9baeded3d6}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-newMsg@{samp\_\-newMsg}} +\index{samp\_\-newMsg@{samp\_\-newMsg}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-newMsg}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Msg} samp\_\-newMsg (void)}} +\label{sampDecl_8h_1a66c53bb9e023fb0219ab9baeded3d6} + + +Create a new Msg object. + +SAMP\_\-NEWMSG -- Create a new Msg object + +\begin{Desc} +\item[Returns:]handle to new Msg \end{Desc} +\hypertarget{sampDecl_8h_c58f0b105566a61785fb9f2ed9b42830}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-newParam@{samp\_\-newParam}} +\index{samp\_\-newParam@{samp\_\-newParam}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-newParam}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Param} samp\_\-newParam (void)}} +\label{sampDecl_8h_c58f0b105566a61785fb9f2ed9b42830} + + +Create a new Param object. + +SAMP\_\-NEWPARAM -- Create a new Param object + +\begin{Desc} +\item[Returns:]handle to new Param \end{Desc} +\hypertarget{sampDecl_8h_c73788ae17493c4042948f6b861ddd74}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-notify@{samp\_\-notify}} +\index{samp\_\-notify@{samp\_\-notify}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-notify}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-notify (handle\_\-t {\em handle}, \/ {\bf String} {\em recipId}, \/ {\bf Map} {\em msg})}} +\label{sampDecl_8h_c73788ae17493c4042948f6b861ddd74} + + +Make a notify() call to the \hyperlink{structHub}{Hub}. + +SAMP\_\-NOTIFY -- Make a notify() call to the \hyperlink{structHub}{Hub} + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recipId}]recipient ID \item[{\em msg}]message map \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::hub, hub, Hub::id, Hub::privateKey, samp\_\-app2id(), and samp\_\-nullResponse().\hypertarget{sampDecl_8h_f48228224c20ddaf8b4b4ce39fa6ec16}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-notifyAll@{samp\_\-notifyAll}} +\index{samp\_\-notifyAll@{samp\_\-notifyAll}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-notifyAll}]{\setlength{\rightskip}{0pt plus 5cm}{\bf List} samp\_\-notifyAll (handle\_\-t {\em handle}, \/ {\bf Map} {\em msg})}} +\label{sampDecl_8h_f48228224c20ddaf8b4b4ce39fa6ec16} + + +Make a notifyAll() call to the \hyperlink{structHub}{Hub}. + +SAMP\_\-NOTIFYALL -- Make a notifyAll() call to the \hyperlink{structHub}{Hub} + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em msg}]message map \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::debug, Samp::errortxt, Samp::hub, hub, Hub::id, Hub::privateKey, and Samp::trace.\hypertarget{sampDecl_8h_5361571754505eaefdf5739cd3e9519e}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-nullResponse@{samp\_\-nullResponse}} +\index{samp\_\-nullResponse@{samp\_\-nullResponse}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-nullResponse}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-nullResponse (void $\ast$ {\em data})}} +\label{sampDecl_8h_5361571754505eaefdf5739cd3e9519e} + + +SAMP\_\-NULLRESPONSE -- Handler to ignore async replies. \hypertarget{sampDecl_8h_19b75403d63714c4fccc8a8d4fa4c8cf}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-paramGet@{samp\_\-paramGet}} +\index{samp\_\-paramGet@{samp\_\-paramGet}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-paramGet}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ samp\_\-paramGet (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ {\bf String} {\em name})}} +\label{sampDecl_8h_19b75403d63714c4fccc8a8d4fa4c8cf} + + +Get a parameter variable in a remote application. + +SAMP\_\-PARAMGET -- Get a parameter variable in a remote application. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]name of recipient (or 'all') \item[{\em name}]Name of variable in receiver's environment \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]NULL, Value of variable, or list of values \end{Desc} + + +References Samp::clients, Samp::errortxt, Samp::hub, hub, Hub::id, Client::name, Samp::nclients, Hub::privateKey, samp\_\-app2id(), samp\_\-freeMsg(), samp\_\-msgParam(), samp\_\-newMsg(), samp\_\-newParam(), and Hub::timeout.\hypertarget{sampDecl_8h_659c272ce881662c1826a04728dc06f6}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-paramGetHandler@{samp\_\-paramGetHandler}} +\index{samp\_\-paramGetHandler@{samp\_\-paramGetHandler}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-paramGetHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-paramGetHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampDecl_8h_659c272ce881662c1826a04728dc06f6} + + +Handle a client.param.set message. + +SAMP\_\-PARAMGETHANDLER -- Handle a client.param.set message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::handlerMode, samp\_\-freeMap(), samp\_\-getStringFromMap(), samp\_\-getUserHandler(), samp\_\-newMap(), samp\_\-setHandlerReply(), samp\_\-setMapInMap(), samp\_\-setStringInMap(), and SZ\_\-NAME.\hypertarget{sampDecl_8h_d8c5669be313874fef1c484643683f49}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-paramInit@{samp\_\-paramInit}} +\index{samp\_\-paramInit@{samp\_\-paramInit}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-paramInit}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Param} samp\_\-paramInit ({\bf Msg} {\em msg})}} +\label{sampDecl_8h_d8c5669be313874fef1c484643683f49} + + +Get number of Params. + +SAMP\_\-PARAMINIT -- Get number of Params. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em msg}]handle to Msg object \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{sampDecl_8h_7680995e5d4f26ea3d91bf72c9c72e51}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-paramLen@{samp\_\-paramLen}} +\index{samp\_\-paramLen@{samp\_\-paramLen}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-paramLen}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-paramLen ({\bf Msg} {\em msg})}} +\label{sampDecl_8h_7680995e5d4f26ea3d91bf72c9c72e51} + + +Get number of Params. + +SAMP\_\-PARAMLEN -- Get number of Params. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em msg}]handle to Msg object \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{sampDecl_8h_535cb6760c733a75746d2f104b1a01be}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-paramSet@{samp\_\-paramSet}} +\index{samp\_\-paramSet@{samp\_\-paramSet}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-paramSet}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-paramSet (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ {\bf String} {\em name}, \/ {\bf String} {\em value})}} +\label{sampDecl_8h_535cb6760c733a75746d2f104b1a01be} + + +Set an parameter variable in a remote application. + +SAMP\_\-PARAMSET -- Set an parameter variable in a remote application. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]name of recipient (or 'all') \item[{\em name}]Name of variable in receiver's environment \item[{\em value}]Value of variable or NULL \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::hub, hub, samp\_\-freeMsg(), samp\_\-msgParam(), samp\_\-newMsg(), samp\_\-newParam(), and samp\_\-sendMsg().\hypertarget{sampDecl_8h_071aa9e32f2e94d5b667e87cf65d2bdf}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-paramSetHandler@{samp\_\-paramSetHandler}} +\index{samp\_\-paramSetHandler@{samp\_\-paramSetHandler}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-paramSetHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-paramSetHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampDecl_8h_071aa9e32f2e94d5b667e87cf65d2bdf} + + +Handle a client.param.set message. + +SAMP\_\-PARAMSETHANDLER -- Handle a client.param.set message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::handlerMode, samp\_\-getStringFromMap(), samp\_\-getUserHandler(), and SZ\_\-NAME.\hypertarget{sampDecl_8h_2be0812dc8d34c68407c62762f727c51}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-Ping@{samp\_\-Ping}} +\index{samp\_\-Ping@{samp\_\-Ping}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-Ping}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-Ping (handle\_\-t {\em handle}, \/ {\bf String} {\em appName})}} +\label{sampDecl_8h_2be0812dc8d34c68407c62762f727c51} + + +Ping the hub/app to see if it is alive (returns $>$0). + +SAMP\_\-PING -- Ping the hub/app to see if it is alive (returns $>$0). + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em appName}]application name \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]OK or ERR if no response \end{Desc} + + +References Samp::hub, samp\_\-app2id(), samp\_\-callAll(), samp\_\-callAndWait(), samp\_\-freeMap(), samp\_\-freeMsg(), samp\_\-hubPing(), samp\_\-msgParam(), samp\_\-newMsg(), samp\_\-newParam(), and samp\_\-setErr().\hypertarget{sampDecl_8h_16d8b8822d169107b8702ae753797923}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-PingHandler@{samp\_\-PingHandler}} +\index{samp\_\-PingHandler@{samp\_\-PingHandler}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-PingHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-PingHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampDecl_8h_16d8b8822d169107b8702ae753797923} + + +Is app alive and responding to messages? + +SAMP\_\-PINGHANDLER -- Simple aliveness test function. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::handlerMode, and samp\_\-getUserHandler().\hypertarget{sampDecl_8h_3f5632858a2b09759ffe98cd2e183cfb}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-pointAtHandler@{samp\_\-pointAtHandler}} +\index{samp\_\-pointAtHandler@{samp\_\-pointAtHandler}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-pointAtHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-pointAtHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampDecl_8h_3f5632858a2b09759ffe98cd2e183cfb} + + +Handle a coord.pointAt.sky message. + +SAMP\_\-POINTATHANDLER -- Handle a coord.pointAt.sky message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::handlerMode, samp\_\-getFloatFromMap(), and samp\_\-getUserHandler().\hypertarget{sampDecl_8h_a8a947c24f2c9333adf4e5d7fa11d134}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-printMap@{samp\_\-printMap}} +\index{samp\_\-printMap@{samp\_\-printMap}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-printMap}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-printMap ({\bf String} {\em name}, \/ {\bf Map} {\em map})}} +\label{sampDecl_8h_a8a947c24f2c9333adf4e5d7fa11d134} + + +SAMP\_\-PRINTMAP -- Print the contents of a Map structure. \hypertarget{sampDecl_8h_ace22fd6ada035930ef93e5a54c375b1}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-printMetadata@{samp\_\-printMetadata}} +\index{samp\_\-printMetadata@{samp\_\-printMetadata}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-printMetadata}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-printMetadata (handle\_\-t {\em handle}, \/ {\bf String} {\em name})}} +\label{sampDecl_8h_ace22fd6ada035930ef93e5a54c375b1} + + +Print the metadata for the application. + +SAMP\_\-PRINTMETADATA -- Print the metadata for the application. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References appMD::aKey, appMD::aVal, Samp::description, appMD::docURL, appMD::iconURL, Samp::meta, and appMD::nkeys.\hypertarget{sampDecl_8h_2933b26ac05c440196368edad0167bdf}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-processHubEvent@{samp\_\-processHubEvent}} +\index{samp\_\-processHubEvent@{samp\_\-processHubEvent}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-processHubEvent}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-processHubEvent ({\bf String} {\em mtype}, \/ {\bf Map} {\em params})}} +\label{sampDecl_8h_2933b26ac05c440196368edad0167bdf} + + +Determine the type of \hyperlink{structHub}{Hub} event mtype. + +SAMP\_\-HUBEVENT -- Determine the type of \hyperlink{structHub}{Hub} event mtype. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em mtype}]mtype string \item[{\em params}]message parameter Map \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]non-zero value if a \hyperlink{structHub}{Hub} event was processed \end{Desc} + + +References HUB\_\-SHUTDOWN, samp\_\-addClient(), samp\_\-hubEvent(), samp\_\-mutex, samp\_\-P2H(), samp\_\-removeClient(), sampH, and sampShutdown().\hypertarget{sampDecl_8h_59f85e0fce4c9ae7121c98e137d3f743}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-receiveCall@{samp\_\-receiveCall}} +\index{samp\_\-receiveCall@{samp\_\-receiveCall}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-receiveCall}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-receiveCall (void $\ast$ {\em data})}} +\label{sampDecl_8h_59f85e0fce4c9ae7121c98e137d3f743} + + +test.echo method + +receiveCall () client method. + +SAMP\_\-TESTECHO -- test.echo method + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em data}]caller param data \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]status code or errno\end{Desc} +SAMP\_\-RECEIVECALL -- receiveCall() client method. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em data}]caller param data \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]status code or errno \end{Desc} + + +References Samp::defaultUserFunc, OK\_\-Map, samp\_\-execUserHandler(), samp\_\-getHandlerReply(), samp\_\-getSampHandler(), samp\_\-getUserHandler(), samp\_\-Reply(), sampH, and Samp::trace.\hypertarget{sampDecl_8h_03be7cc9e154a6ccdd499286df640936}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-receiveNotification@{samp\_\-receiveNotification}} +\index{samp\_\-receiveNotification@{samp\_\-receiveNotification}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-receiveNotification}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-receiveNotification (void $\ast$ {\em data})}} +\label{sampDecl_8h_03be7cc9e154a6ccdd499286df640936} + + +receiveNotification () client method. + +SAMP\_\-RECEIVENOTIFICATION -- receiveNotification() client method. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em data}]caller param data \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]status code or errno \end{Desc} + + +References Samp::defaultUserFunc, OK\_\-Map, samp\_\-execUserHandler(), samp\_\-getHandlerReply(), samp\_\-getSampHandler(), samp\_\-getUserHandler(), samp\_\-processHubEvent(), and Samp::trace.\hypertarget{sampDecl_8h_754b50ad59145c7fd1e4c8f4277f11e4}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-receiveResponse@{samp\_\-receiveResponse}} +\index{samp\_\-receiveResponse@{samp\_\-receiveResponse}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-receiveResponse}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-receiveResponse (void $\ast$ {\em data})}} +\label{sampDecl_8h_754b50ad59145c7fd1e4c8f4277f11e4} + + +receiveResponse () client method. + +SAMP\_\-RECEIVERESPONSE -- receiveResponse() client method. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em data}]caller param data \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]status code or errno \end{Desc} + + +References Samp::defaultUserFunc, OK\_\-Map, samp\_\-execUserHandler(), and Samp::trace.\hypertarget{sampDecl_8h_84ffd50bd4b8dc79e9cf32398c6b3d69}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-Register@{samp\_\-Register}} +\index{samp\_\-Register@{samp\_\-Register}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-Register}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-Register (handle\_\-t {\em handle})}} +\label{sampDecl_8h_84ffd50bd4b8dc79e9cf32398c6b3d69} + + +Register with the \hyperlink{structHub}{Hub} using the currently stored metadata. + +SAMP\_\-REGISTER -- Register with the \hyperlink{structHub}{Hub} using the currently stored metadata. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::hub, hub, Hub::hubId, Hub::id, Hub::privateKey, samp\_\-replyStatus(), Hub::secret, and Hub::selfId.\hypertarget{sampDecl_8h_e30e492f306a40f853a454faf60ab479}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-removeClient@{samp\_\-removeClient}} +\index{samp\_\-removeClient@{samp\_\-removeClient}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-removeClient}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-removeClient (handle\_\-t {\em handle}, \/ {\bf String} {\em id})}} +\label{sampDecl_8h_e30e492f306a40f853a454faf60ab479} + + +SAMP\_\-REMOVECLIENT -- Remove a registered client from the list of known apps that do the public-private name translation. + +References Samp::clients, Client::name, Samp::nclients, and SZ\_\-NAME. + +Referenced by samp\_\-processHubEvent().\hypertarget{sampDecl_8h_9c6ff3d76997c3d7301a977309a117e0}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-Reply@{samp\_\-Reply}} +\index{samp\_\-Reply@{samp\_\-Reply}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-Reply}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-Reply (handle\_\-t {\em handle}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em response})}} +\label{sampDecl_8h_9c6ff3d76997c3d7301a977309a117e0} + + +Reply to a message. + +SAMP\_\-REPLY -- Reply to a message. All we do here is send the reply message, we require that the response Map already be defined. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em msg\_\-id}]message ID \item[{\em response}]response map \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::hub, hub, Hub::id, Hub::privateKey, and samp\_\-nullResponse().\hypertarget{sampDecl_8h_d47754f3b9fceff4d3019821519432b4}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-replyStatus@{samp\_\-replyStatus}} +\index{samp\_\-replyStatus@{samp\_\-replyStatus}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-replyStatus}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-replyStatus (handle\_\-t {\em handle})}} +\label{sampDecl_8h_d47754f3b9fceff4d3019821519432b4} + + +Reply with the status of the last message sent. + +SAMP\_\-REPLYSTATUS -- Reply with the status of the last message sent. + +May be used to 'poll' for a reponse from the caller in cases where use of a callback is a problem. Codes are: $<$0==ERR, 0==PENDING, 1==OK + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em samp}]samp struct ptr \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]message status \end{Desc} + + +Referenced by samp\_\-Register().\hypertarget{sampDecl_8h_287569451dc1bf59d1f9f6d13b56716d}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-resConeHandler@{samp\_\-resConeHandler}} +\index{samp\_\-resConeHandler@{samp\_\-resConeHandler}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-resConeHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-resConeHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampDecl_8h_287569451dc1bf59d1f9f6d13b56716d} + + +handle a voresource.loadlist message + +SAMP\_\-RESCONEHANDLER -- Handle a voresource.loadlist.cone message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::handlerMode, samp\_\-getMapFromMap(), samp\_\-getStringFromMap(), samp\_\-getUserHandler(), samp\_\-resLoadHandler(), and SZ\_\-NAME.\hypertarget{sampDecl_8h_c0bf7cf7fea362c0c82ad7bc3f267c48}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-resLoadHandler@{samp\_\-resLoadHandler}} +\index{samp\_\-resLoadHandler@{samp\_\-resLoadHandler}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-resLoadHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-resLoadHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampDecl_8h_c0bf7cf7fea362c0c82ad7bc3f267c48} + + +handle a voresource.loadlist message + +SAMP\_\-RESLOADHANDLER -- handle a voresource.loadlist.$\ast$ message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::handlerMode, samp\_\-getMapFromMap(), samp\_\-getStringFromMap(), samp\_\-getUserHandler(), and SZ\_\-NAME.\hypertarget{sampDecl_8h_8013c549ef47e0507edf39c8ab1b62aa}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-resourceLoad@{samp\_\-resourceLoad}} +\index{samp\_\-resourceLoad@{samp\_\-resourceLoad}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-resourceLoad}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-resourceLoad (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ {\bf String} {\em type}, \/ {\bf String} {\em name}, \/ {\bf Map} {\em resMap})}} +\label{sampDecl_8h_8013c549ef47e0507edf39c8ab1b62aa} + + +Exchange a resource list. + +SAMP\_\-RESOURCELOAD -- Exchange a resource list. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]Name of recipient (or 'all') \item[{\em type}]Resource type (or NULL) \item[{\em name}]Descriptive name (optional) \item[{\em resMap}]Resource map \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::hub, hub, samp\_\-addMapParam(), samp\_\-freeMsg(), samp\_\-msgParam(), samp\_\-newMsg(), samp\_\-newParam(), samp\_\-sendMsg(), and SZ\_\-NAME.\hypertarget{sampDecl_8h_8b2300222d7b11f144eb4385412e69a5}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-resSiapHandler@{samp\_\-resSiapHandler}} +\index{samp\_\-resSiapHandler@{samp\_\-resSiapHandler}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-resSiapHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-resSiapHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampDecl_8h_8b2300222d7b11f144eb4385412e69a5} + + +handle a voresource.loadlist message + +SAMP\_\-RESSIAPHANDLER -- Handle a voresource.loadlist.siap message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::handlerMode, samp\_\-getMapFromMap(), samp\_\-getStringFromMap(), samp\_\-getUserHandler(), samp\_\-resLoadHandler(), and SZ\_\-NAME.\hypertarget{sampDecl_8h_866578a01c3b762435823b1b11869c42}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-resSsapHandler@{samp\_\-resSsapHandler}} +\index{samp\_\-resSsapHandler@{samp\_\-resSsapHandler}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-resSsapHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-resSsapHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampDecl_8h_866578a01c3b762435823b1b11869c42} + + +handle a voresource.loadlist message + +SAMP\_\-RESSSAPHANDLER -- Handle a voresource.loadlist.ssap message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::handlerMode, samp\_\-getMapFromMap(), samp\_\-getStringFromMap(), samp\_\-getUserHandler(), samp\_\-resLoadHandler(), and SZ\_\-NAME.\hypertarget{sampDecl_8h_ad42ca17cbaf23012ad497559ea45e4c}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-resTapHandler@{samp\_\-resTapHandler}} +\index{samp\_\-resTapHandler@{samp\_\-resTapHandler}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-resTapHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-resTapHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampDecl_8h_ad42ca17cbaf23012ad497559ea45e4c} + + +handle a voresource.loadlist message + +SAMP\_\-RESTAPHANDLER -- Handle a voresource.loadlist.tap message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::handlerMode, samp\_\-getMapFromMap(), samp\_\-getStringFromMap(), samp\_\-getUserHandler(), samp\_\-resLoadHandler(), and SZ\_\-NAME.\hypertarget{sampDecl_8h_fa207ebdc587ba5eeab60fbf79b635d4}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-resVOSpaceHandler@{samp\_\-resVOSpaceHandler}} +\index{samp\_\-resVOSpaceHandler@{samp\_\-resVOSpaceHandler}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-resVOSpaceHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-resVOSpaceHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampDecl_8h_fa207ebdc587ba5eeab60fbf79b635d4} + + +handle a voresource.loadlist message + +SAMP\_\-RESVOSPACEHANDLER -- Handle a voresource.loadlist.vospace message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::handlerMode, samp\_\-getMapFromMap(), samp\_\-getStringFromMap(), samp\_\-getUserHandler(), samp\_\-resLoadHandler(), and SZ\_\-NAME.\hypertarget{sampDecl_8h_b2ff2e029c57b56ad57416c624341fe6}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-sendGeneric@{samp\_\-sendGeneric}} +\index{samp\_\-sendGeneric@{samp\_\-sendGeneric}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-sendGeneric}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-sendGeneric (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em args}\mbox{[}$\,$\mbox{]})}} +\label{sampDecl_8h_b2ff2e029c57b56ad57416c624341fe6} + + +Send a geenric message. + +SAMP\_\-SENDGENERIC -- Send a generic message. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]Name of recipient (or 'all') \item[{\em mtype}]Message type \item[{\em args}]Argument list \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR\end{Desc} +This method can be used to send any user-defined message. The 'mtype' string is arbitrary, we just assume the receiving client can understand what it means. The 'args' String array can be an array of values in which case the parameter name will be a series of generic 'arg0' thru 'argN-1' names. + +References Samp::hub, hub, samp\_\-addFloatParam(), samp\_\-addIntParam(), samp\_\-freeMsg(), samp\_\-msgParam(), samp\_\-newMsg(), samp\_\-newParam(), samp\_\-sendMsg(), and SZ\_\-NAME.\hypertarget{sampDecl_8h_80ef1a82845b96091857c7d4a3c7972c}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-sendMsg@{samp\_\-sendMsg}} +\index{samp\_\-sendMsg@{samp\_\-sendMsg}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-sendMsg}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-sendMsg (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ {\bf Map} {\em msg})}} +\label{sampDecl_8h_80ef1a82845b96091857c7d4a3c7972c} + + +Send the specified message. + +SAMP\_\-SENDMSG -- Send the specified message. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]Name of recipient (or 'all') \item[{\em msg}]Message map \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::clients, Samp::msgMode, Samp::nclients, samp\_\-app2id(), samp\_\-call(), samp\_\-callAll(), samp\_\-callAndWait(), samp\_\-notify(), samp\_\-notifyAll(), and samp\_\-setErr().\hypertarget{sampDecl_8h_0af6dba3d1022e6b220a9b1076021353}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-serverPort@{samp\_\-serverPort}} +\index{samp\_\-serverPort@{samp\_\-serverPort}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-serverPort}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-serverPort (void)}} +\label{sampDecl_8h_0af6dba3d1022e6b220a9b1076021353} + + +Return a unique port number for the server. + +SAMP\_\-SERVERPORT -- Return a unique port number for the server. + +\begin{Desc} +\item[Returns:]port number \end{Desc} +\hypertarget{sampDecl_8h_8fbfdc550ede5d52840300ab33639c49}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-setAppVersion@{samp\_\-setAppVersion}} +\index{samp\_\-setAppVersion@{samp\_\-setAppVersion}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-setAppVersion}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setAppVersion (handle\_\-t {\em handle}, \/ {\bf String} {\em version})}} +\label{sampDecl_8h_8fbfdc550ede5d52840300ab33639c49} + + +Set the application name string. + +Set the application version string. + +SAMP\_\-SETAPPNAME -- Set the application name string. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp handle \item[{\em name}]application name \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing\end{Desc} +SAMP\_\-SETAPPVERSION -- Set the application version string. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp handle \item[{\em name}]application version \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Hub::appVer, Samp::appVer, and Samp::hub.\hypertarget{sampDecl_8h_a9aef12dd82bfd38a2382a4ac88c54af}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-setASyncMode@{samp\_\-setASyncMode}} +\index{samp\_\-setASyncMode@{samp\_\-setASyncMode}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-setASyncMode}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setASyncMode (handle\_\-t {\em handle})}} +\label{sampDecl_8h_a9aef12dd82bfd38a2382a4ac88c54af} + + +Set the calling mode to use asynchronous messaging. + +SAMP\_\-SETASYNCMODE -- Set the calling mode to use asynchronous messaging. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::msgMode.\hypertarget{sampDecl_8h_d4c1514e94c9ef511cfcd27004c38c4d}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-setCallByRef@{samp\_\-setCallByRef}} +\index{samp\_\-setCallByRef@{samp\_\-setCallByRef}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-setCallByRef}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setCallByRef (handle\_\-t {\em handle})}} +\label{sampDecl_8h_d4c1514e94c9ef511cfcd27004c38c4d} + + +Have interface call user handlers by reference. + +SAMP\_\-SETCALLBYREF -- Have interface call user handlers by reference. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::handlerMode.\hypertarget{sampDecl_8h_fc27715ec9a5cb60cf0b5415eb7f9a48}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-setCallMode@{samp\_\-setCallMode}} +\index{samp\_\-setCallMode@{samp\_\-setCallMode}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-setCallMode}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setCallMode (handle\_\-t {\em handle}, \/ int {\em mode})}} +\label{sampDecl_8h_fc27715ec9a5cb60cf0b5415eb7f9a48} + + +Set the default calling mode (synch or asynch). + +SAMP\_\-SETCALLMODE -- Set the default calling mode (synch or asynch) + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp handle \item[{\em mode}]call mode (synch or asynch) \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::msgMode.\hypertarget{sampDecl_8h_91aeabe77e920fc1924b1cdc4f088e64}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-setErr@{samp\_\-setErr}} +\index{samp\_\-setErr@{samp\_\-setErr}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-setErr}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-setErr (handle\_\-t {\em handle}, \/ {\bf Map} {\em resp})}} +\label{sampDecl_8h_91aeabe77e920fc1924b1cdc4f088e64} + + +Set the error response string. + +SAMP\_\-SETERR -- Set the error response string/code. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em resp}]Response map \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::errortxt.\hypertarget{sampDecl_8h_041a551aff57ca03f3ff72a9803e2b58}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-setFloatInList@{samp\_\-setFloatInList}} +\index{samp\_\-setFloatInList@{samp\_\-setFloatInList}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-setFloatInList}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setFloatInList ({\bf List} {\em list}, \/ float {\em rval})}} +\label{sampDecl_8h_041a551aff57ca03f3ff72a9803e2b58} + + +Set a Float in a List (append). + +SAMP\_\-SETFLOATINLIST -- Set a Float in a List (append) + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em list1}]List object handle \item[{\em rval}]Float value to be appended \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{sampDecl_8h_0f07ae542f5b317311b3799bd96a88fd}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-setFloatInMap@{samp\_\-setFloatInMap}} +\index{samp\_\-setFloatInMap@{samp\_\-setFloatInMap}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-setFloatInMap}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setFloatInMap ({\bf Map} {\em map}, \/ char $\ast$ {\em key}, \/ float {\em value})}} +\label{sampDecl_8h_0f07ae542f5b317311b3799bd96a88fd} + + +Set a string in a Map (append). + +SAMP\_\-SETFLOATINMAP -- Set a Float in a Map (append) + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em map}]handle to Map object \item[{\em key}]Map key \item[{\em value}]value \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{sampDecl_8h_2d8a8a26d7284bb211a933895cddd29c}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-setIntInList@{samp\_\-setIntInList}} +\index{samp\_\-setIntInList@{samp\_\-setIntInList}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-setIntInList}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setIntInList ({\bf List} {\em list}, \/ int {\em ival})}} +\label{sampDecl_8h_2d8a8a26d7284bb211a933895cddd29c} + + +Set an Int in a List (append). + +SAMP\_\-SETINTINLIST -- Set an Int in a List (append) + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em list1}]List object handle \item[{\em ival}]Integer value to be appended \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{sampDecl_8h_c22ec42dbf9a01c9b4e00cf011e7eb9d}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-setIntInMap@{samp\_\-setIntInMap}} +\index{samp\_\-setIntInMap@{samp\_\-setIntInMap}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-setIntInMap}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setIntInMap ({\bf Map} {\em map}, \/ char $\ast$ {\em key}, \/ int {\em value})}} +\label{sampDecl_8h_c22ec42dbf9a01c9b4e00cf011e7eb9d} + + +Set a Int in a Map (append). + +SAMP\_\-SETINTINMAP -- Set a Int in a Map (append) + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em map}]handle to Map object \item[{\em key}]Map key \item[{\em value}]value \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{sampDecl_8h_0ff97d44e62b7c88a046a29324552400}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-setListInList@{samp\_\-setListInList}} +\index{samp\_\-setListInList@{samp\_\-setListInList}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-setListInList}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setListInList ({\bf List} {\em list1}, \/ {\bf List} {\em list2})}} +\label{sampDecl_8h_0ff97d44e62b7c88a046a29324552400} + + +Set a List in another List (append). + +SAMP\_\-SETLISTINLIST -- Set a List in another List (append) + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em list1}]List object handle \item[{\em list2}]List to be appended \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{sampDecl_8h_362c2f670c98dd6a3ef69debd1871604}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-setListInMap@{samp\_\-setListInMap}} +\index{samp\_\-setListInMap@{samp\_\-setListInMap}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-setListInMap}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setListInMap ({\bf Map} {\em map}, \/ char $\ast$ {\em key}, \/ {\bf List} {\em list})}} +\label{sampDecl_8h_362c2f670c98dd6a3ef69debd1871604} + + +Set a List in a Map (append). + +SAMP\_\-SETLISTINMAP -- Set a List in a Map (append) + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em map}]handle to Map object \item[{\em key}]Map key \item[{\em list}]handle to List object to set \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{sampDecl_8h_ea188bb711f3b5549d11204b0ff2da08}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-setMapInList@{samp\_\-setMapInList}} +\index{samp\_\-setMapInList@{samp\_\-setMapInList}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-setMapInList}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setMapInList ({\bf List} {\em list}, \/ {\bf Map} {\em map})}} +\label{sampDecl_8h_ea188bb711f3b5549d11204b0ff2da08} + + +Set a Map in a List (append). + +SAMP\_\-SETMAPINLIST -- Set a Map in a List (append) + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em list}]List object handle \item[{\em map}]Map object to be set \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{sampDecl_8h_f102490efe1b92d99b67f244dc498c7b}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-setMapInMap@{samp\_\-setMapInMap}} +\index{samp\_\-setMapInMap@{samp\_\-setMapInMap}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-setMapInMap}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setMapInMap ({\bf Map} {\em map1}, \/ char $\ast$ {\em key}, \/ {\bf Map} {\em map2})}} +\label{sampDecl_8h_f102490efe1b92d99b67f244dc498c7b} + + +Set a Map in a Map (append). + +SAMP\_\-SETMAPINMAP -- Set a Map in a Map (append) + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em map1}]handle to Map object \item[{\em key}]Map key \item[{\em map2}]handle to Map object to set \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{sampDecl_8h_9056a8601300892f918835259c7fdb3b}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-setNotifyMode@{samp\_\-setNotifyMode}} +\index{samp\_\-setNotifyMode@{samp\_\-setNotifyMode}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-setNotifyMode}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setNotifyMode (handle\_\-t {\em handle})}} +\label{sampDecl_8h_9056a8601300892f918835259c7fdb3b} + + +Set the calling mode to use notification messaging. + +SAMP\_\-SETNOTIFYMODE -- Set the calling mode to use notification messaging. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::msgMode.\hypertarget{sampDecl_8h_a3c0bdb4c512357dbc53b0ad7a7d5b01}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-setReplyCallback@{samp\_\-setReplyCallback}} +\index{samp\_\-setReplyCallback@{samp\_\-setReplyCallback}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-setReplyCallback}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setReplyCallback (handle\_\-t {\em handle}, \/ int $\ast$ {\em func})}} +\label{sampDecl_8h_a3c0bdb4c512357dbc53b0ad7a7d5b01} + + +Set the Reply callback. samp\_\-setReplyCallback (handle\_\-t handle, int $\ast$func). + +SAMP\_\-SETREPLYCALLBACK -- Set the Reply callback. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp handle \item[{\em func}]callback for Reply message \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{sampDecl_8h_3db66f28546459327665f8491ea97f4d}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-setResponseCallback@{samp\_\-setResponseCallback}} +\index{samp\_\-setResponseCallback@{samp\_\-setResponseCallback}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-setResponseCallback}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setResponseCallback (handle\_\-t {\em handle}, \/ int $\ast$ {\em func})}} +\label{sampDecl_8h_3db66f28546459327665f8491ea97f4d} + + +Set the Response callback. samp\_\-setResponseCallback (handle\_\-t handle, int $\ast$func). + +SAMP\_\-SETRESPONSECALLBACK -- Set the Response callback. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp handle \item[{\em func}]callback for message response \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{sampDecl_8h_2e8ec01a0dd96314622ae313206583db}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-setSampHandler@{samp\_\-setSampHandler}} +\index{samp\_\-setSampHandler@{samp\_\-setSampHandler}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-setSampHandler}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setSampHandler (handle\_\-t {\em handle}, \/ {\bf String} {\em mtype}, \/ void $\ast$ {\em func})}} +\label{sampDecl_8h_2e8ec01a0dd96314622ae313206583db} + + +Set the SAMP interface handler for the mtype. + +SAMP\_\-SETSAMPHANDLER -- Set the SAMP interface handler for the mtype. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]user handle to samp struct \item[{\em mtype}]mtype name \item[{\em func}]callback function \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::nsubs, and Subs::sampFunc.\hypertarget{sampDecl_8h_5b69180b036e58528c98b1cf5a42825a}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-setStringInList@{samp\_\-setStringInList}} +\index{samp\_\-setStringInList@{samp\_\-setStringInList}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-setStringInList}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setStringInList ({\bf List} {\em list}, \/ char $\ast$ {\em value})}} +\label{sampDecl_8h_5b69180b036e58528c98b1cf5a42825a} + + +Set a string in a List (append). + +SAMP\_\-SETSTRINGINLIST -- Set a string in a List (append) + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em list}]List object handle \item[{\em value}]string value to set \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{sampDecl_8h_b9b2157de89369eb5cd95bfe804eb89a}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-setStringInMap@{samp\_\-setStringInMap}} +\index{samp\_\-setStringInMap@{samp\_\-setStringInMap}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-setStringInMap}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setStringInMap ({\bf Map} {\em map}, \/ char $\ast$ {\em key}, \/ char $\ast$ {\em value})}} +\label{sampDecl_8h_b9b2157de89369eb5cd95bfe804eb89a} + + +Set a string in a Map (append). + +SAMP\_\-SETSTRINGINMAP -- Set a string in a Map (append) + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em map}]handle to Map object \item[{\em key}]Map key \item[{\em value}]Map value \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{sampDecl_8h_1d00dc78292cfbc01262ef65ab055063}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-setSyncMode@{samp\_\-setSyncMode}} +\index{samp\_\-setSyncMode@{samp\_\-setSyncMode}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-setSyncMode}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setSyncMode (handle\_\-t {\em handle})}} +\label{sampDecl_8h_1d00dc78292cfbc01262ef65ab055063} + + +Set the calling mode to use synchronous messaging. + +SAMP\_\-SETSYNCMODE -- Set the calling mode to use synchronous messaging. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::msgMode.\hypertarget{sampDecl_8h_e11a97c262ab5ab4438eca6c60c0d8cf}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-setTimeout@{samp\_\-setTimeout}} +\index{samp\_\-setTimeout@{samp\_\-setTimeout}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-setTimeout}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setTimeout (handle\_\-t {\em handle}, \/ int {\em timeout})}} +\label{sampDecl_8h_e11a97c262ab5ab4438eca6c60c0d8cf} + + +Set the message timeout value (in seconds). + +SAMP\_\-SETTIMEOUT -- Set the message timeout value (in seconds). + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp handle \item[{\em name}]application name \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::hub, and Hub::timeout.\hypertarget{sampDecl_8h_81222e1f3572585fa30f11a78aa08c3f}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-setUserHandler@{samp\_\-setUserHandler}} +\index{samp\_\-setUserHandler@{samp\_\-setUserHandler}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-setUserHandler}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setUserHandler (handle\_\-t {\em handle}, \/ {\bf String} {\em mtype}, \/ void $\ast$ {\em func})}} +\label{sampDecl_8h_81222e1f3572585fa30f11a78aa08c3f} + + +Set the user-interface handler for the mtype. + +SAMP\_\-SETUSERHANDLER -- Set the user-interface handler for the mtype. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]user handle to samp struct \item[{\em mtype}]mtype name \item[{\em func}]callback function \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::defaultUserFunc, Samp::nsubs, and Subs::userFunc.\hypertarget{sampDecl_8h_bc319b97b3dbea29bd79c4f723db5438}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-specLoadHandler@{samp\_\-specLoadHandler}} +\index{samp\_\-specLoadHandler@{samp\_\-specLoadHandler}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-specLoadHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-specLoadHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampDecl_8h_bc319b97b3dbea29bd79c4f723db5438} + + +Handle a spectrum.load.$\ast$ message. + +SAMP\_\-SPECLOADHANDLER -- Handle a spectrum.load.$\ast$ message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::handlerMode, samp\_\-getMapFromMap(), samp\_\-getStringFromMap(), samp\_\-getUserHandler(), and SZ\_\-NAME.\hypertarget{sampDecl_8h_18b351385bd175581a6788a4f7342f07}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-specLoadSSAGeneric@{samp\_\-specLoadSSAGeneric}} +\index{samp\_\-specLoadSSAGeneric@{samp\_\-specLoadSSAGeneric}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-specLoadSSAGeneric}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-specLoadSSAGeneric (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ {\bf String} {\em url}, \/ {\bf Map} {\em meta}, \/ {\bf String} {\em spectrumId}, \/ {\bf String} {\em name})}} +\label{sampDecl_8h_18b351385bd175581a6788a4f7342f07} + + +Load a generic spectrum from an SSA service. + +SAMP\_\-SPECLOADSSAGENERIC -- Load a generic spectrum from an SSA service. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]name of recipient (or 'all') \item[{\em url}]URL of spectrum to load \item[{\em meta}]Metadata map describing data found at the URL \item[{\em spectrumId}]Identifier for spectrum (optional) \item[{\em name}]Name used to label spectrum (optional); \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::hub, hub, samp\_\-addMapParam(), samp\_\-freeMsg(), samp\_\-msgParam(), samp\_\-newMsg(), samp\_\-newParam(), and samp\_\-sendMsg().\hypertarget{sampDecl_8h_dd2bca8fa3bf3b4ebbf449edc6b65d85}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-specSSAHandler@{samp\_\-specSSAHandler}} +\index{samp\_\-specSSAHandler@{samp\_\-specSSAHandler}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-specSSAHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-specSSAHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampDecl_8h_dd2bca8fa3bf3b4ebbf449edc6b65d85} + + +Handle a spectrum.load.ssa-generic message. + +SAMP\_\-SPECSSAHANDLER -- Handle a spectrum.load.ssa-generic message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::handlerMode, samp\_\-getMapFromMap(), samp\_\-getStringFromMap(), samp\_\-getUserHandler(), samp\_\-specLoadHandler(), and SZ\_\-NAME.\hypertarget{sampDecl_8h_2e342b672e77e012cc98a6f5506a44be}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-StatusHandler@{samp\_\-StatusHandler}} +\index{samp\_\-StatusHandler@{samp\_\-StatusHandler}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-StatusHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-StatusHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampDecl_8h_2e342b672e77e012cc98a6f5506a44be} + + +Return status of the task. + +SAMP\_\-STATUSHANDLER -- Return status of the task. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::handlerMode, and samp\_\-getUserHandler().\hypertarget{sampDecl_8h_c6b76655d73825acdacfac8b5a1139ee}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-Subscribe@{samp\_\-Subscribe}} +\index{samp\_\-Subscribe@{samp\_\-Subscribe}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-Subscribe}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-Subscribe (handle\_\-t {\em handle}, \/ {\bf String} {\em mtype}, \/ void $\ast$ {\em userFunc})}} +\label{sampDecl_8h_c6b76655d73825acdacfac8b5a1139ee} + + +Subscribe to a given mtype. + +SAMP\_\-SUBSCRIBE -- Subscribe to a given mtype. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]user handle to samp struct \item[{\em mtype}]mtype name \item[{\em func}]callback function \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::nsubs, samp\_\-getSampHandler(), samp\_\-setSampHandler(), and samp\_\-setUserHandler().\hypertarget{sampDecl_8h_e38ac987f1dfd87ad64f97d55396270e}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-tableHighlightRow@{samp\_\-tableHighlightRow}} +\index{samp\_\-tableHighlightRow@{samp\_\-tableHighlightRow}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-tableHighlightRow}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-tableHighlightRow (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ {\bf String} {\em tableId}, \/ {\bf String} {\em url}, \/ int {\em row})}} +\label{sampDecl_8h_e38ac987f1dfd87ad64f97d55396270e} + + +Tell an app to highlight a table row. + +SAMP\_\-TABLEHIGHLIGHTROW -- Tell an app to highlight a table row. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]Message recipient (or \char`\"{}all\char`\"{} for broadcast) \item[{\em tableId}]ID associated with a previously loaded table \item[{\em url}]URL to table to be loaded \item[{\em rows}]List of (zero-based) row indices \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::hub, hub, samp\_\-addIntParam(), samp\_\-freeMsg(), samp\_\-msgParam(), samp\_\-newMsg(), samp\_\-newParam(), and samp\_\-sendMsg().\hypertarget{sampDecl_8h_74aeaaf742121348390ec854c30c1479}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-tableLoadFITS@{samp\_\-tableLoadFITS}} +\index{samp\_\-tableLoadFITS@{samp\_\-tableLoadFITS}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-tableLoadFITS}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-tableLoadFITS (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ {\bf String} {\em url}, \/ {\bf String} {\em tableId}, \/ {\bf String} {\em name})}} +\label{sampDecl_8h_74aeaaf742121348390ec854c30c1479} + + +Tell an app to load a FITS table. + +SAMP\_\-TABLELOADFITS -- Tell an app to load a FITS table. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]Message recipient (or \char`\"{}all\char`\"{} for broadcast) \item[{\em url}]URL to table to be loaded \item[{\em tableId}]ID assigned to table (optional) \item[{\em name}]Name assigned to table (optional) \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::hub, hub, samp\_\-freeMsg(), samp\_\-msgParam(), samp\_\-newMsg(), samp\_\-newParam(), and samp\_\-sendMsg().\hypertarget{sampDecl_8h_34e9d38073f36daaf41c418f8d680ee5}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-tableLoadVOTable@{samp\_\-tableLoadVOTable}} +\index{samp\_\-tableLoadVOTable@{samp\_\-tableLoadVOTable}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-tableLoadVOTable}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-tableLoadVOTable (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ {\bf String} {\em url}, \/ {\bf String} {\em tableId}, \/ {\bf String} {\em name})}} +\label{sampDecl_8h_34e9d38073f36daaf41c418f8d680ee5} + + +Tell an app to load a VOTable. + +SAMP\_\-TABLELOADVOTABLE -- Tell an app to load a VOTable. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]Message recipient (or \char`\"{}all\char`\"{} for broadcast) \item[{\em url}]URL to table to be loaded \item[{\em tableId}]ID assigned to table (optional) \item[{\em name}]Name assigned to table (optional) \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::hub, hub, samp\_\-freeMsg(), samp\_\-msgParam(), samp\_\-newMsg(), samp\_\-newParam(), and samp\_\-sendMsg().\hypertarget{sampDecl_8h_f133efb67fe4bcfd2b9c8ab9d23b4c5e}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-tableSelectRowList@{samp\_\-tableSelectRowList}} +\index{samp\_\-tableSelectRowList@{samp\_\-tableSelectRowList}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-tableSelectRowList}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-tableSelectRowList (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ {\bf String} {\em tableId}, \/ {\bf String} {\em url}, \/ int {\em rows}\mbox{[}$\,$\mbox{]}, \/ int {\em nrows})}} +\label{sampDecl_8h_f133efb67fe4bcfd2b9c8ab9d23b4c5e} + + +Tell an app to select a list of table rows. + +SAMP\_\-TABLESELECTROWLIST -- Tell an app to select a list of table rows. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]Message recipient (or \char`\"{}all\char`\"{} for broadcast) \item[{\em tableId}]ID associated with a previously loaded table \item[{\em url}]URL to table to be loaded \item[{\em rows}]Array of (zero-based) row indices \item[{\em nrows}]Number of rows \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::hub, hub, samp\_\-addListParam(), samp\_\-freeList(), samp\_\-freeMsg(), samp\_\-msgParam(), samp\_\-newList(), samp\_\-newMsg(), samp\_\-newParam(), samp\_\-sendMsg(), and samp\_\-setIntInList().\hypertarget{sampDecl_8h_d9184eb45a5bc93b5205fd5b1c6ef688}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-tbHighlightHandler@{samp\_\-tbHighlightHandler}} +\index{samp\_\-tbHighlightHandler@{samp\_\-tbHighlightHandler}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-tbHighlightHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-tbHighlightHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampDecl_8h_d9184eb45a5bc93b5205fd5b1c6ef688} + + +Handle a table.highlight.row message. + +SAMP\_\-TBHIGHLIGHTHANDLER -- Handle a table.highlight.row message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::handlerMode, samp\_\-getIntFromMap(), samp\_\-getStringFromMap(), samp\_\-getUserHandler(), and SZ\_\-NAME.\hypertarget{sampDecl_8h_750c0fee0c7a99e135299c08751f288c}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-tbLoadFITSHandler@{samp\_\-tbLoadFITSHandler}} +\index{samp\_\-tbLoadFITSHandler@{samp\_\-tbLoadFITSHandler}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-tbLoadFITSHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-tbLoadFITSHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampDecl_8h_750c0fee0c7a99e135299c08751f288c} + + +Handle a generic table.load.fits message. + +SAMP\_\-TBLOADFITSHANDLER -- Handle a generic table.load.fits message $\ast$\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::handlerMode, samp\_\-getStringFromMap(), samp\_\-getUserHandler(), samp\_\-tbLoadHandler(), and SZ\_\-NAME.\hypertarget{sampDecl_8h_26f96dc6cbf72283e2ee9cb8b4619ed3}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-tbLoadHandler@{samp\_\-tbLoadHandler}} +\index{samp\_\-tbLoadHandler@{samp\_\-tbLoadHandler}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-tbLoadHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-tbLoadHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampDecl_8h_26f96dc6cbf72283e2ee9cb8b4619ed3} + + +Handle a generic table.load.$\ast$ message. + +SAMP\_\-TBLOADHANDLER -- Handle a generic table.load.$\ast$ message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::handlerMode, samp\_\-getStringFromMap(), samp\_\-getUserHandler(), and SZ\_\-NAME.\hypertarget{sampDecl_8h_144ec2329355d91022d5ea38736c0093}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-tbLoadVOTHandler@{samp\_\-tbLoadVOTHandler}} +\index{samp\_\-tbLoadVOTHandler@{samp\_\-tbLoadVOTHandler}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-tbLoadVOTHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-tbLoadVOTHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampDecl_8h_144ec2329355d91022d5ea38736c0093} + + +Handle a generic table.load.votable message. + +SAMP\_\-TBLOADVOTHANDLER -- Handle a generic table.load.votable message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::handlerMode, samp\_\-getStringFromMap(), samp\_\-getUserHandler(), samp\_\-tbLoadHandler(), and SZ\_\-NAME.\hypertarget{sampDecl_8h_98d68d7091c0b7790631bb53e0ace656}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-tbSelectHandler@{samp\_\-tbSelectHandler}} +\index{samp\_\-tbSelectHandler@{samp\_\-tbSelectHandler}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-tbSelectHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-tbSelectHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampDecl_8h_98d68d7091c0b7790631bb53e0ace656} + + +Handle a table.select.rowList message. + +SAMP\_\-TBSELECTHANDLER -- Handle a table.select.rowList message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::handlerMode, samp\_\-getListFromMap(), samp\_\-getStringFromMap(), samp\_\-getUserHandler(), samp\_\-listLen(), and SZ\_\-NAME.\hypertarget{sampDecl_8h_106fc27544de7c25625ed60eb48e4edd}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-UnRegister@{samp\_\-UnRegister}} +\index{samp\_\-UnRegister@{samp\_\-UnRegister}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-UnRegister}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-UnRegister (handle\_\-t {\em handle})}} +\label{sampDecl_8h_106fc27544de7c25625ed60eb48e4edd} + + +Un-Register from the hub. + +SAMP\_\-UNREGISTER -- Un-Register from the hub. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::hub, hub, and samp\_\-hubUnRegister().\hypertarget{sampDecl_8h_b3fded97bbbf3751c4916543959f16a5}{ +\index{sampDecl.h@{sampDecl.h}!samp\_\-Unsubscribe@{samp\_\-Unsubscribe}} +\index{samp\_\-Unsubscribe@{samp\_\-Unsubscribe}!sampDecl.h@{sampDecl.h}} +\subsubsection[{samp\_\-Unsubscribe}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-Unsubscribe (handle\_\-t {\em handle}, \/ {\bf String} {\em mtype})}} +\label{sampDecl_8h_b3fded97bbbf3751c4916543959f16a5} + + +Unsubscribe to a given mtype. + +SAMP\_\-UNSUBSCRIBE -- Unsubscribe to a given mtype. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]user handle to samp struct \item[{\em mtype}]mtype name \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::nsubs, samp\_\-DeclareSubscriptions(), Subs::sampFunc, and Subs::userFunc.\hypertarget{sampDecl_8h_123413db26ad50a84bd41863af5deae5}{ +\index{sampDecl.h@{sampDecl.h}!sampClose@{sampClose}} +\index{sampClose@{sampClose}!sampDecl.h@{sampDecl.h}} +\subsubsection[{sampClose}]{\setlength{\rightskip}{0pt plus 5cm}void sampClose (handle\_\-t {\em handle})}} +\label{sampDecl_8h_123413db26ad50a84bd41863af5deae5} + + +Close the SAMP interface and free resources. + +SAMP\_\-CLOSE -- Close the SAMP interface. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]user handle to samp struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::hub, Samp::hubHandle, samp\_\-freeHandle(), samp\_\-hubClose(), sampTrace(), and Samp::verbose.\hypertarget{sampDecl_8h_30f39c72c3783055faa82ad3860f3d1d}{ +\index{sampDecl.h@{sampDecl.h}!sampInit@{sampInit}} +\index{sampInit@{sampInit}!sampDecl.h@{sampDecl.h}} +\subsubsection[{sampInit}]{\setlength{\rightskip}{0pt plus 5cm}handle\_\-t sampInit ({\bf String} {\em appName}, \/ {\bf String} {\em description})}} +\label{sampDecl_8h_30f39c72c3783055faa82ad3860f3d1d} + + +Initialize the SAMP interface. + +Prototype declarations. + +SAMP\_\-INIT -- Initialize the SAMP interface. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em appName}]application name \item[{\em description}]description of application \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]samp handle \end{Desc} + + +References nullList, nullMap, OK\_\-Map, samp\_\-hubOpen(), samp\_\-newHandle(), samp\_\-newList(), samp\_\-newMap(), samp\_\-serverPort(), samp\_\-setMapInMap(), samp\_\-setStringInMap(), sampH, and sampTrace().\hypertarget{sampDecl_8h_4919f892b6fccced4e6b9d777071b781}{ +\index{sampDecl.h@{sampDecl.h}!sampLog@{sampLog}} +\index{sampLog@{sampLog}!sampDecl.h@{sampDecl.h}} +\subsubsection[{sampLog}]{\setlength{\rightskip}{0pt plus 5cm}void sampLog (handle\_\-t {\em handle}, \/ char $\ast$ {\em format}, \/ {\em ...})}} +\label{sampDecl_8h_4919f892b6fccced4e6b9d777071b781} + + +SAMP message logger. + +SAMPLOG -- SAMP message logger. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]SAMP handle \item[{\em format}]message format string \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::debug, and Samp::logfd.\hypertarget{sampDecl_8h_65908d088c8b917d10db38c147590ad9}{ +\index{sampDecl.h@{sampDecl.h}!sampShutdown@{sampShutdown}} +\index{sampShutdown@{sampShutdown}!sampDecl.h@{sampDecl.h}} +\subsubsection[{sampShutdown}]{\setlength{\rightskip}{0pt plus 5cm}int sampShutdown (handle\_\-t {\em handle})}} +\label{sampDecl_8h_65908d088c8b917d10db38c147590ad9} + + +Shut down the active SAMP interface. + +SAMP\_\-SHUTDOWN -- Shut down the active SAMP interface. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]user handle to samp struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::active, Samp::hubHandle, samp\_\-hubClose(), Samp::svrThread, and Samp::verbose. + +Referenced by samp\_\-processHubEvent().\hypertarget{sampDecl_8h_8e18ae12df031094ace47863f93b3634}{ +\index{sampDecl.h@{sampDecl.h}!sampStartup@{sampStartup}} +\index{sampStartup@{sampStartup}!sampDecl.h@{sampDecl.h}} +\subsubsection[{sampStartup}]{\setlength{\rightskip}{0pt plus 5cm}int sampStartup (handle\_\-t {\em handle})}} +\label{sampDecl_8h_8e18ae12df031094ace47863f93b3634} + + +Startup the SAMP interface to send/receive messages. + +SAMP\_\-STARTUP -- Startup the SAMP interface to send/receive messages. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]user handle to samp struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::active, Samp::clients, Samp::hub, Samp::hubHandle, Hub::id, Samp::mapClients, Client::name, Samp::nclients, samp\_\-hubDeclareMetadata(), samp\_\-hubDeclareSubscriptions(), samp\_\-hubOpen(), samp\_\-mapClients(), Samp::trace, and Samp::verbose.\hypertarget{sampDecl_8h_2b3dd1662e61c83e29109126689b08b9}{ +\index{sampDecl.h@{sampDecl.h}!sampTrace@{sampTrace}} +\index{sampTrace@{sampTrace}!sampDecl.h@{sampDecl.h}} +\subsubsection[{sampTrace}]{\setlength{\rightskip}{0pt plus 5cm}void sampTrace (handle\_\-t {\em handle}, \/ char $\ast$ {\em format}, \/ {\em ...})}} +\label{sampDecl_8h_2b3dd1662e61c83e29109126689b08b9} + + +SAMP tracer. + +SAMPTRACE -- SAMP tracer. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]SAMP handle \item[{\em format}]message format string \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::trace. \ No newline at end of file diff --git a/vendor/voclient/libsamp/doc/latex/sampHandlers_8c.tex b/vendor/voclient/libsamp/doc/latex/sampHandlers_8c.tex new file mode 100644 index 00000000..0f6f564a --- /dev/null +++ b/vendor/voclient/libsamp/doc/latex/sampHandlers_8c.tex @@ -0,0 +1,785 @@ +\hypertarget{sampHandlers_8c}{ +\section{sampHandlers.c File Reference} +\label{sampHandlers_8c}\index{sampHandlers.c@{sampHandlers.c}} +} +Message handlers for the interface. + + +{\tt \#include $<$stdlib.h$>$}\par +{\tt \#include $<$stdio.h$>$}\par +{\tt \#include $<$unistd.h$>$}\par +{\tt \#include $<$string.h$>$}\par +{\tt \#include $<$time.h$>$}\par +{\tt \#include $<$ctype.h$>$}\par +{\tt \#include \char`\"{}samp.h\char`\"{}}\par +\subsection*{Defines} +\begin{CompactItemize} +\item +\hypertarget{sampHandlers_8c_ee07de873e18503ecd72f89d07e4c628}{ +\#define \textbf{METH\_\-DBG}~(getenv(\char`\"{}METH\_\-DBG\char`\"{})!=NULL$|$$|$access(\char`\"{}/tmp/METH\_\-DBG\char`\"{},F\_\-OK)==0)} +\label{sampHandlers_8c_ee07de873e18503ecd72f89d07e4c628} + +\item +\hypertarget{sampHandlers_8c_ae51f9fc173a9cba2485f91d93fe8428}{ +\#define \textbf{OK\_\-Map}~samp\_\-getOKMap()} +\label{sampHandlers_8c_ae51f9fc173a9cba2485f91d93fe8428} + +\item +\hypertarget{sampHandlers_8c_0a7803909f0c4188761ec0a533eab82e}{ +\#define \textbf{MATCH}(s)~(func\&\&strncasecmp(mtype,s,min(len,16))==0)} +\label{sampHandlers_8c_0a7803909f0c4188761ec0a533eab82e} + +\item +\hypertarget{sampHandlers_8c_f6e89a3c178ea921d5340ce296c817cf}{ +\#define \textbf{PMATCH}(s)~(strcasecmp(mtype,s)==0)} +\label{sampHandlers_8c_f6e89a3c178ea921d5340ce296c817cf} + +\item +\hypertarget{sampHandlers_8c_d98187ef66ebe7e9334652739715250d}{ +\#define \textbf{POPT}(s)~(s\mbox{[}0\mbox{]}?s:\char`\"{}INDEF\char`\"{})} +\label{sampHandlers_8c_d98187ef66ebe7e9334652739715250d} + +\end{CompactItemize} +\subsection*{Functions} +\begin{CompactItemize} +\item +void \hyperlink{sampHandlers_8c_81222e1f3572585fa30f11a78aa08c3f}{samp\_\-setUserHandler} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, void $\ast$func) +\begin{CompactList}\small\item\em Set the user-interface handler for the mtype. \item\end{CompactList}\item +void \hyperlink{sampHandlers_8c_2e8ec01a0dd96314622ae313206583db}{samp\_\-setSampHandler} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, void $\ast$func) +\begin{CompactList}\small\item\em Set the SAMP interface handler for the mtype. \item\end{CompactList}\item +void $\ast$ \hyperlink{sampHandlers_8c_6bb258d378627da1aa0254fccdb6bd2c}{samp\_\-getUserHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype) +\begin{CompactList}\small\item\em Get the User handler for the named mtype. \item\end{CompactList}\item +void $\ast$ \hyperlink{sampHandlers_8c_6ef18dbc5870f58d2161c9ba03a81d26}{samp\_\-getSampHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype) +\begin{CompactList}\small\item\em Get the Samphandler for the named mtype. \item\end{CompactList}\item +void \hyperlink{sampHandlers_8c_23644999b70eebfe75f52c465d1ed97f}{samp\_\-execUserHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} params) +\begin{CompactList}\small\item\em Execute the user-defined handler for the mtype. \item\end{CompactList}\item +int \hyperlink{sampHandlers_8c_bea5fa0cd958545710afcf3c5da9dc15}{samp\_\-hubHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Handle \hyperlink{structHub}{Hub} event messages. \item\end{CompactList}\item +int \hyperlink{sampHandlers_8c_16d8b8822d169107b8702ae753797923}{samp\_\-PingHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Is app alive and responding to messages? \item\end{CompactList}\item +int \hyperlink{sampHandlers_8c_2e342b672e77e012cc98a6f5506a44be}{samp\_\-StatusHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Return status of the task. \item\end{CompactList}\item +\hypertarget{sampHandlers_8c_1b7812ba89eebe15ad24f36a3d439a0a}{ +int \textbf{samp\_\-genericMsgHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map)} +\label{sampHandlers_8c_1b7812ba89eebe15ad24f36a3d439a0a} + +\item +int \hyperlink{sampHandlers_8c_9bd8036dd65dc4f874f39568b691a123}{samp\_\-imLoadHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Handle an image.load.fits message. \item\end{CompactList}\item +int \hyperlink{sampHandlers_8c_26f96dc6cbf72283e2ee9cb8b4619ed3}{samp\_\-tbLoadHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Handle a generic table.load.$\ast$ message. \item\end{CompactList}\item +int \hyperlink{sampHandlers_8c_750c0fee0c7a99e135299c08751f288c}{samp\_\-tbLoadFITSHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Handle a generic table.load.fits message. \item\end{CompactList}\item +int \hyperlink{sampHandlers_8c_144ec2329355d91022d5ea38736c0093}{samp\_\-tbLoadVOTHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Handle a generic table.load.votable message. \item\end{CompactList}\item +int \hyperlink{sampHandlers_8c_d9184eb45a5bc93b5205fd5b1c6ef688}{samp\_\-tbHighlightHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Handle a table.highlight.row message. \item\end{CompactList}\item +int \hyperlink{sampHandlers_8c_98d68d7091c0b7790631bb53e0ace656}{samp\_\-tbSelectHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Handle a table.select.rowList message. \item\end{CompactList}\item +int \hyperlink{sampHandlers_8c_3f5632858a2b09759ffe98cd2e183cfb}{samp\_\-pointAtHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Handle a coord.pointAt.sky message. \item\end{CompactList}\item +int \hyperlink{sampHandlers_8c_bc319b97b3dbea29bd79c4f723db5438}{samp\_\-specLoadHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Handle a spectrum.load.$\ast$ message. \item\end{CompactList}\item +int \hyperlink{sampHandlers_8c_dd2bca8fa3bf3b4ebbf449edc6b65d85}{samp\_\-specSSAHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Handle a spectrum.load.ssa-generic message. \item\end{CompactList}\item +int \hyperlink{sampHandlers_8c_c57d19afc6fa0b4bc9c7a0fd50d0f54b}{samp\_\-cmdExecHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Handle a client.cmd.exec message. \item\end{CompactList}\item +int \hyperlink{sampHandlers_8c_e25a92f57babd71d43653d7fcb81025c}{samp\_\-envGetHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Handle a client.env.set message. \item\end{CompactList}\item +int \hyperlink{sampHandlers_8c_0910e6b9d11cdd3111c1f18450de394a}{samp\_\-envSetHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Handle a client.env.set message. \item\end{CompactList}\item +int \hyperlink{sampHandlers_8c_659c272ce881662c1826a04728dc06f6}{samp\_\-paramGetHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Handle a client.param.set message. \item\end{CompactList}\item +int \hyperlink{sampHandlers_8c_071aa9e32f2e94d5b667e87cf65d2bdf}{samp\_\-paramSetHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Handle a client.param.set message. \item\end{CompactList}\item +int \hyperlink{sampHandlers_8c_262bf09278c61b60b5189fef7f26d26b}{samp\_\-bibcodeHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Handle a bibcode.load message. \item\end{CompactList}\item +int \hyperlink{sampHandlers_8c_c0bf7cf7fea362c0c82ad7bc3f267c48}{samp\_\-resLoadHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em handle a voresource.loadlist message \item\end{CompactList}\item +int \hyperlink{sampHandlers_8c_287569451dc1bf59d1f9f6d13b56716d}{samp\_\-resConeHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em handle a voresource.loadlist message \item\end{CompactList}\item +int \hyperlink{sampHandlers_8c_8b2300222d7b11f144eb4385412e69a5}{samp\_\-resSiapHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em handle a voresource.loadlist message \item\end{CompactList}\item +int \hyperlink{sampHandlers_8c_866578a01c3b762435823b1b11869c42}{samp\_\-resSsapHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em handle a voresource.loadlist message \item\end{CompactList}\item +int \hyperlink{sampHandlers_8c_ad42ca17cbaf23012ad497559ea45e4c}{samp\_\-resTapHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em handle a voresource.loadlist message \item\end{CompactList}\item +int \hyperlink{sampHandlers_8c_fa207ebdc587ba5eeab60fbf79b635d4}{samp\_\-resVOSpaceHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em handle a voresource.loadlist message \item\end{CompactList}\item +\hypertarget{sampHandlers_8c_e743048f5b1f903496b2a8a2e9666367}{ +void \textbf{samp\_\-printMessage} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} params)} +\label{sampHandlers_8c_e743048f5b1f903496b2a8a2e9666367} + +\item +void \hyperlink{sampHandlers_8c_a8a947c24f2c9333adf4e5d7fa11d134}{samp\_\-printMap} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} name, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map) +\item +int \hyperlink{sampHandlers_8c_5361571754505eaefdf5739cd3e9519e}{samp\_\-nullResponse} (void $\ast$data) +\item +\hypertarget{sampHandlers_8c_cc687f745f400b41c9af4f6419bf9bf8}{ +int \textbf{samp\_\-testEcho} (void $\ast$data)} +\label{sampHandlers_8c_cc687f745f400b41c9af4f6419bf9bf8} + +\end{CompactItemize} +\subsection*{Variables} +\begin{CompactItemize} +\item +\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} \hyperlink{sampHandlers_8c_68bf22a5b3f2531242f5c6d6ecf2ea1e}{nullMap} +\item +\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} \hyperlink{sampHandlers_8c_a2106c7fe3a5747178c046238fbd5d55}{nullList} +\item +\hypertarget{sampHandlers_8c_12abcaf1a16a8a7c2ef6358cdbf4d705}{ +\hyperlink{structSamp}{Samp} $\ast$ \textbf{sampP}} +\label{sampHandlers_8c_12abcaf1a16a8a7c2ef6358cdbf4d705} + +\item +handle\_\-t \hyperlink{sampHandlers_8c_b04b61ee02d86e15b02b861699ae7424}{sampH} +\end{CompactItemize} + + +\label{_details} +\hypertarget{_details}{} +\subsection{Detailed Description} +Message handlers for the interface. + +SAMPHANDLERS.C -- Message handlers for the interface. + +\begin{Desc} +\item[Author:]Mike Fitzpatrick \end{Desc} +\begin{Desc} +\item[Date:]7/10/09 \end{Desc} + + +\subsection{Function Documentation} +\hypertarget{sampHandlers_8c_262bf09278c61b60b5189fef7f26d26b}{ +\index{sampHandlers.c@{sampHandlers.c}!samp\_\-bibcodeHandler@{samp\_\-bibcodeHandler}} +\index{samp\_\-bibcodeHandler@{samp\_\-bibcodeHandler}!sampHandlers.c@{sampHandlers.c}} +\subsubsection[{samp\_\-bibcodeHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-bibcodeHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampHandlers_8c_262bf09278c61b60b5189fef7f26d26b} + + +Handle a bibcode.load message. + +SAMP\_\-BIBCODEHANDLER -- Handle a bibcode.load message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::handlerMode, samp\_\-getStringFromMap(), samp\_\-getUserHandler(), and SZ\_\-NAME.\hypertarget{sampHandlers_8c_c57d19afc6fa0b4bc9c7a0fd50d0f54b}{ +\index{sampHandlers.c@{sampHandlers.c}!samp\_\-cmdExecHandler@{samp\_\-cmdExecHandler}} +\index{samp\_\-cmdExecHandler@{samp\_\-cmdExecHandler}!sampHandlers.c@{sampHandlers.c}} +\subsubsection[{samp\_\-cmdExecHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-cmdExecHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampHandlers_8c_c57d19afc6fa0b4bc9c7a0fd50d0f54b} + + +Handle a client.cmd.exec message. + +SAMP\_\-CMDEXECHANDLER -- Handle a client.cmd.exec message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::handlerMode, samp\_\-getStringFromMap(), and samp\_\-getUserHandler().\hypertarget{sampHandlers_8c_e25a92f57babd71d43653d7fcb81025c}{ +\index{sampHandlers.c@{sampHandlers.c}!samp\_\-envGetHandler@{samp\_\-envGetHandler}} +\index{samp\_\-envGetHandler@{samp\_\-envGetHandler}!sampHandlers.c@{sampHandlers.c}} +\subsubsection[{samp\_\-envGetHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-envGetHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampHandlers_8c_e25a92f57babd71d43653d7fcb81025c} + + +Handle a client.env.set message. + +SAMP\_\-ENVGETHANDLER -- Handle a client.env.set message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::handlerMode, samp\_\-freeMap(), samp\_\-getStringFromMap(), samp\_\-getUserHandler(), samp\_\-newMap(), samp\_\-setHandlerReply(), samp\_\-setMapInMap(), samp\_\-setStringInMap(), and SZ\_\-NAME.\hypertarget{sampHandlers_8c_0910e6b9d11cdd3111c1f18450de394a}{ +\index{sampHandlers.c@{sampHandlers.c}!samp\_\-envSetHandler@{samp\_\-envSetHandler}} +\index{samp\_\-envSetHandler@{samp\_\-envSetHandler}!sampHandlers.c@{sampHandlers.c}} +\subsubsection[{samp\_\-envSetHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-envSetHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampHandlers_8c_0910e6b9d11cdd3111c1f18450de394a} + + +Handle a client.env.set message. + +SAMP\_\-ENVSETHANDLER -- Handle a client.env.set message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::handlerMode, samp\_\-getStringFromMap(), samp\_\-getUserHandler(), and SZ\_\-NAME.\hypertarget{sampHandlers_8c_23644999b70eebfe75f52c465d1ed97f}{ +\index{sampHandlers.c@{sampHandlers.c}!samp\_\-execUserHandler@{samp\_\-execUserHandler}} +\index{samp\_\-execUserHandler@{samp\_\-execUserHandler}!sampHandlers.c@{sampHandlers.c}} +\subsubsection[{samp\_\-execUserHandler}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-execUserHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em params})}} +\label{sampHandlers_8c_23644999b70eebfe75f52c465d1ed97f} + + +Execute the user-defined handler for the mtype. + +SAMP\_\-EXECUSERHANDLER -- Execute the user-defined handler for the mtype. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message-id string \item[{\em params}]Mtype parameter Map \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::defaultUserFunc, Samp::handlerMode, samp\_\-getFloatFromMap(), samp\_\-getIntFromMap(), samp\_\-getListFromMap(), samp\_\-getMapFromMap(), samp\_\-getStringFromMap(), samp\_\-getUserHandler(), samp\_\-listLen(), and SZ\_\-NAME. + +Referenced by samp\_\-receiveCall(), samp\_\-receiveNotification(), and samp\_\-receiveResponse().\hypertarget{sampHandlers_8c_6ef18dbc5870f58d2161c9ba03a81d26}{ +\index{sampHandlers.c@{sampHandlers.c}!samp\_\-getSampHandler@{samp\_\-getSampHandler}} +\index{samp\_\-getSampHandler@{samp\_\-getSampHandler}!sampHandlers.c@{sampHandlers.c}} +\subsubsection[{samp\_\-getSampHandler}]{\setlength{\rightskip}{0pt plus 5cm}void$\ast$ samp\_\-getSampHandler ({\bf String} {\em mtype})}} +\label{sampHandlers_8c_6ef18dbc5870f58d2161c9ba03a81d26} + + +Get the Samphandler for the named mtype. + +SAMP\_\-GETSAMPHANDLER -- Get the Samphandler for the named mtype. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em mtype}]mtype string \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::nsubs, and Subs::sampFunc. + +Referenced by samp\_\-receiveCall(), samp\_\-receiveNotification(), and samp\_\-Subscribe().\hypertarget{sampHandlers_8c_6bb258d378627da1aa0254fccdb6bd2c}{ +\index{sampHandlers.c@{sampHandlers.c}!samp\_\-getUserHandler@{samp\_\-getUserHandler}} +\index{samp\_\-getUserHandler@{samp\_\-getUserHandler}!sampHandlers.c@{sampHandlers.c}} +\subsubsection[{samp\_\-getUserHandler}]{\setlength{\rightskip}{0pt plus 5cm}void$\ast$ samp\_\-getUserHandler ({\bf String} {\em mtype})}} +\label{sampHandlers_8c_6bb258d378627da1aa0254fccdb6bd2c} + + +Get the User handler for the named mtype. + +SAMP\_\-GETUSERHANDLER -- Get the User handler for the named mtype. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em mtype}]mtype string \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::defaultUserFunc, Samp::nsubs, and Subs::userFunc. + +Referenced by samp\_\-bibcodeHandler(), samp\_\-cmdExecHandler(), samp\_\-envGetHandler(), samp\_\-envSetHandler(), samp\_\-execUserHandler(), samp\_\-imLoadHandler(), samp\_\-paramGetHandler(), samp\_\-paramSetHandler(), samp\_\-PingHandler(), samp\_\-pointAtHandler(), samp\_\-receiveCall(), samp\_\-receiveNotification(), samp\_\-resConeHandler(), samp\_\-resLoadHandler(), samp\_\-resSiapHandler(), samp\_\-resSsapHandler(), samp\_\-resTapHandler(), samp\_\-resVOSpaceHandler(), samp\_\-specLoadHandler(), samp\_\-specSSAHandler(), samp\_\-StatusHandler(), samp\_\-tbHighlightHandler(), samp\_\-tbLoadFITSHandler(), samp\_\-tbLoadHandler(), samp\_\-tbLoadVOTHandler(), and samp\_\-tbSelectHandler().\hypertarget{sampHandlers_8c_bea5fa0cd958545710afcf3c5da9dc15}{ +\index{sampHandlers.c@{sampHandlers.c}!samp\_\-hubHandler@{samp\_\-hubHandler}} +\index{samp\_\-hubHandler@{samp\_\-hubHandler}!sampHandlers.c@{sampHandlers.c}} +\subsubsection[{samp\_\-hubHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-hubHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampHandlers_8c_bea5fa0cd958545710afcf3c5da9dc15} + + +Handle \hyperlink{structHub}{Hub} event messages. + +SAMP\_\-HUBHANDLER -- Handle \hyperlink{structHub}{Hub} event messages. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} +\hypertarget{sampHandlers_8c_9bd8036dd65dc4f874f39568b691a123}{ +\index{sampHandlers.c@{sampHandlers.c}!samp\_\-imLoadHandler@{samp\_\-imLoadHandler}} +\index{samp\_\-imLoadHandler@{samp\_\-imLoadHandler}!sampHandlers.c@{sampHandlers.c}} +\subsubsection[{samp\_\-imLoadHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-imLoadHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampHandlers_8c_9bd8036dd65dc4f874f39568b691a123} + + +Handle an image.load.fits message. + +SAMP\_\-IMLOADHANDLER -- Handle an image.load.fits message. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::handlerMode, samp\_\-getStringFromMap(), samp\_\-getUserHandler(), and SZ\_\-NAME.\hypertarget{sampHandlers_8c_5361571754505eaefdf5739cd3e9519e}{ +\index{sampHandlers.c@{sampHandlers.c}!samp\_\-nullResponse@{samp\_\-nullResponse}} +\index{samp\_\-nullResponse@{samp\_\-nullResponse}!sampHandlers.c@{sampHandlers.c}} +\subsubsection[{samp\_\-nullResponse}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-nullResponse (void $\ast$ {\em data})}} +\label{sampHandlers_8c_5361571754505eaefdf5739cd3e9519e} + + +SAMP\_\-NULLRESPONSE -- Handler to ignore async replies. + +Referenced by samp\_\-hubSendShutdown(), samp\_\-notify(), and samp\_\-Reply().\hypertarget{sampHandlers_8c_659c272ce881662c1826a04728dc06f6}{ +\index{sampHandlers.c@{sampHandlers.c}!samp\_\-paramGetHandler@{samp\_\-paramGetHandler}} +\index{samp\_\-paramGetHandler@{samp\_\-paramGetHandler}!sampHandlers.c@{sampHandlers.c}} +\subsubsection[{samp\_\-paramGetHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-paramGetHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampHandlers_8c_659c272ce881662c1826a04728dc06f6} + + +Handle a client.param.set message. + +SAMP\_\-PARAMGETHANDLER -- Handle a client.param.set message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::handlerMode, samp\_\-freeMap(), samp\_\-getStringFromMap(), samp\_\-getUserHandler(), samp\_\-newMap(), samp\_\-setHandlerReply(), samp\_\-setMapInMap(), samp\_\-setStringInMap(), and SZ\_\-NAME.\hypertarget{sampHandlers_8c_071aa9e32f2e94d5b667e87cf65d2bdf}{ +\index{sampHandlers.c@{sampHandlers.c}!samp\_\-paramSetHandler@{samp\_\-paramSetHandler}} +\index{samp\_\-paramSetHandler@{samp\_\-paramSetHandler}!sampHandlers.c@{sampHandlers.c}} +\subsubsection[{samp\_\-paramSetHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-paramSetHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampHandlers_8c_071aa9e32f2e94d5b667e87cf65d2bdf} + + +Handle a client.param.set message. + +SAMP\_\-PARAMSETHANDLER -- Handle a client.param.set message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::handlerMode, samp\_\-getStringFromMap(), samp\_\-getUserHandler(), and SZ\_\-NAME.\hypertarget{sampHandlers_8c_16d8b8822d169107b8702ae753797923}{ +\index{sampHandlers.c@{sampHandlers.c}!samp\_\-PingHandler@{samp\_\-PingHandler}} +\index{samp\_\-PingHandler@{samp\_\-PingHandler}!sampHandlers.c@{sampHandlers.c}} +\subsubsection[{samp\_\-PingHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-PingHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampHandlers_8c_16d8b8822d169107b8702ae753797923} + + +Is app alive and responding to messages? + +SAMP\_\-PINGHANDLER -- Simple aliveness test function. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::handlerMode, and samp\_\-getUserHandler().\hypertarget{sampHandlers_8c_3f5632858a2b09759ffe98cd2e183cfb}{ +\index{sampHandlers.c@{sampHandlers.c}!samp\_\-pointAtHandler@{samp\_\-pointAtHandler}} +\index{samp\_\-pointAtHandler@{samp\_\-pointAtHandler}!sampHandlers.c@{sampHandlers.c}} +\subsubsection[{samp\_\-pointAtHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-pointAtHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampHandlers_8c_3f5632858a2b09759ffe98cd2e183cfb} + + +Handle a coord.pointAt.sky message. + +SAMP\_\-POINTATHANDLER -- Handle a coord.pointAt.sky message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::handlerMode, samp\_\-getFloatFromMap(), and samp\_\-getUserHandler().\hypertarget{sampHandlers_8c_a8a947c24f2c9333adf4e5d7fa11d134}{ +\index{sampHandlers.c@{sampHandlers.c}!samp\_\-printMap@{samp\_\-printMap}} +\index{samp\_\-printMap@{samp\_\-printMap}!sampHandlers.c@{sampHandlers.c}} +\subsubsection[{samp\_\-printMap}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-printMap ({\bf String} {\em name}, \/ {\bf Map} {\em map})}} +\label{sampHandlers_8c_a8a947c24f2c9333adf4e5d7fa11d134} + + +SAMP\_\-PRINTMAP -- Print the contents of a Map structure. \hypertarget{sampHandlers_8c_287569451dc1bf59d1f9f6d13b56716d}{ +\index{sampHandlers.c@{sampHandlers.c}!samp\_\-resConeHandler@{samp\_\-resConeHandler}} +\index{samp\_\-resConeHandler@{samp\_\-resConeHandler}!sampHandlers.c@{sampHandlers.c}} +\subsubsection[{samp\_\-resConeHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-resConeHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampHandlers_8c_287569451dc1bf59d1f9f6d13b56716d} + + +handle a voresource.loadlist message + +SAMP\_\-RESCONEHANDLER -- Handle a voresource.loadlist.cone message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::handlerMode, samp\_\-getMapFromMap(), samp\_\-getStringFromMap(), samp\_\-getUserHandler(), samp\_\-resLoadHandler(), and SZ\_\-NAME.\hypertarget{sampHandlers_8c_c0bf7cf7fea362c0c82ad7bc3f267c48}{ +\index{sampHandlers.c@{sampHandlers.c}!samp\_\-resLoadHandler@{samp\_\-resLoadHandler}} +\index{samp\_\-resLoadHandler@{samp\_\-resLoadHandler}!sampHandlers.c@{sampHandlers.c}} +\subsubsection[{samp\_\-resLoadHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-resLoadHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampHandlers_8c_c0bf7cf7fea362c0c82ad7bc3f267c48} + + +handle a voresource.loadlist message + +SAMP\_\-RESLOADHANDLER -- handle a voresource.loadlist.$\ast$ message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::handlerMode, samp\_\-getMapFromMap(), samp\_\-getStringFromMap(), samp\_\-getUserHandler(), and SZ\_\-NAME. + +Referenced by samp\_\-resConeHandler(), samp\_\-resSiapHandler(), samp\_\-resSsapHandler(), samp\_\-resTapHandler(), and samp\_\-resVOSpaceHandler().\hypertarget{sampHandlers_8c_8b2300222d7b11f144eb4385412e69a5}{ +\index{sampHandlers.c@{sampHandlers.c}!samp\_\-resSiapHandler@{samp\_\-resSiapHandler}} +\index{samp\_\-resSiapHandler@{samp\_\-resSiapHandler}!sampHandlers.c@{sampHandlers.c}} +\subsubsection[{samp\_\-resSiapHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-resSiapHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampHandlers_8c_8b2300222d7b11f144eb4385412e69a5} + + +handle a voresource.loadlist message + +SAMP\_\-RESSIAPHANDLER -- Handle a voresource.loadlist.siap message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::handlerMode, samp\_\-getMapFromMap(), samp\_\-getStringFromMap(), samp\_\-getUserHandler(), samp\_\-resLoadHandler(), and SZ\_\-NAME.\hypertarget{sampHandlers_8c_866578a01c3b762435823b1b11869c42}{ +\index{sampHandlers.c@{sampHandlers.c}!samp\_\-resSsapHandler@{samp\_\-resSsapHandler}} +\index{samp\_\-resSsapHandler@{samp\_\-resSsapHandler}!sampHandlers.c@{sampHandlers.c}} +\subsubsection[{samp\_\-resSsapHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-resSsapHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampHandlers_8c_866578a01c3b762435823b1b11869c42} + + +handle a voresource.loadlist message + +SAMP\_\-RESSSAPHANDLER -- Handle a voresource.loadlist.ssap message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::handlerMode, samp\_\-getMapFromMap(), samp\_\-getStringFromMap(), samp\_\-getUserHandler(), samp\_\-resLoadHandler(), and SZ\_\-NAME.\hypertarget{sampHandlers_8c_ad42ca17cbaf23012ad497559ea45e4c}{ +\index{sampHandlers.c@{sampHandlers.c}!samp\_\-resTapHandler@{samp\_\-resTapHandler}} +\index{samp\_\-resTapHandler@{samp\_\-resTapHandler}!sampHandlers.c@{sampHandlers.c}} +\subsubsection[{samp\_\-resTapHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-resTapHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampHandlers_8c_ad42ca17cbaf23012ad497559ea45e4c} + + +handle a voresource.loadlist message + +SAMP\_\-RESTAPHANDLER -- Handle a voresource.loadlist.tap message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::handlerMode, samp\_\-getMapFromMap(), samp\_\-getStringFromMap(), samp\_\-getUserHandler(), samp\_\-resLoadHandler(), and SZ\_\-NAME.\hypertarget{sampHandlers_8c_fa207ebdc587ba5eeab60fbf79b635d4}{ +\index{sampHandlers.c@{sampHandlers.c}!samp\_\-resVOSpaceHandler@{samp\_\-resVOSpaceHandler}} +\index{samp\_\-resVOSpaceHandler@{samp\_\-resVOSpaceHandler}!sampHandlers.c@{sampHandlers.c}} +\subsubsection[{samp\_\-resVOSpaceHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-resVOSpaceHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampHandlers_8c_fa207ebdc587ba5eeab60fbf79b635d4} + + +handle a voresource.loadlist message + +SAMP\_\-RESVOSPACEHANDLER -- Handle a voresource.loadlist.vospace message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::handlerMode, samp\_\-getMapFromMap(), samp\_\-getStringFromMap(), samp\_\-getUserHandler(), samp\_\-resLoadHandler(), and SZ\_\-NAME.\hypertarget{sampHandlers_8c_2e8ec01a0dd96314622ae313206583db}{ +\index{sampHandlers.c@{sampHandlers.c}!samp\_\-setSampHandler@{samp\_\-setSampHandler}} +\index{samp\_\-setSampHandler@{samp\_\-setSampHandler}!sampHandlers.c@{sampHandlers.c}} +\subsubsection[{samp\_\-setSampHandler}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setSampHandler (handle\_\-t {\em handle}, \/ {\bf String} {\em mtype}, \/ void $\ast$ {\em func})}} +\label{sampHandlers_8c_2e8ec01a0dd96314622ae313206583db} + + +Set the SAMP interface handler for the mtype. + +SAMP\_\-SETSAMPHANDLER -- Set the SAMP interface handler for the mtype. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]user handle to samp struct \item[{\em mtype}]mtype name \item[{\em func}]callback function \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::nsubs, and Subs::sampFunc. + +Referenced by samp\_\-Subscribe().\hypertarget{sampHandlers_8c_81222e1f3572585fa30f11a78aa08c3f}{ +\index{sampHandlers.c@{sampHandlers.c}!samp\_\-setUserHandler@{samp\_\-setUserHandler}} +\index{samp\_\-setUserHandler@{samp\_\-setUserHandler}!sampHandlers.c@{sampHandlers.c}} +\subsubsection[{samp\_\-setUserHandler}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setUserHandler (handle\_\-t {\em handle}, \/ {\bf String} {\em mtype}, \/ void $\ast$ {\em func})}} +\label{sampHandlers_8c_81222e1f3572585fa30f11a78aa08c3f} + + +Set the user-interface handler for the mtype. + +SAMP\_\-SETUSERHANDLER -- Set the user-interface handler for the mtype. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]user handle to samp struct \item[{\em mtype}]mtype name \item[{\em func}]callback function \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::defaultUserFunc, Samp::nsubs, and Subs::userFunc. + +Referenced by samp\_\-Subscribe().\hypertarget{sampHandlers_8c_bc319b97b3dbea29bd79c4f723db5438}{ +\index{sampHandlers.c@{sampHandlers.c}!samp\_\-specLoadHandler@{samp\_\-specLoadHandler}} +\index{samp\_\-specLoadHandler@{samp\_\-specLoadHandler}!sampHandlers.c@{sampHandlers.c}} +\subsubsection[{samp\_\-specLoadHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-specLoadHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampHandlers_8c_bc319b97b3dbea29bd79c4f723db5438} + + +Handle a spectrum.load.$\ast$ message. + +SAMP\_\-SPECLOADHANDLER -- Handle a spectrum.load.$\ast$ message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::handlerMode, samp\_\-getMapFromMap(), samp\_\-getStringFromMap(), samp\_\-getUserHandler(), and SZ\_\-NAME. + +Referenced by samp\_\-specSSAHandler().\hypertarget{sampHandlers_8c_dd2bca8fa3bf3b4ebbf449edc6b65d85}{ +\index{sampHandlers.c@{sampHandlers.c}!samp\_\-specSSAHandler@{samp\_\-specSSAHandler}} +\index{samp\_\-specSSAHandler@{samp\_\-specSSAHandler}!sampHandlers.c@{sampHandlers.c}} +\subsubsection[{samp\_\-specSSAHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-specSSAHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampHandlers_8c_dd2bca8fa3bf3b4ebbf449edc6b65d85} + + +Handle a spectrum.load.ssa-generic message. + +SAMP\_\-SPECSSAHANDLER -- Handle a spectrum.load.ssa-generic message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::handlerMode, samp\_\-getMapFromMap(), samp\_\-getStringFromMap(), samp\_\-getUserHandler(), samp\_\-specLoadHandler(), and SZ\_\-NAME.\hypertarget{sampHandlers_8c_2e342b672e77e012cc98a6f5506a44be}{ +\index{sampHandlers.c@{sampHandlers.c}!samp\_\-StatusHandler@{samp\_\-StatusHandler}} +\index{samp\_\-StatusHandler@{samp\_\-StatusHandler}!sampHandlers.c@{sampHandlers.c}} +\subsubsection[{samp\_\-StatusHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-StatusHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampHandlers_8c_2e342b672e77e012cc98a6f5506a44be} + + +Return status of the task. + +SAMP\_\-STATUSHANDLER -- Return status of the task. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::handlerMode, and samp\_\-getUserHandler().\hypertarget{sampHandlers_8c_d9184eb45a5bc93b5205fd5b1c6ef688}{ +\index{sampHandlers.c@{sampHandlers.c}!samp\_\-tbHighlightHandler@{samp\_\-tbHighlightHandler}} +\index{samp\_\-tbHighlightHandler@{samp\_\-tbHighlightHandler}!sampHandlers.c@{sampHandlers.c}} +\subsubsection[{samp\_\-tbHighlightHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-tbHighlightHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampHandlers_8c_d9184eb45a5bc93b5205fd5b1c6ef688} + + +Handle a table.highlight.row message. + +SAMP\_\-TBHIGHLIGHTHANDLER -- Handle a table.highlight.row message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::handlerMode, samp\_\-getIntFromMap(), samp\_\-getStringFromMap(), samp\_\-getUserHandler(), and SZ\_\-NAME.\hypertarget{sampHandlers_8c_750c0fee0c7a99e135299c08751f288c}{ +\index{sampHandlers.c@{sampHandlers.c}!samp\_\-tbLoadFITSHandler@{samp\_\-tbLoadFITSHandler}} +\index{samp\_\-tbLoadFITSHandler@{samp\_\-tbLoadFITSHandler}!sampHandlers.c@{sampHandlers.c}} +\subsubsection[{samp\_\-tbLoadFITSHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-tbLoadFITSHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampHandlers_8c_750c0fee0c7a99e135299c08751f288c} + + +Handle a generic table.load.fits message. + +SAMP\_\-TBLOADFITSHANDLER -- Handle a generic table.load.fits message $\ast$\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::handlerMode, samp\_\-getStringFromMap(), samp\_\-getUserHandler(), samp\_\-tbLoadHandler(), and SZ\_\-NAME.\hypertarget{sampHandlers_8c_26f96dc6cbf72283e2ee9cb8b4619ed3}{ +\index{sampHandlers.c@{sampHandlers.c}!samp\_\-tbLoadHandler@{samp\_\-tbLoadHandler}} +\index{samp\_\-tbLoadHandler@{samp\_\-tbLoadHandler}!sampHandlers.c@{sampHandlers.c}} +\subsubsection[{samp\_\-tbLoadHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-tbLoadHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampHandlers_8c_26f96dc6cbf72283e2ee9cb8b4619ed3} + + +Handle a generic table.load.$\ast$ message. + +SAMP\_\-TBLOADHANDLER -- Handle a generic table.load.$\ast$ message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::handlerMode, samp\_\-getStringFromMap(), samp\_\-getUserHandler(), and SZ\_\-NAME. + +Referenced by samp\_\-tbLoadFITSHandler(), and samp\_\-tbLoadVOTHandler().\hypertarget{sampHandlers_8c_144ec2329355d91022d5ea38736c0093}{ +\index{sampHandlers.c@{sampHandlers.c}!samp\_\-tbLoadVOTHandler@{samp\_\-tbLoadVOTHandler}} +\index{samp\_\-tbLoadVOTHandler@{samp\_\-tbLoadVOTHandler}!sampHandlers.c@{sampHandlers.c}} +\subsubsection[{samp\_\-tbLoadVOTHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-tbLoadVOTHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampHandlers_8c_144ec2329355d91022d5ea38736c0093} + + +Handle a generic table.load.votable message. + +SAMP\_\-TBLOADVOTHANDLER -- Handle a generic table.load.votable message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::handlerMode, samp\_\-getStringFromMap(), samp\_\-getUserHandler(), samp\_\-tbLoadHandler(), and SZ\_\-NAME.\hypertarget{sampHandlers_8c_98d68d7091c0b7790631bb53e0ace656}{ +\index{sampHandlers.c@{sampHandlers.c}!samp\_\-tbSelectHandler@{samp\_\-tbSelectHandler}} +\index{samp\_\-tbSelectHandler@{samp\_\-tbSelectHandler}!sampHandlers.c@{sampHandlers.c}} +\subsubsection[{samp\_\-tbSelectHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-tbSelectHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{sampHandlers_8c_98d68d7091c0b7790631bb53e0ace656} + + +Handle a table.select.rowList message. + +SAMP\_\-TBSELECTHANDLER -- Handle a table.select.rowList message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::handlerMode, samp\_\-getListFromMap(), samp\_\-getStringFromMap(), samp\_\-getUserHandler(), samp\_\-listLen(), and SZ\_\-NAME. + +\subsection{Variable Documentation} +\hypertarget{sampHandlers_8c_a2106c7fe3a5747178c046238fbd5d55}{ +\index{sampHandlers.c@{sampHandlers.c}!nullList@{nullList}} +\index{nullList@{nullList}!sampHandlers.c@{sampHandlers.c}} +\subsubsection[{nullList}]{\setlength{\rightskip}{0pt plus 5cm}{\bf List} {\bf nullList}}} +\label{sampHandlers_8c_a2106c7fe3a5747178c046238fbd5d55} + + +SAMP\_\-OK Map struct \hypertarget{sampHandlers_8c_68bf22a5b3f2531242f5c6d6ecf2ea1e}{ +\index{sampHandlers.c@{sampHandlers.c}!nullMap@{nullMap}} +\index{nullMap@{nullMap}!sampHandlers.c@{sampHandlers.c}} +\subsubsection[{nullMap}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Map} {\bf nullMap}}} +\label{sampHandlers_8c_68bf22a5b3f2531242f5c6d6ecf2ea1e} + + +SAMP handle \hypertarget{sampHandlers_8c_b04b61ee02d86e15b02b861699ae7424}{ +\index{sampHandlers.c@{sampHandlers.c}!sampH@{sampH}} +\index{sampH@{sampH}!sampHandlers.c@{sampHandlers.c}} +\subsubsection[{sampH}]{\setlength{\rightskip}{0pt plus 5cm}handle\_\-t {\bf sampH}}} +\label{sampHandlers_8c_b04b61ee02d86e15b02b861699ae7424} + + +SAMP struct pointer \ No newline at end of file diff --git a/vendor/voclient/libsamp/doc/latex/sampHub_8c.tex b/vendor/voclient/libsamp/doc/latex/sampHub_8c.tex new file mode 100644 index 00000000..5f668259 --- /dev/null +++ b/vendor/voclient/libsamp/doc/latex/sampHub_8c.tex @@ -0,0 +1,421 @@ +\hypertarget{sampHub_8c}{ +\section{sampHub.c File Reference} +\label{sampHub_8c}\index{sampHub.c@{sampHub.c}} +} +Methods related to the SAMP \hyperlink{structHub}{Hub} interface. + + +{\tt \#include $<$stdlib.h$>$}\par +{\tt \#include $<$stdio.h$>$}\par +{\tt \#include $<$unistd.h$>$}\par +{\tt \#include $<$string.h$>$}\par +{\tt \#include $<$time.h$>$}\par +{\tt \#include $<$pthread.h$>$}\par +{\tt \#include $<$ctype.h$>$}\par +{\tt \#include \char`\"{}samp.h\char`\"{}}\par +\subsection*{Defines} +\begin{CompactItemize} +\item +\hypertarget{sampHub_8c_15f13b436c106e975a91e0d343005e01}{ +\#define \textbf{HUB\_\-DBG}~(getenv(\char`\"{}HUB\_\-DBG\char`\"{})!=NULL$|$$|$access(\char`\"{}/tmp/HUB\_\-DBG\char`\"{},F\_\-OK)==0)} +\label{sampHub_8c_15f13b436c106e975a91e0d343005e01} + +\end{CompactItemize} +\subsection*{Functions} +\begin{CompactItemize} +\item +handle\_\-t \hyperlink{sampHub_8c_ab66aed8f93a9cd5734a8dd62e427418}{samp\_\-hubOpen} (\hyperlink{structSamp}{Samp} $\ast$sampP) +\begin{CompactList}\small\item\em Discover and open a connection to the SAMP \hyperlink{structHub}{Hub}. \item\end{CompactList}\item +int \hyperlink{sampHub_8c_52f471568663ac6f0116d57a9ce00f00}{samp\_\-hubClose} (handle\_\-t handle) +\begin{CompactList}\small\item\em Close a connection to the \hyperlink{structHub}{Hub}. \item\end{CompactList}\item +int \hyperlink{sampHub_8c_a927eb8dcb67e245aeb5a8a4feeb6230}{samp\_\-hubRunning} (void) +\item +\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} \hyperlink{sampHub_8c_e792eedc70daa9b2d010ca6cd8e57fe8}{samp\_\-getAvailableHubs} (handle\_\-t handle) +\begin{CompactList}\small\item\em Get a list of available Hubs. \item\end{CompactList}\item +\hypertarget{sampHub_8c_4b4292d136520c3d276d655e2093dd30}{ +char $\ast$ \textbf{samp\_\-getActiveHubName} (handle\_\-t handle)} +\label{sampHub_8c_4b4292d136520c3d276d655e2093dd30} + +\item +\hypertarget{sampHub_8c_bf266e81b16f556e2f42cad5a2eb9157}{ +int \textbf{samp\_\-getActiveHub} (handle\_\-t handle)} +\label{sampHub_8c_bf266e81b16f556e2f42cad5a2eb9157} + +\item +\hypertarget{sampHub_8c_b7ea81f81c8b5b5a6d7a323e9c98cd12}{ +int \textbf{samp\_\-hubInit} (handle\_\-t handle, char $\ast$appName, char $\ast$descr)} +\label{sampHub_8c_b7ea81f81c8b5b5a6d7a323e9c98cd12} + +\item +int \hyperlink{sampHub_8c_2933b26ac05c440196368edad0167bdf}{samp\_\-processHubEvent} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} params) +\begin{CompactList}\small\item\em Determine the type of \hyperlink{structHub}{Hub} event mtype. \item\end{CompactList}\item +int \hyperlink{sampHub_8c_19f64b527fcc431541206e41f8e36132}{samp\_\-hubEvent} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype) +\begin{CompactList}\small\item\em Determine the type of \hyperlink{structHub}{Hub} event mtype. \item\end{CompactList}\item +int \hyperlink{sampHub_8c_13ad32079ae1db571e3114b7bd8ba356}{samp\_\-hubRegister} (\hyperlink{structHub}{Hub} $\ast$\hyperlink{sampHub_8c_d702b07240de0e0cf9e4b781a38317ad}{hub}) +\begin{CompactList}\small\item\em Send a Register message to the \hyperlink{structHub}{Hub}. \item\end{CompactList}\item +int \hyperlink{sampHub_8c_6d4e32ed0eb19f02cc8a75f75a98deec}{samp\_\-hubUnRegister} (\hyperlink{structHub}{Hub} $\ast$\hyperlink{sampHub_8c_d702b07240de0e0cf9e4b781a38317ad}{hub}) +\begin{CompactList}\small\item\em Send a UnRegister message to the \hyperlink{structHub}{Hub}. \item\end{CompactList}\item +int \hyperlink{sampHub_8c_a704d2a0d290f2fdfb3ebfffc39adcb3}{samp\_\-hubSendShutdown} (\hyperlink{structHub}{Hub} $\ast$\hyperlink{sampHub_8c_d702b07240de0e0cf9e4b781a38317ad}{hub}) +\begin{CompactList}\small\item\em Send a samp.app.event.shutdown message to the \hyperlink{structHub}{Hub}. \item\end{CompactList}\item +int \hyperlink{sampHub_8c_2fcb0032e5ae98fff93becdb06da49f9}{samp\_\-hubSetXmlrpcCallback} (\hyperlink{structHub}{Hub} $\ast$\hyperlink{sampHub_8c_d702b07240de0e0cf9e4b781a38317ad}{hub}) +\begin{CompactList}\small\item\em Set the client callback and send to \hyperlink{structHub}{Hub}. \item\end{CompactList}\item +int \hyperlink{sampHub_8c_47b1a9a4627fde97f95b40b372153cf6}{samp\_\-hubPing} (\hyperlink{structHub}{Hub} $\ast$\hyperlink{sampHub_8c_d702b07240de0e0cf9e4b781a38317ad}{hub}) +\begin{CompactList}\small\item\em Ping the \hyperlink{structHub}{Hub} to see if it is alive. \item\end{CompactList}\item +int \hyperlink{sampHub_8c_088f1e762175d0dbc315853d06e50149}{samp\_\-hubDeclareMetadata} (\hyperlink{structHub}{Hub} $\ast$\hyperlink{sampHub_8c_d702b07240de0e0cf9e4b781a38317ad}{hub}) +\begin{CompactList}\small\item\em Declare \char`\"{}standard\char`\"{} metadata to the \hyperlink{structHub}{Hub}. \item\end{CompactList}\item +int \hyperlink{sampHub_8c_7be493427eac28b2a064eedd8a7d63ff}{samp\_\-hubDeclareSubscriptions} (\hyperlink{structHub}{Hub} $\ast$\hyperlink{sampHub_8c_d702b07240de0e0cf9e4b781a38317ad}{hub}) +\begin{CompactList}\small\item\em Declare mtype subscriptions to the \hyperlink{structHub}{Hub}. \item\end{CompactList}\end{CompactItemize} +\subsection*{Variables} +\begin{CompactItemize} +\item +\hyperlink{structHub}{Hub} $\ast$ \hyperlink{sampHub_8c_d702b07240de0e0cf9e4b781a38317ad}{hub} = (\hyperlink{structHub}{Hub} $\ast$) NULL +\item +int \hyperlink{sampHub_8c_037f00cb1101b007b4bf45e8bee1bd3e}{numHubs} = 0 +\item +handle\_\-t \hyperlink{sampHub_8c_86b0db44d25bc3079d8d9d75e01a0ecd}{hubHandles} \mbox{[}MAX\_\-HUBS\mbox{]} +\item +pthread\_\-mutex\_\-t \hyperlink{sampHub_8c_c49d9bc6850c63f257c18f2920915d9c}{samp\_\-mutex} = PTHREAD\_\-MUTEX\_\-INITIALIZER +\item +\hypertarget{sampHub_8c_12abcaf1a16a8a7c2ef6358cdbf4d705}{ +\hyperlink{structSamp}{Samp} $\ast$ \textbf{sampP}} +\label{sampHub_8c_12abcaf1a16a8a7c2ef6358cdbf4d705} + +\item +\hypertarget{sampHub_8c_b45e068a722f83368367449cb0a5312b}{ +int \textbf{numSamps}} +\label{sampHub_8c_b45e068a722f83368367449cb0a5312b} + +\item +\hypertarget{sampHub_8c_9ee46f73e7f3c5e99958a618b2b6ed5a}{ +handle\_\-t \textbf{sampHandles} \mbox{[}MAX\_\-SAMPS\mbox{]}} +\label{sampHub_8c_9ee46f73e7f3c5e99958a618b2b6ed5a} + +\item +\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} \hyperlink{sampHub_8c_68bf22a5b3f2531242f5c6d6ecf2ea1e}{nullMap} +\end{CompactItemize} + + +\label{_details} +\hypertarget{_details}{} +\subsection{Detailed Description} +Methods related to the SAMP \hyperlink{structHub}{Hub} interface. + +SAMPHUB.C -- Methods related to the SAMP \hyperlink{structHub}{Hub} interface. + +\begin{Desc} +\item[Author:]Mike Fitzpatrick \end{Desc} +\begin{Desc} +\item[Date:]7/10/09 \end{Desc} + + +\subsection{Function Documentation} +\hypertarget{sampHub_8c_e792eedc70daa9b2d010ca6cd8e57fe8}{ +\index{sampHub.c@{sampHub.c}!samp\_\-getAvailableHubs@{samp\_\-getAvailableHubs}} +\index{samp\_\-getAvailableHubs@{samp\_\-getAvailableHubs}!sampHub.c@{sampHub.c}} +\subsubsection[{samp\_\-getAvailableHubs}]{\setlength{\rightskip}{0pt plus 5cm}{\bf List} samp\_\-getAvailableHubs (handle\_\-t {\em handle})}} +\label{sampHub_8c_e792eedc70daa9b2d010ca6cd8e57fe8} + + +Get a list of available Hubs. + +SAMP\_\-GETAVAILABLEHUBS -- Get a list of available Hubs + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]hub handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]List of hub handles \end{Desc} +\hypertarget{sampHub_8c_52f471568663ac6f0116d57a9ce00f00}{ +\index{sampHub.c@{sampHub.c}!samp\_\-hubClose@{samp\_\-hubClose}} +\index{samp\_\-hubClose@{samp\_\-hubClose}!sampHub.c@{sampHub.c}} +\subsubsection[{samp\_\-hubClose}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-hubClose (handle\_\-t {\em handle})}} +\label{sampHub_8c_52f471568663ac6f0116d57a9ce00f00} + + +Close a connection to the \hyperlink{structHub}{Hub}. + +SAMP\_\-HUBCLOSE -- Close a connection to the \hyperlink{structHub}{Hub}. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]hub handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]unregister status \end{Desc} + + +References appMD::aKey, appMD::aVal, Hub::meta, appMD::nkeys, samp\_\-freeHandle(), and samp\_\-hubUnRegister(). + +Referenced by sampClose(), and sampShutdown().\hypertarget{sampHub_8c_088f1e762175d0dbc315853d06e50149}{ +\index{sampHub.c@{sampHub.c}!samp\_\-hubDeclareMetadata@{samp\_\-hubDeclareMetadata}} +\index{samp\_\-hubDeclareMetadata@{samp\_\-hubDeclareMetadata}!sampHub.c@{sampHub.c}} +\subsubsection[{samp\_\-hubDeclareMetadata}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-hubDeclareMetadata ({\bf Hub} $\ast$ {\em hub})}} +\label{sampHub_8c_088f1e762175d0dbc315853d06e50149} + + +Declare \char`\"{}standard\char`\"{} metadata to the \hyperlink{structHub}{Hub}. + +SAMP\_\-DECLAREMETADATA -- Declare \char`\"{}standard\char`\"{} metadata to the \hyperlink{structHub}{Hub}. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em hub}]hub struct pointer \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]status \end{Desc} + + +References appMD::aKey, appMD::aVal, Hub::description, appMD::docURL, appMD::iconURL, Hub::id, Hub::meta, appMD::nkeys, and Hub::privateKey. + +Referenced by samp\_\-DeclareMetadata(), and sampStartup().\hypertarget{sampHub_8c_7be493427eac28b2a064eedd8a7d63ff}{ +\index{sampHub.c@{sampHub.c}!samp\_\-hubDeclareSubscriptions@{samp\_\-hubDeclareSubscriptions}} +\index{samp\_\-hubDeclareSubscriptions@{samp\_\-hubDeclareSubscriptions}!sampHub.c@{sampHub.c}} +\subsubsection[{samp\_\-hubDeclareSubscriptions}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-hubDeclareSubscriptions ({\bf Hub} $\ast$ {\em hub})}} +\label{sampHub_8c_7be493427eac28b2a064eedd8a7d63ff} + + +Declare mtype subscriptions to the \hyperlink{structHub}{Hub}. + +SAMP\_\-HUBDECLARESUBSCRIPTIONS -- Declare mtype subscriptions to the \hyperlink{structHub}{Hub}. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em hub}]hub struct pointer \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]status \end{Desc} + + +References Hub::id, Samp::nsubs, nullMap, Hub::privateKey, Hub::samp, samp\_\-freeMap(), and Subs::userFunc. + +Referenced by samp\_\-DeclareSubscriptions(), and sampStartup().\hypertarget{sampHub_8c_19f64b527fcc431541206e41f8e36132}{ +\index{sampHub.c@{sampHub.c}!samp\_\-hubEvent@{samp\_\-hubEvent}} +\index{samp\_\-hubEvent@{samp\_\-hubEvent}!sampHub.c@{sampHub.c}} +\subsubsection[{samp\_\-hubEvent}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-hubEvent ({\bf String} {\em mtype})}} +\label{sampHub_8c_19f64b527fcc431541206e41f8e36132} + + +Determine the type of \hyperlink{structHub}{Hub} event mtype. + +SAMP\_\-HUBEVENT -- Determine the type of \hyperlink{structHub}{Hub} event mtype. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em mtype}]mtype string \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]\hyperlink{structHub}{Hub} event code or -1 if not found \end{Desc} + + +References HUB\_\-SHUTDOWN. + +Referenced by samp\_\-processHubEvent().\hypertarget{sampHub_8c_ab66aed8f93a9cd5734a8dd62e427418}{ +\index{sampHub.c@{sampHub.c}!samp\_\-hubOpen@{samp\_\-hubOpen}} +\index{samp\_\-hubOpen@{samp\_\-hubOpen}!sampHub.c@{sampHub.c}} +\subsubsection[{samp\_\-hubOpen}]{\setlength{\rightskip}{0pt plus 5cm}handle\_\-t samp\_\-hubOpen ({\bf Samp} $\ast$ {\em sampP})}} +\label{sampHub_8c_ab66aed8f93a9cd5734a8dd62e427418} + + +Discover and open a connection to the SAMP \hyperlink{structHub}{Hub}. + +SAMP\_\-HUBOPEN -- Discover and open a connection to the SAMP \hyperlink{structHub}{Hub}. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em samp}]Same structure \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]hub handle \end{Desc} + + +References Hub::appId, Samp::appVer, Hub::appVer, appMD::desc, Hub::description, Samp::description, Hub::id, Hub::meta, Hub::samp, samp\_\-hubRegister(), samp\_\-hubSetXmlrpcCallback(), samp\_\-newHandle(), samp\_\-P2H(), Hub::timeout, and Hub::url. + +Referenced by sampInit(), and sampStartup().\hypertarget{sampHub_8c_47b1a9a4627fde97f95b40b372153cf6}{ +\index{sampHub.c@{sampHub.c}!samp\_\-hubPing@{samp\_\-hubPing}} +\index{samp\_\-hubPing@{samp\_\-hubPing}!sampHub.c@{sampHub.c}} +\subsubsection[{samp\_\-hubPing}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-hubPing ({\bf Hub} $\ast$ {\em hub})}} +\label{sampHub_8c_47b1a9a4627fde97f95b40b372153cf6} + + +Ping the \hyperlink{structHub}{Hub} to see if it is alive. + +SAMP\_\-HUBPING -- Ping the \hyperlink{structHub}{Hub} to see if it is alive. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em hub}]hub struct pointer \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]status \end{Desc} + + +References Hub::id, and Hub::privateKey. + +Referenced by samp\_\-Ping().\hypertarget{sampHub_8c_13ad32079ae1db571e3114b7bd8ba356}{ +\index{sampHub.c@{sampHub.c}!samp\_\-hubRegister@{samp\_\-hubRegister}} +\index{samp\_\-hubRegister@{samp\_\-hubRegister}!sampHub.c@{sampHub.c}} +\subsubsection[{samp\_\-hubRegister}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-hubRegister ({\bf Hub} $\ast$ {\em hub})}} +\label{sampHub_8c_13ad32079ae1db571e3114b7bd8ba356} + + +Send a Register message to the \hyperlink{structHub}{Hub}. + +SAMP\_\-HUB\_\-REGISTER -- Send a Register message to the \hyperlink{structHub}{Hub}. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em hub}]hub struct pointer \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]status \end{Desc} + + +References Hub::hubId, Hub::id, Hub::privateKey, Hub::secret, and Hub::selfId. + +Referenced by samp\_\-hubOpen().\hypertarget{sampHub_8c_a927eb8dcb67e245aeb5a8a4feeb6230}{ +\index{sampHub.c@{sampHub.c}!samp\_\-hubRunning@{samp\_\-hubRunning}} +\index{samp\_\-hubRunning@{samp\_\-hubRunning}!sampHub.c@{sampHub.c}} +\subsubsection[{samp\_\-hubRunning}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-hubRunning (void)}} +\label{sampHub_8c_a927eb8dcb67e245aeb5a8a4feeb6230} + + +SAMP\_\-HUBRUNNING -- See whether a \hyperlink{structHub}{Hub} is running. The test simply checks the existence of a \hyperlink{structHub}{Hub} lockfile. + +References SZ\_\-NAME.\hypertarget{sampHub_8c_a704d2a0d290f2fdfb3ebfffc39adcb3}{ +\index{sampHub.c@{sampHub.c}!samp\_\-hubSendShutdown@{samp\_\-hubSendShutdown}} +\index{samp\_\-hubSendShutdown@{samp\_\-hubSendShutdown}!sampHub.c@{sampHub.c}} +\subsubsection[{samp\_\-hubSendShutdown}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-hubSendShutdown ({\bf Hub} $\ast$ {\em hub})}} +\label{sampHub_8c_a704d2a0d290f2fdfb3ebfffc39adcb3} + + +Send a samp.app.event.shutdown message to the \hyperlink{structHub}{Hub}. + +SAMP\_\-HUBSENDSHUTDOWN -- Send a samp.app.event.shutdown message to the \hyperlink{structHub}{Hub}. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em hub}]hub struct pointer \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]status \end{Desc} + + +References Hub::id, Hub::privateKey, and samp\_\-nullResponse().\hypertarget{sampHub_8c_2fcb0032e5ae98fff93becdb06da49f9}{ +\index{sampHub.c@{sampHub.c}!samp\_\-hubSetXmlrpcCallback@{samp\_\-hubSetXmlrpcCallback}} +\index{samp\_\-hubSetXmlrpcCallback@{samp\_\-hubSetXmlrpcCallback}!sampHub.c@{sampHub.c}} +\subsubsection[{samp\_\-hubSetXmlrpcCallback}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-hubSetXmlrpcCallback ({\bf Hub} $\ast$ {\em hub})}} +\label{sampHub_8c_2fcb0032e5ae98fff93becdb06da49f9} + + +Set the client callback and send to \hyperlink{structHub}{Hub}. + +SAMP\_\-HUBSETXMLRPCCALLBACK -- Set the client callback and send to \hyperlink{structHub}{Hub} + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em hub}]hub struct pointer \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]status \end{Desc} + + +References Hub::id, Hub::privateKey, and samp\_\-serverPort(). + +Referenced by samp\_\-hubOpen().\hypertarget{sampHub_8c_6d4e32ed0eb19f02cc8a75f75a98deec}{ +\index{sampHub.c@{sampHub.c}!samp\_\-hubUnRegister@{samp\_\-hubUnRegister}} +\index{samp\_\-hubUnRegister@{samp\_\-hubUnRegister}!sampHub.c@{sampHub.c}} +\subsubsection[{samp\_\-hubUnRegister}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-hubUnRegister ({\bf Hub} $\ast$ {\em hub})}} +\label{sampHub_8c_6d4e32ed0eb19f02cc8a75f75a98deec} + + +Send a UnRegister message to the \hyperlink{structHub}{Hub}. + +SAMP\_\-HUBUNREGISTER -- Send a UnRegister message to the \hyperlink{structHub}{Hub}. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em hub}]hub struct pointer \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]status \end{Desc} + + +References Hub::id, and Hub::privateKey. + +Referenced by samp\_\-hubClose(), and samp\_\-UnRegister().\hypertarget{sampHub_8c_2933b26ac05c440196368edad0167bdf}{ +\index{sampHub.c@{sampHub.c}!samp\_\-processHubEvent@{samp\_\-processHubEvent}} +\index{samp\_\-processHubEvent@{samp\_\-processHubEvent}!sampHub.c@{sampHub.c}} +\subsubsection[{samp\_\-processHubEvent}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-processHubEvent ({\bf String} {\em mtype}, \/ {\bf Map} {\em params})}} +\label{sampHub_8c_2933b26ac05c440196368edad0167bdf} + + +Determine the type of \hyperlink{structHub}{Hub} event mtype. + +SAMP\_\-HUBEVENT -- Determine the type of \hyperlink{structHub}{Hub} event mtype. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em mtype}]mtype string \item[{\em params}]message parameter Map \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]non-zero value if a \hyperlink{structHub}{Hub} event was processed \end{Desc} + + +References HUB\_\-SHUTDOWN, samp\_\-addClient(), samp\_\-hubEvent(), samp\_\-mutex, samp\_\-P2H(), samp\_\-removeClient(), sampH, and sampShutdown(). + +Referenced by samp\_\-receiveNotification(). + +\subsection{Variable Documentation} +\hypertarget{sampHub_8c_d702b07240de0e0cf9e4b781a38317ad}{ +\index{sampHub.c@{sampHub.c}!hub@{hub}} +\index{hub@{hub}!sampHub.c@{sampHub.c}} +\subsubsection[{hub}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Hub}$\ast$ {\bf hub} = ({\bf Hub} $\ast$) NULL}} +\label{sampHub_8c_d702b07240de0e0cf9e4b781a38317ad} + + +empty List struct + +Referenced by samp\_\-bibLoad(), samp\_\-call(), samp\_\-callAll(), samp\_\-callAndWait(), samp\_\-cmdExec(), samp\_\-coordPointAtSky(), samp\_\-DeclareMetadata(), samp\_\-DeclareSubscriptions(), samp\_\-envGet(), samp\_\-envSet(), samp\_\-GetMetadata(), samp\_\-imageLoadFITS(), samp\_\-notify(), samp\_\-notifyAll(), samp\_\-paramGet(), samp\_\-paramSet(), samp\_\-Register(), samp\_\-Reply(), samp\_\-resourceLoad(), samp\_\-sendGeneric(), samp\_\-specLoadSSAGeneric(), samp\_\-tableHighlightRow(), samp\_\-tableLoadFITS(), samp\_\-tableLoadVOTable(), samp\_\-tableSelectRowList(), and samp\_\-UnRegister().\hypertarget{sampHub_8c_86b0db44d25bc3079d8d9d75e01a0ecd}{ +\index{sampHub.c@{sampHub.c}!hubHandles@{hubHandles}} +\index{hubHandles@{hubHandles}!sampHub.c@{sampHub.c}} +\subsubsection[{hubHandles}]{\setlength{\rightskip}{0pt plus 5cm}handle\_\-t {\bf hubHandles}\mbox{[}MAX\_\-HUBS\mbox{]}}} +\label{sampHub_8c_86b0db44d25bc3079d8d9d75e01a0ecd} + + +No. of available hubs \hypertarget{sampHub_8c_68bf22a5b3f2531242f5c6d6ecf2ea1e}{ +\index{sampHub.c@{sampHub.c}!nullMap@{nullMap}} +\index{nullMap@{nullMap}!sampHub.c@{sampHub.c}} +\subsubsection[{nullMap}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Map} {\bf nullMap}}} +\label{sampHub_8c_68bf22a5b3f2531242f5c6d6ecf2ea1e} + + +SAMP handle \hypertarget{sampHub_8c_037f00cb1101b007b4bf45e8bee1bd3e}{ +\index{sampHub.c@{sampHub.c}!numHubs@{numHubs}} +\index{numHubs@{numHubs}!sampHub.c@{sampHub.c}} +\subsubsection[{numHubs}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf numHubs} = 0}} +\label{sampHub_8c_037f00cb1101b007b4bf45e8bee1bd3e} + + +HUB connection \hypertarget{sampHub_8c_c49d9bc6850c63f257c18f2920915d9c}{ +\index{sampHub.c@{sampHub.c}!samp\_\-mutex@{samp\_\-mutex}} +\index{samp\_\-mutex@{samp\_\-mutex}!sampHub.c@{sampHub.c}} +\subsubsection[{samp\_\-mutex}]{\setlength{\rightskip}{0pt plus 5cm}pthread\_\-mutex\_\-t {\bf samp\_\-mutex} = PTHREAD\_\-MUTEX\_\-INITIALIZER}} +\label{sampHub_8c_c49d9bc6850c63f257c18f2920915d9c} + + +lock so we can update struct + +Referenced by samp\_\-processHubEvent(). \ No newline at end of file diff --git a/vendor/voclient/libsamp/doc/latex/sampList_8c.tex b/vendor/voclient/libsamp/doc/latex/sampList_8c.tex new file mode 100644 index 00000000..821a0745 --- /dev/null +++ b/vendor/voclient/libsamp/doc/latex/sampList_8c.tex @@ -0,0 +1,301 @@ +\hypertarget{sampList_8c}{ +\section{sampList.c File Reference} +\label{sampList_8c}\index{sampList.c@{sampList.c}} +} +(Internal) interface to support the List structure. + + +{\tt \#include $<$stdlib.h$>$}\par +{\tt \#include $<$stdio.h$>$}\par +{\tt \#include $<$unistd.h$>$}\par +{\tt \#include $<$string.h$>$}\par +{\tt \#include \char`\"{}samp.h\char`\"{}}\par +\subsection*{Functions} +\begin{CompactItemize} +\item +handle\_\-t \hyperlink{sampList_8c_b5375a6478dccefe7df2b48416604b29}{samp\_\-newList} () +\begin{CompactList}\small\item\em Create a new List object. \item\end{CompactList}\item +void \hyperlink{sampList_8c_b162ae9b9f98da80f6bb5c34b5cbcbf6}{samp\_\-freeList} (\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} list) +\begin{CompactList}\small\item\em Free the given List object. \item\end{CompactList}\item +int \hyperlink{sampList_8c_c260afb0cbf19b427e3eba96a2341e52}{samp\_\-listLen} (\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} list) +\begin{CompactList}\small\item\em Get number of elements in a List. \item\end{CompactList}\item +void \hyperlink{sampList_8c_5b69180b036e58528c98b1cf5a42825a}{samp\_\-setStringInList} (\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} list, char $\ast$value) +\begin{CompactList}\small\item\em Set a string in a List (append). \item\end{CompactList}\item +void \hyperlink{sampList_8c_ea188bb711f3b5549d11204b0ff2da08}{samp\_\-setMapInList} (\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} list, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map) +\begin{CompactList}\small\item\em Set a Map in a List (append). \item\end{CompactList}\item +void \hyperlink{sampList_8c_0ff97d44e62b7c88a046a29324552400}{samp\_\-setListInList} (\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} list1, \hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} list2) +\begin{CompactList}\small\item\em Set a List in another List (append). \item\end{CompactList}\item +void \hyperlink{sampList_8c_a803bead8b452de6e1d08b8b3b9e8828}{samp\_\-setIntInList} (\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} list, int ival) +\begin{CompactList}\small\item\em Set an Int in a List (append). \item\end{CompactList}\item +void \hyperlink{sampList_8c_18d586491620a63b3a4d6c3667ee2aa5}{samp\_\-setFloatInList} (\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} list, float rval) +\begin{CompactList}\small\item\em Set a Float in a List (append). \item\end{CompactList}\item +char $\ast$ \hyperlink{sampList_8c_2d1cd41c4583ac300aaa2d50ad3f76ed}{samp\_\-getStringFromList} (\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} list, int index) +\begin{CompactList}\small\item\em Get a string from the List. \item\end{CompactList}\item +\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} \hyperlink{sampList_8c_33ca96ee3a8e7d26356c7b66f469da74}{samp\_\-getMapFromList} (\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} list, int index) +\begin{CompactList}\small\item\em Get a Map from the List. \item\end{CompactList}\item +\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} \hyperlink{sampList_8c_1ec1ddadb4e889792b6fa7df6f6c3125}{samp\_\-getListFromList} (\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} list, int index) +\begin{CompactList}\small\item\em Get a List from the List. \item\end{CompactList}\item +\hypertarget{sampList_8c_1174e001b2d16ed0aa1b317cfc883af1}{ +int \textbf{samp\_\-getIntFromList} (\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} list, int index)} +\label{sampList_8c_1174e001b2d16ed0aa1b317cfc883af1} + +\item +float \hyperlink{sampList_8c_4e8339b2b3f5ff1a58cebb74eddca9e6}{samp\_\-getFloatFromList} (\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} list, int index) +\begin{CompactList}\small\item\em Get a Float from the List. \item\end{CompactList}\end{CompactItemize} + + +\label{_details} +\hypertarget{_details}{} +\subsection{Detailed Description} +(Internal) interface to support the List structure. + +SAMPLIST.C -- (Internal) interface to support the List structure. + +list = samp\_\-newList () samp\_\-freeList (List list) len = samp\_\-listLen (List list) + +samp\_\-setStringInList (List list, char $\ast$value) samp\_\-setMapInList (List list, Map map) samp\_\-setListInList (List list1, List list2) samp\_\-setIntInList (List list, int val) samp\_\-setFloatInList (List list, float val) + +str = samp\_\-getStringFromList (List list, int index) map = samp\_\-getMapFromList (List list, int index) list = samp\_\-getListFromList (List list, int index) ival = samp\_\-getIntFromList (List list, int index) rval = samp\_\-getFloatFromList (List list, int index) + +\begin{Desc} +\item[Author:]Mike Fitzpatrick \end{Desc} +\begin{Desc} +\item[Date:]7/10/09 \end{Desc} + + +\subsection{Function Documentation} +\hypertarget{sampList_8c_b162ae9b9f98da80f6bb5c34b5cbcbf6}{ +\index{sampList.c@{sampList.c}!samp\_\-freeList@{samp\_\-freeList}} +\index{samp\_\-freeList@{samp\_\-freeList}!sampList.c@{sampList.c}} +\subsubsection[{samp\_\-freeList}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-freeList ({\bf List} {\em list})}} +\label{sampList_8c_b162ae9b9f98da80f6bb5c34b5cbcbf6} + + +Free the given List object. + +SAMP\_\-FREELIST -- Free the given List object + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em list}]List object handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +Referenced by samp\_\-mapClients(), and samp\_\-tableSelectRowList().\hypertarget{sampList_8c_4e8339b2b3f5ff1a58cebb74eddca9e6}{ +\index{sampList.c@{sampList.c}!samp\_\-getFloatFromList@{samp\_\-getFloatFromList}} +\index{samp\_\-getFloatFromList@{samp\_\-getFloatFromList}!sampList.c@{sampList.c}} +\subsubsection[{samp\_\-getFloatFromList}]{\setlength{\rightskip}{0pt plus 5cm}float samp\_\-getFloatFromList ({\bf List} {\em list}, \/ int {\em index})}} +\label{sampList_8c_4e8339b2b3f5ff1a58cebb74eddca9e6} + + +Get a Float from the List. + +SAMP\_\-GETFLOATFROMLIST -- Get a Float from the List + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em list}]List object handle \item[{\em index}]List index containing the desired value \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]int value \end{Desc} +\hypertarget{sampList_8c_1ec1ddadb4e889792b6fa7df6f6c3125}{ +\index{sampList.c@{sampList.c}!samp\_\-getListFromList@{samp\_\-getListFromList}} +\index{samp\_\-getListFromList@{samp\_\-getListFromList}!sampList.c@{sampList.c}} +\subsubsection[{samp\_\-getListFromList}]{\setlength{\rightskip}{0pt plus 5cm}{\bf List} samp\_\-getListFromList ({\bf List} {\em list}, \/ int {\em index})}} +\label{sampList_8c_1ec1ddadb4e889792b6fa7df6f6c3125} + + +Get a List from the List. + +Get an Int from the List. + +SAMP\_\-GETLISTFROMLIST -- Get a List from the List + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em list}]List object handle \item[{\em index}]List index containing the List \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]List handle\end{Desc} +SAMP\_\-GETINTFROMLIST -- Get an Int from the List + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em list}]List object handle \item[{\em index}]List index containing the desired value \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]int value \end{Desc} +\hypertarget{sampList_8c_33ca96ee3a8e7d26356c7b66f469da74}{ +\index{sampList.c@{sampList.c}!samp\_\-getMapFromList@{samp\_\-getMapFromList}} +\index{samp\_\-getMapFromList@{samp\_\-getMapFromList}!sampList.c@{sampList.c}} +\subsubsection[{samp\_\-getMapFromList}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Map} samp\_\-getMapFromList ({\bf List} {\em list}, \/ int {\em index})}} +\label{sampList_8c_33ca96ee3a8e7d26356c7b66f469da74} + + +Get a Map from the List. + +SAMP\_\-GETMAPFROMLIST -- Get a Map from the List + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em list}]List object handle \item[{\em index}]List index containing the Map \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]Map handle \end{Desc} +\hypertarget{sampList_8c_2d1cd41c4583ac300aaa2d50ad3f76ed}{ +\index{sampList.c@{sampList.c}!samp\_\-getStringFromList@{samp\_\-getStringFromList}} +\index{samp\_\-getStringFromList@{samp\_\-getStringFromList}!sampList.c@{sampList.c}} +\subsubsection[{samp\_\-getStringFromList}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ samp\_\-getStringFromList ({\bf List} {\em list}, \/ int {\em index})}} +\label{sampList_8c_2d1cd41c4583ac300aaa2d50ad3f76ed} + + +Get a string from the List. + +SAMP\_\-GETSTRINGFROMLIST -- Get a string from the List + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em list}]List object handle \item[{\em index}]List index containing the string \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]character string \end{Desc} + + +Referenced by samp\_\-mapClients().\hypertarget{sampList_8c_c260afb0cbf19b427e3eba96a2341e52}{ +\index{sampList.c@{sampList.c}!samp\_\-listLen@{samp\_\-listLen}} +\index{samp\_\-listLen@{samp\_\-listLen}!sampList.c@{sampList.c}} +\subsubsection[{samp\_\-listLen}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-listLen ({\bf List} {\em list})}} +\label{sampList_8c_c260afb0cbf19b427e3eba96a2341e52} + + +Get number of elements in a List. + +SAMP\_\-LISTLEN -- Get number of elements in a List. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em list}]List object handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +Referenced by samp\_\-execUserHandler(), samp\_\-GetRegisteredClients(), samp\_\-GetSubscribedClients(), samp\_\-mapClients(), and samp\_\-tbSelectHandler().\hypertarget{sampList_8c_b5375a6478dccefe7df2b48416604b29}{ +\index{sampList.c@{sampList.c}!samp\_\-newList@{samp\_\-newList}} +\index{samp\_\-newList@{samp\_\-newList}!sampList.c@{sampList.c}} +\subsubsection[{samp\_\-newList}]{\setlength{\rightskip}{0pt plus 5cm}handle\_\-t samp\_\-newList (void)}} +\label{sampList_8c_b5375a6478dccefe7df2b48416604b29} + + +Create a new List object. + +SAMP\_\-NEWLIST -- Create a new List object + +\begin{Desc} +\item[Returns:]handle to List object \end{Desc} + + +Referenced by samp\_\-GetRegisteredClients(), samp\_\-GetSubscribedClients(), samp\_\-tableSelectRowList(), and sampInit().\hypertarget{sampList_8c_18d586491620a63b3a4d6c3667ee2aa5}{ +\index{sampList.c@{sampList.c}!samp\_\-setFloatInList@{samp\_\-setFloatInList}} +\index{samp\_\-setFloatInList@{samp\_\-setFloatInList}!sampList.c@{sampList.c}} +\subsubsection[{samp\_\-setFloatInList}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setFloatInList ({\bf List} {\em list}, \/ float {\em rval})}} +\label{sampList_8c_18d586491620a63b3a4d6c3667ee2aa5} + + +Set a Float in a List (append). + +SAMP\_\-SETFLOATINLIST -- Set a Float in a List (append) + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em list1}]List object handle \item[{\em rval}]Float value to be appended \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{sampList_8c_a803bead8b452de6e1d08b8b3b9e8828}{ +\index{sampList.c@{sampList.c}!samp\_\-setIntInList@{samp\_\-setIntInList}} +\index{samp\_\-setIntInList@{samp\_\-setIntInList}!sampList.c@{sampList.c}} +\subsubsection[{samp\_\-setIntInList}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setIntInList ({\bf List} {\em list}, \/ int {\em ival})}} +\label{sampList_8c_a803bead8b452de6e1d08b8b3b9e8828} + + +Set an Int in a List (append). + +SAMP\_\-SETINTINLIST -- Set an Int in a List (append) + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em list1}]List object handle \item[{\em ival}]Integer value to be appended \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +Referenced by samp\_\-tableSelectRowList().\hypertarget{sampList_8c_0ff97d44e62b7c88a046a29324552400}{ +\index{sampList.c@{sampList.c}!samp\_\-setListInList@{samp\_\-setListInList}} +\index{samp\_\-setListInList@{samp\_\-setListInList}!sampList.c@{sampList.c}} +\subsubsection[{samp\_\-setListInList}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setListInList ({\bf List} {\em list1}, \/ {\bf List} {\em list2})}} +\label{sampList_8c_0ff97d44e62b7c88a046a29324552400} + + +Set a List in another List (append). + +SAMP\_\-SETLISTINLIST -- Set a List in another List (append) + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em list1}]List object handle \item[{\em list2}]List to be appended \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{sampList_8c_ea188bb711f3b5549d11204b0ff2da08}{ +\index{sampList.c@{sampList.c}!samp\_\-setMapInList@{samp\_\-setMapInList}} +\index{samp\_\-setMapInList@{samp\_\-setMapInList}!sampList.c@{sampList.c}} +\subsubsection[{samp\_\-setMapInList}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setMapInList ({\bf List} {\em list}, \/ {\bf Map} {\em map})}} +\label{sampList_8c_ea188bb711f3b5549d11204b0ff2da08} + + +Set a Map in a List (append). + +SAMP\_\-SETMAPINLIST -- Set a Map in a List (append) + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em list}]List object handle \item[{\em map}]Map object to be set \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{sampList_8c_5b69180b036e58528c98b1cf5a42825a}{ +\index{sampList.c@{sampList.c}!samp\_\-setStringInList@{samp\_\-setStringInList}} +\index{samp\_\-setStringInList@{samp\_\-setStringInList}!sampList.c@{sampList.c}} +\subsubsection[{samp\_\-setStringInList}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setStringInList ({\bf List} {\em list}, \/ char $\ast$ {\em value})}} +\label{sampList_8c_5b69180b036e58528c98b1cf5a42825a} + + +Set a string in a List (append). + +SAMP\_\-SETSTRINGINLIST -- Set a string in a List (append) + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em list}]List object handle \item[{\em value}]string value to set \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +Referenced by samp\_\-GetRegisteredClients(), and samp\_\-GetSubscribedClients(). \ No newline at end of file diff --git a/vendor/voclient/libsamp/doc/latex/sampLog_8c.tex b/vendor/voclient/libsamp/doc/latex/sampLog_8c.tex new file mode 100644 index 00000000..f52c3ab3 --- /dev/null +++ b/vendor/voclient/libsamp/doc/latex/sampLog_8c.tex @@ -0,0 +1,109 @@ +\hypertarget{sampLog_8c}{ +\section{sampLog.c File Reference} +\label{sampLog_8c}\index{sampLog.c@{sampLog.c}} +} +SAMP trace and logging interface. + + +{\tt \#include $<$stdio.h$>$}\par +{\tt \#include $<$fcntl.h$>$}\par +{\tt \#include $<$signal.h$>$}\par +{\tt \#include $<$unistd.h$>$}\par +{\tt \#include $<$stdlib.h$>$}\par +{\tt \#include $<$string.h$>$}\par +{\tt \#include $<$stdarg.h$>$}\par +{\tt \#include \char`\"{}samp.h\char`\"{}}\par +\subsection*{Defines} +\begin{CompactItemize} +\item +\hypertarget{sampLog_8c_7ca95aa869dee3c8acc0b1e278ec08be}{ +\#define \textbf{SZ\_\-FMTSPEC}~25} +\label{sampLog_8c_7ca95aa869dee3c8acc0b1e278ec08be} + +\item +\hypertarget{sampLog_8c_adbbc7b02d94a4c18646813ac8d7dec1}{ +\#define \textbf{EOS}~0} +\label{sampLog_8c_adbbc7b02d94a4c18646813ac8d7dec1} + +\item +\hypertarget{sampLog_8c_4fa28a492427bc4af75248e22537e9b4}{ +\#define \textbf{T\_\-INT}~0} +\label{sampLog_8c_4fa28a492427bc4af75248e22537e9b4} + +\item +\hypertarget{sampLog_8c_6e80924a839d0f80571bcd1d2b6ec084}{ +\#define \textbf{T\_\-DOUBLE}~1} +\label{sampLog_8c_6e80924a839d0f80571bcd1d2b6ec084} + +\item +\hypertarget{sampLog_8c_e2381f297a8fbb736886d7d1b6b99b42}{ +\#define \textbf{T\_\-CHAR}~2} +\label{sampLog_8c_e2381f297a8fbb736886d7d1b6b99b42} + +\end{CompactItemize} +\subsection*{Functions} +\begin{CompactItemize} +\item +void \hyperlink{sampLog_8c_4919f892b6fccced4e6b9d777071b781}{sampLog} (handle\_\-t handle, char $\ast$format,...) +\begin{CompactList}\small\item\em SAMP message logger. \item\end{CompactList}\item +void \hyperlink{sampLog_8c_2b3dd1662e61c83e29109126689b08b9}{sampTrace} (handle\_\-t handle, char $\ast$format,...) +\begin{CompactList}\small\item\em SAMP tracer. \item\end{CompactList}\end{CompactItemize} + + +\label{_details} +\hypertarget{_details}{} +\subsection{Detailed Description} +SAMP trace and logging interface. + +SAMPLOG.C -- SAMP trace and logging interface. + +\begin{Desc} +\item[Author:]Mike Fitzpatrick \end{Desc} +\begin{Desc} +\item[Date:]6/10/09 \end{Desc} + + +\subsection{Function Documentation} +\hypertarget{sampLog_8c_4919f892b6fccced4e6b9d777071b781}{ +\index{sampLog.c@{sampLog.c}!sampLog@{sampLog}} +\index{sampLog@{sampLog}!sampLog.c@{sampLog.c}} +\subsubsection[{sampLog}]{\setlength{\rightskip}{0pt plus 5cm}void sampLog (handle\_\-t {\em handle}, \/ char $\ast$ {\em format}, \/ {\em ...})}} +\label{sampLog_8c_4919f892b6fccced4e6b9d777071b781} + + +SAMP message logger. + +SAMPLOG -- SAMP message logger. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]SAMP handle \item[{\em format}]message format string \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::debug, and Samp::logfd.\hypertarget{sampLog_8c_2b3dd1662e61c83e29109126689b08b9}{ +\index{sampLog.c@{sampLog.c}!sampTrace@{sampTrace}} +\index{sampTrace@{sampTrace}!sampLog.c@{sampLog.c}} +\subsubsection[{sampTrace}]{\setlength{\rightskip}{0pt plus 5cm}void sampTrace (handle\_\-t {\em handle}, \/ char $\ast$ {\em format}, \/ {\em ...})}} +\label{sampLog_8c_2b3dd1662e61c83e29109126689b08b9} + + +SAMP tracer. + +SAMPTRACE -- SAMP tracer. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]SAMP handle \item[{\em format}]message format string \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::trace. + +Referenced by samp\_\-Metadata(), sampClose(), and sampInit(). \ No newline at end of file diff --git a/vendor/voclient/libsamp/doc/latex/sampMTypes_8c.tex b/vendor/voclient/libsamp/doc/latex/sampMTypes_8c.tex new file mode 100644 index 00000000..87bc9119 --- /dev/null +++ b/vendor/voclient/libsamp/doc/latex/sampMTypes_8c.tex @@ -0,0 +1,396 @@ +\hypertarget{sampMTypes_8c}{ +\section{sampMTypes.c File Reference} +\label{sampMTypes_8c}\index{sampMTypes.c@{sampMTypes.c}} +} +SAMP interface procedures for application mtypes. + + +{\tt \#include $<$stdlib.h$>$}\par +{\tt \#include $<$stdio.h$>$}\par +{\tt \#include $<$unistd.h$>$}\par +{\tt \#include $<$string.h$>$}\par +{\tt \#include $<$time.h$>$}\par +{\tt \#include $<$ctype.h$>$}\par +{\tt \#include \char`\"{}samp.h\char`\"{}}\par +\subsection*{Functions} +\begin{CompactItemize} +\item +int \hyperlink{sampMTypes_8c_34e9d38073f36daaf41c418f8d680ee5}{samp\_\-tableLoadVOTable} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} url, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} tableId, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} name) +\begin{CompactList}\small\item\em Tell an app to load a VOTable. \item\end{CompactList}\item +int \hyperlink{sampMTypes_8c_74aeaaf742121348390ec854c30c1479}{samp\_\-tableLoadFITS} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} url, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} tableId, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} name) +\begin{CompactList}\small\item\em Tell an app to load a FITS table. \item\end{CompactList}\item +int \hyperlink{sampMTypes_8c_e38ac987f1dfd87ad64f97d55396270e}{samp\_\-tableHighlightRow} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} tableId, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} url, int row) +\begin{CompactList}\small\item\em Tell an app to highlight a table row. \item\end{CompactList}\item +int \hyperlink{sampMTypes_8c_f133efb67fe4bcfd2b9c8ab9d23b4c5e}{samp\_\-tableSelectRowList} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} tableId, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} url, int rows\mbox{[}$\,$\mbox{]}, int nrows) +\begin{CompactList}\small\item\em Tell an app to select a list of table rows. \item\end{CompactList}\item +int \hyperlink{sampMTypes_8c_4812b571ed87f7842ca20b7024770df3}{samp\_\-imageLoadFITS} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} url, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} imageId, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} name) +\begin{CompactList}\small\item\em Tell an app to load a FITS image. \item\end{CompactList}\item +int \hyperlink{sampMTypes_8c_e1e86e79d9a1768e5f265cbb44279172}{samp\_\-coordPointAtSky} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, float ra, float dec) +\begin{CompactList}\small\item\em Tell an app to point at an RA/Dec coordinate. \item\end{CompactList}\item +int \hyperlink{sampMTypes_8c_18b351385bd175581a6788a4f7342f07}{samp\_\-specLoadSSAGeneric} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} url, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} meta, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} spectrumId, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} name) +\begin{CompactList}\small\item\em Load a generic spectrum from an SSA service. \item\end{CompactList}\item +int \hyperlink{sampMTypes_8c_5900317c1609ddd5b6da70dc0eb2040c}{samp\_\-cmdExec} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} cmd) +\begin{CompactList}\small\item\em Execute a command in a remote application. \item\end{CompactList}\item +char $\ast$ \hyperlink{sampMTypes_8c_9c64fef9c158d7fd4ff7f72691ccd319}{samp\_\-envGet} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} name) +\begin{CompactList}\small\item\em Get an environment variable in a remote application. \item\end{CompactList}\item +int \hyperlink{sampMTypes_8c_ded4b8bdac87c5b6faa7f13d8abb22a1}{samp\_\-envSet} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} name, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} value) +\begin{CompactList}\small\item\em Set an environment variable in a remote application. \item\end{CompactList}\item +char $\ast$ \hyperlink{sampMTypes_8c_19b75403d63714c4fccc8a8d4fa4c8cf}{samp\_\-paramGet} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} name) +\begin{CompactList}\small\item\em Get a parameter variable in a remote application. \item\end{CompactList}\item +int \hyperlink{sampMTypes_8c_535cb6760c733a75746d2f104b1a01be}{samp\_\-paramSet} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} name, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} value) +\begin{CompactList}\small\item\em Set an parameter variable in a remote application. \item\end{CompactList}\item +int \hyperlink{sampMTypes_8c_ae7f51c1f6169b918568a1202d0fa031}{samp\_\-bibLoad} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} bibcode) +\begin{CompactList}\small\item\em Exchange a bibcode. \item\end{CompactList}\item +int \hyperlink{sampMTypes_8c_8013c549ef47e0507edf39c8ab1b62aa}{samp\_\-resourceLoad} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} type, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} name, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} resMap) +\begin{CompactList}\small\item\em Exchange a resource list. \item\end{CompactList}\item +int \hyperlink{sampMTypes_8c_b2ff2e029c57b56ad57416c624341fe6}{samp\_\-sendGeneric} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} args\mbox{[}$\,$\mbox{]}) +\begin{CompactList}\small\item\em Send a geenric message. \item\end{CompactList}\item +int \hyperlink{sampMTypes_8c_80ef1a82845b96091857c7d4a3c7972c}{samp\_\-sendMsg} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg) +\begin{CompactList}\small\item\em Send the specified message. \item\end{CompactList}\end{CompactItemize} + + +\label{_details} +\hypertarget{_details}{} +\subsection{Detailed Description} +SAMP interface procedures for application mtypes. + +SAMPMTYPES.C -- SAMP interface procedures for application mtypes. + +samp\_\-tableLoadVOTable (handle, recip, url, tableId, name) samp\_\-tableLoadFITS (handle, recip, url, tableId, name) samp\_\-tableHighlightRow (handle, recip, tableId, url, row) samp\_\-tableSelectRowList (handle, recip, tableId, url, rows\mbox{[}\mbox{]}, nrows) + +samp\_\-imageLoadFITS (handle, recip, url, imageId, name) samp\_\-coordPointAtSky (handle, recip, ra, dec) + +samp\_\-specLoadSSAGeneric (handle, recip, url, meta\_\-map, specId, name) samp\_\-cmdExec (handle, recip, cmd) samp\_\-envGet (handle, recip, name) samp\_\-envSet (handle, recip, name, value) samp\_\-paramGet (handle, recip, name) samp\_\-paramSet (handle, recip, name, value) samp\_\-bibLoad (handle, recip, bibcode) samp\_\-resourceLoad (handle, recip, type, resList\mbox{[}\mbox{]}) + +samp\_\-sendGeneric (handle, recip, mtype, args) samp\_\-sendMsg (handle, recip, Map msg\_\-map) + +\begin{Desc} +\item[Author:]Mike Fitzpatrick \end{Desc} +\begin{Desc} +\item[Date:]7/18/11 \end{Desc} + + +\subsection{Function Documentation} +\hypertarget{sampMTypes_8c_ae7f51c1f6169b918568a1202d0fa031}{ +\index{sampMTypes.c@{sampMTypes.c}!samp\_\-bibLoad@{samp\_\-bibLoad}} +\index{samp\_\-bibLoad@{samp\_\-bibLoad}!sampMTypes.c@{sampMTypes.c}} +\subsubsection[{samp\_\-bibLoad}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-bibLoad (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ {\bf String} {\em bibcode})}} +\label{sampMTypes_8c_ae7f51c1f6169b918568a1202d0fa031} + + +Exchange a bibcode. + +SAMP\_\-BIBLOAD -- Exchange a bibcode. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]name of recipient (or 'all') \item[{\em bibcode}]Bibcode string \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::hub, hub, samp\_\-freeMsg(), samp\_\-msgParam(), samp\_\-newMsg(), samp\_\-newParam(), and samp\_\-sendMsg().\hypertarget{sampMTypes_8c_5900317c1609ddd5b6da70dc0eb2040c}{ +\index{sampMTypes.c@{sampMTypes.c}!samp\_\-cmdExec@{samp\_\-cmdExec}} +\index{samp\_\-cmdExec@{samp\_\-cmdExec}!sampMTypes.c@{sampMTypes.c}} +\subsubsection[{samp\_\-cmdExec}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-cmdExec (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ {\bf String} {\em cmd})}} +\label{sampMTypes_8c_5900317c1609ddd5b6da70dc0eb2040c} + + +Execute a command in a remote application. + +SAMP\_\-CMDEXEC -- Execute a command in a remote application. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]name of recipient (or 'all') \item[{\em cmd}]Command string \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::hub, hub, samp\_\-freeMsg(), samp\_\-msgParam(), samp\_\-newMsg(), samp\_\-newParam(), and samp\_\-sendMsg().\hypertarget{sampMTypes_8c_e1e86e79d9a1768e5f265cbb44279172}{ +\index{sampMTypes.c@{sampMTypes.c}!samp\_\-coordPointAtSky@{samp\_\-coordPointAtSky}} +\index{samp\_\-coordPointAtSky@{samp\_\-coordPointAtSky}!sampMTypes.c@{sampMTypes.c}} +\subsubsection[{samp\_\-coordPointAtSky}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-coordPointAtSky (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ float {\em ra}, \/ float {\em dec})}} +\label{sampMTypes_8c_e1e86e79d9a1768e5f265cbb44279172} + + +Tell an app to point at an RA/Dec coordinate. + +SAMP\_\-COORDPOINTATSKY -- Tell an app to point at an RA/Dec coordinate. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]name of recipient (or 'all') \item[{\em ra}]RA of coord in degrees \item[{\em dec}]Dec of coord in degrees \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::hub, hub, samp\_\-addFloatParam(), samp\_\-freeMsg(), samp\_\-msgParam(), samp\_\-newMsg(), samp\_\-newParam(), and samp\_\-sendMsg().\hypertarget{sampMTypes_8c_9c64fef9c158d7fd4ff7f72691ccd319}{ +\index{sampMTypes.c@{sampMTypes.c}!samp\_\-envGet@{samp\_\-envGet}} +\index{samp\_\-envGet@{samp\_\-envGet}!sampMTypes.c@{sampMTypes.c}} +\subsubsection[{samp\_\-envGet}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ samp\_\-envGet (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ {\bf String} {\em name})}} +\label{sampMTypes_8c_9c64fef9c158d7fd4ff7f72691ccd319} + + +Get an environment variable in a remote application. + +SAMP\_\-ENVGET -- Get an environment variable in a remote application. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]name of recipient (or 'all') \item[{\em name}]Name of variable in receiver's environment \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]NULL, Value of variable, or list of values \end{Desc} + + +References Samp::clients, Samp::errortxt, Samp::hub, hub, Hub::id, Client::name, Samp::nclients, Hub::privateKey, samp\_\-app2id(), samp\_\-freeMsg(), samp\_\-msgParam(), samp\_\-newMsg(), samp\_\-newParam(), and Hub::timeout.\hypertarget{sampMTypes_8c_ded4b8bdac87c5b6faa7f13d8abb22a1}{ +\index{sampMTypes.c@{sampMTypes.c}!samp\_\-envSet@{samp\_\-envSet}} +\index{samp\_\-envSet@{samp\_\-envSet}!sampMTypes.c@{sampMTypes.c}} +\subsubsection[{samp\_\-envSet}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-envSet (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ {\bf String} {\em name}, \/ {\bf String} {\em value})}} +\label{sampMTypes_8c_ded4b8bdac87c5b6faa7f13d8abb22a1} + + +Set an environment variable in a remote application. + +SAMP\_\-ENVSET -- Set an environment variable in a remote application. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]name of recipient (or 'all') \item[{\em name}]Name of variable in receiver's environment \item[{\em value}]Value of variable or NULL \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::hub, hub, samp\_\-freeMsg(), samp\_\-msgParam(), samp\_\-newMsg(), samp\_\-newParam(), and samp\_\-sendMsg().\hypertarget{sampMTypes_8c_4812b571ed87f7842ca20b7024770df3}{ +\index{sampMTypes.c@{sampMTypes.c}!samp\_\-imageLoadFITS@{samp\_\-imageLoadFITS}} +\index{samp\_\-imageLoadFITS@{samp\_\-imageLoadFITS}!sampMTypes.c@{sampMTypes.c}} +\subsubsection[{samp\_\-imageLoadFITS}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-imageLoadFITS (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ {\bf String} {\em url}, \/ {\bf String} {\em imageId}, \/ {\bf String} {\em name})}} +\label{sampMTypes_8c_4812b571ed87f7842ca20b7024770df3} + + +Tell an app to load a FITS image. + +SAMP\_\-IMAGELOADFITS -- Tell an app to load a FITS image. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]Message recipient (or \char`\"{}all\char`\"{} for broadcast) \item[{\em url}]URL to table to be loaded \item[{\em imageId}]ID assigned to image (optional) \item[{\em name}]Name assigned to image (optional) \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::hub, hub, samp\_\-freeMsg(), samp\_\-msgParam(), samp\_\-newMsg(), samp\_\-newParam(), and samp\_\-sendMsg().\hypertarget{sampMTypes_8c_19b75403d63714c4fccc8a8d4fa4c8cf}{ +\index{sampMTypes.c@{sampMTypes.c}!samp\_\-paramGet@{samp\_\-paramGet}} +\index{samp\_\-paramGet@{samp\_\-paramGet}!sampMTypes.c@{sampMTypes.c}} +\subsubsection[{samp\_\-paramGet}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ samp\_\-paramGet (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ {\bf String} {\em name})}} +\label{sampMTypes_8c_19b75403d63714c4fccc8a8d4fa4c8cf} + + +Get a parameter variable in a remote application. + +SAMP\_\-PARAMGET -- Get a parameter variable in a remote application. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]name of recipient (or 'all') \item[{\em name}]Name of variable in receiver's environment \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]NULL, Value of variable, or list of values \end{Desc} + + +References Samp::clients, Samp::errortxt, Samp::hub, hub, Hub::id, Client::name, Samp::nclients, Hub::privateKey, samp\_\-app2id(), samp\_\-freeMsg(), samp\_\-msgParam(), samp\_\-newMsg(), samp\_\-newParam(), and Hub::timeout.\hypertarget{sampMTypes_8c_535cb6760c733a75746d2f104b1a01be}{ +\index{sampMTypes.c@{sampMTypes.c}!samp\_\-paramSet@{samp\_\-paramSet}} +\index{samp\_\-paramSet@{samp\_\-paramSet}!sampMTypes.c@{sampMTypes.c}} +\subsubsection[{samp\_\-paramSet}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-paramSet (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ {\bf String} {\em name}, \/ {\bf String} {\em value})}} +\label{sampMTypes_8c_535cb6760c733a75746d2f104b1a01be} + + +Set an parameter variable in a remote application. + +SAMP\_\-PARAMSET -- Set an parameter variable in a remote application. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]name of recipient (or 'all') \item[{\em name}]Name of variable in receiver's environment \item[{\em value}]Value of variable or NULL \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::hub, hub, samp\_\-freeMsg(), samp\_\-msgParam(), samp\_\-newMsg(), samp\_\-newParam(), and samp\_\-sendMsg().\hypertarget{sampMTypes_8c_8013c549ef47e0507edf39c8ab1b62aa}{ +\index{sampMTypes.c@{sampMTypes.c}!samp\_\-resourceLoad@{samp\_\-resourceLoad}} +\index{samp\_\-resourceLoad@{samp\_\-resourceLoad}!sampMTypes.c@{sampMTypes.c}} +\subsubsection[{samp\_\-resourceLoad}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-resourceLoad (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ {\bf String} {\em type}, \/ {\bf String} {\em name}, \/ {\bf Map} {\em resMap})}} +\label{sampMTypes_8c_8013c549ef47e0507edf39c8ab1b62aa} + + +Exchange a resource list. + +SAMP\_\-RESOURCELOAD -- Exchange a resource list. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]Name of recipient (or 'all') \item[{\em type}]Resource type (or NULL) \item[{\em name}]Descriptive name (optional) \item[{\em resMap}]Resource map \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::hub, hub, samp\_\-addMapParam(), samp\_\-freeMsg(), samp\_\-msgParam(), samp\_\-newMsg(), samp\_\-newParam(), samp\_\-sendMsg(), and SZ\_\-NAME.\hypertarget{sampMTypes_8c_b2ff2e029c57b56ad57416c624341fe6}{ +\index{sampMTypes.c@{sampMTypes.c}!samp\_\-sendGeneric@{samp\_\-sendGeneric}} +\index{samp\_\-sendGeneric@{samp\_\-sendGeneric}!sampMTypes.c@{sampMTypes.c}} +\subsubsection[{samp\_\-sendGeneric}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-sendGeneric (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em args}\mbox{[}$\,$\mbox{]})}} +\label{sampMTypes_8c_b2ff2e029c57b56ad57416c624341fe6} + + +Send a geenric message. + +SAMP\_\-SENDGENERIC -- Send a generic message. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]Name of recipient (or 'all') \item[{\em mtype}]Message type \item[{\em args}]Argument list \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR\end{Desc} +This method can be used to send any user-defined message. The 'mtype' string is arbitrary, we just assume the receiving client can understand what it means. The 'args' String array can be an array of values in which case the parameter name will be a series of generic 'arg0' thru 'argN-1' names. + +References Samp::hub, hub, samp\_\-addFloatParam(), samp\_\-addIntParam(), samp\_\-freeMsg(), samp\_\-msgParam(), samp\_\-newMsg(), samp\_\-newParam(), samp\_\-sendMsg(), and SZ\_\-NAME.\hypertarget{sampMTypes_8c_80ef1a82845b96091857c7d4a3c7972c}{ +\index{sampMTypes.c@{sampMTypes.c}!samp\_\-sendMsg@{samp\_\-sendMsg}} +\index{samp\_\-sendMsg@{samp\_\-sendMsg}!sampMTypes.c@{sampMTypes.c}} +\subsubsection[{samp\_\-sendMsg}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-sendMsg (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ {\bf Map} {\em msg})}} +\label{sampMTypes_8c_80ef1a82845b96091857c7d4a3c7972c} + + +Send the specified message. + +SAMP\_\-SENDMSG -- Send the specified message. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]Name of recipient (or 'all') \item[{\em msg}]Message map \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::clients, Samp::msgMode, Samp::nclients, samp\_\-app2id(), samp\_\-call(), samp\_\-callAll(), samp\_\-callAndWait(), samp\_\-notify(), samp\_\-notifyAll(), and samp\_\-setErr(). + +Referenced by samp\_\-bibLoad(), samp\_\-cmdExec(), samp\_\-coordPointAtSky(), samp\_\-envSet(), samp\_\-imageLoadFITS(), samp\_\-paramSet(), samp\_\-resourceLoad(), samp\_\-sendGeneric(), samp\_\-specLoadSSAGeneric(), samp\_\-tableHighlightRow(), samp\_\-tableLoadFITS(), samp\_\-tableLoadVOTable(), and samp\_\-tableSelectRowList().\hypertarget{sampMTypes_8c_18b351385bd175581a6788a4f7342f07}{ +\index{sampMTypes.c@{sampMTypes.c}!samp\_\-specLoadSSAGeneric@{samp\_\-specLoadSSAGeneric}} +\index{samp\_\-specLoadSSAGeneric@{samp\_\-specLoadSSAGeneric}!sampMTypes.c@{sampMTypes.c}} +\subsubsection[{samp\_\-specLoadSSAGeneric}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-specLoadSSAGeneric (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ {\bf String} {\em url}, \/ {\bf Map} {\em meta}, \/ {\bf String} {\em spectrumId}, \/ {\bf String} {\em name})}} +\label{sampMTypes_8c_18b351385bd175581a6788a4f7342f07} + + +Load a generic spectrum from an SSA service. + +SAMP\_\-SPECLOADSSAGENERIC -- Load a generic spectrum from an SSA service. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]name of recipient (or 'all') \item[{\em url}]URL of spectrum to load \item[{\em meta}]Metadata map describing data found at the URL \item[{\em spectrumId}]Identifier for spectrum (optional) \item[{\em name}]Name used to label spectrum (optional); \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::hub, hub, samp\_\-addMapParam(), samp\_\-freeMsg(), samp\_\-msgParam(), samp\_\-newMsg(), samp\_\-newParam(), and samp\_\-sendMsg().\hypertarget{sampMTypes_8c_e38ac987f1dfd87ad64f97d55396270e}{ +\index{sampMTypes.c@{sampMTypes.c}!samp\_\-tableHighlightRow@{samp\_\-tableHighlightRow}} +\index{samp\_\-tableHighlightRow@{samp\_\-tableHighlightRow}!sampMTypes.c@{sampMTypes.c}} +\subsubsection[{samp\_\-tableHighlightRow}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-tableHighlightRow (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ {\bf String} {\em tableId}, \/ {\bf String} {\em url}, \/ int {\em row})}} +\label{sampMTypes_8c_e38ac987f1dfd87ad64f97d55396270e} + + +Tell an app to highlight a table row. + +SAMP\_\-TABLEHIGHLIGHTROW -- Tell an app to highlight a table row. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]Message recipient (or \char`\"{}all\char`\"{} for broadcast) \item[{\em tableId}]ID associated with a previously loaded table \item[{\em url}]URL to table to be loaded \item[{\em rows}]List of (zero-based) row indices \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::hub, hub, samp\_\-addIntParam(), samp\_\-freeMsg(), samp\_\-msgParam(), samp\_\-newMsg(), samp\_\-newParam(), and samp\_\-sendMsg().\hypertarget{sampMTypes_8c_74aeaaf742121348390ec854c30c1479}{ +\index{sampMTypes.c@{sampMTypes.c}!samp\_\-tableLoadFITS@{samp\_\-tableLoadFITS}} +\index{samp\_\-tableLoadFITS@{samp\_\-tableLoadFITS}!sampMTypes.c@{sampMTypes.c}} +\subsubsection[{samp\_\-tableLoadFITS}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-tableLoadFITS (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ {\bf String} {\em url}, \/ {\bf String} {\em tableId}, \/ {\bf String} {\em name})}} +\label{sampMTypes_8c_74aeaaf742121348390ec854c30c1479} + + +Tell an app to load a FITS table. + +SAMP\_\-TABLELOADFITS -- Tell an app to load a FITS table. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]Message recipient (or \char`\"{}all\char`\"{} for broadcast) \item[{\em url}]URL to table to be loaded \item[{\em tableId}]ID assigned to table (optional) \item[{\em name}]Name assigned to table (optional) \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::hub, hub, samp\_\-freeMsg(), samp\_\-msgParam(), samp\_\-newMsg(), samp\_\-newParam(), and samp\_\-sendMsg().\hypertarget{sampMTypes_8c_34e9d38073f36daaf41c418f8d680ee5}{ +\index{sampMTypes.c@{sampMTypes.c}!samp\_\-tableLoadVOTable@{samp\_\-tableLoadVOTable}} +\index{samp\_\-tableLoadVOTable@{samp\_\-tableLoadVOTable}!sampMTypes.c@{sampMTypes.c}} +\subsubsection[{samp\_\-tableLoadVOTable}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-tableLoadVOTable (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ {\bf String} {\em url}, \/ {\bf String} {\em tableId}, \/ {\bf String} {\em name})}} +\label{sampMTypes_8c_34e9d38073f36daaf41c418f8d680ee5} + + +Tell an app to load a VOTable. + +SAMP\_\-TABLELOADVOTABLE -- Tell an app to load a VOTable. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]Message recipient (or \char`\"{}all\char`\"{} for broadcast) \item[{\em url}]URL to table to be loaded \item[{\em tableId}]ID assigned to table (optional) \item[{\em name}]Name assigned to table (optional) \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::hub, hub, samp\_\-freeMsg(), samp\_\-msgParam(), samp\_\-newMsg(), samp\_\-newParam(), and samp\_\-sendMsg().\hypertarget{sampMTypes_8c_f133efb67fe4bcfd2b9c8ab9d23b4c5e}{ +\index{sampMTypes.c@{sampMTypes.c}!samp\_\-tableSelectRowList@{samp\_\-tableSelectRowList}} +\index{samp\_\-tableSelectRowList@{samp\_\-tableSelectRowList}!sampMTypes.c@{sampMTypes.c}} +\subsubsection[{samp\_\-tableSelectRowList}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-tableSelectRowList (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ {\bf String} {\em tableId}, \/ {\bf String} {\em url}, \/ int {\em rows}\mbox{[}$\,$\mbox{]}, \/ int {\em nrows})}} +\label{sampMTypes_8c_f133efb67fe4bcfd2b9c8ab9d23b4c5e} + + +Tell an app to select a list of table rows. + +SAMP\_\-TABLESELECTROWLIST -- Tell an app to select a list of table rows. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]Message recipient (or \char`\"{}all\char`\"{} for broadcast) \item[{\em tableId}]ID associated with a previously loaded table \item[{\em url}]URL to table to be loaded \item[{\em rows}]Array of (zero-based) row indices \item[{\em nrows}]Number of rows \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +References Samp::hub, hub, samp\_\-addListParam(), samp\_\-freeList(), samp\_\-freeMsg(), samp\_\-msgParam(), samp\_\-newList(), samp\_\-newMsg(), samp\_\-newParam(), samp\_\-sendMsg(), and samp\_\-setIntInList(). \ No newline at end of file diff --git a/vendor/voclient/libsamp/doc/latex/sampMap_8c.tex b/vendor/voclient/libsamp/doc/latex/sampMap_8c.tex new file mode 100644 index 00000000..70208745 --- /dev/null +++ b/vendor/voclient/libsamp/doc/latex/sampMap_8c.tex @@ -0,0 +1,308 @@ +\hypertarget{sampMap_8c}{ +\section{sampMap.c File Reference} +\label{sampMap_8c}\index{sampMap.c@{sampMap.c}} +} +(Internal) Interface to support the Map structure + + +{\tt \#include $<$stdlib.h$>$}\par +{\tt \#include $<$stdio.h$>$}\par +{\tt \#include $<$unistd.h$>$}\par +{\tt \#include $<$string.h$>$}\par +{\tt \#include \char`\"{}samp.h\char`\"{}}\par +\subsection*{Functions} +\begin{CompactItemize} +\item +handle\_\-t \hyperlink{sampMap_8c_9985b96289047cafc24f2adbfeed977f}{samp\_\-newMap} () +\begin{CompactList}\small\item\em Create a new Map object. \item\end{CompactList}\item +void \hyperlink{sampMap_8c_fe80438de542c6657d623993360b37d1}{samp\_\-freeMap} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map) +\begin{CompactList}\small\item\em Free the given Map object. \item\end{CompactList}\item +\hypertarget{sampMap_8c_1c99f7146ad3acd3e381a02d5df1234f}{ +int \textbf{samp\_\-getMapSize} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map)} +\label{sampMap_8c_1c99f7146ad3acd3e381a02d5df1234f} + +\item +\hypertarget{sampMap_8c_4c8a1b402743b52f2837e97cf41e9e34}{ +char $\ast$ \textbf{samp\_\-getMapKey} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map, int index)} +\label{sampMap_8c_4c8a1b402743b52f2837e97cf41e9e34} + +\item +\hypertarget{sampMap_8c_7dcdf07dd7f3252f3bf2dd5002c62251}{ +char $\ast$ \textbf{samp\_\-getMapVal} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map, int index)} +\label{sampMap_8c_7dcdf07dd7f3252f3bf2dd5002c62251} + +\item +void \hyperlink{sampMap_8c_b9b2157de89369eb5cd95bfe804eb89a}{samp\_\-setStringInMap} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map, char $\ast$key, char $\ast$value) +\begin{CompactList}\small\item\em Set a string in a Map (append). \item\end{CompactList}\item +void \hyperlink{sampMap_8c_f102490efe1b92d99b67f244dc498c7b}{samp\_\-setMapInMap} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map1, char $\ast$key, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map2) +\begin{CompactList}\small\item\em Set a Map in a Map (append). \item\end{CompactList}\item +void \hyperlink{sampMap_8c_362c2f670c98dd6a3ef69debd1871604}{samp\_\-setListInMap} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map, char $\ast$key, \hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} list) +\begin{CompactList}\small\item\em Set a List in a Map (append). \item\end{CompactList}\item +void \hyperlink{sampMap_8c_c22ec42dbf9a01c9b4e00cf011e7eb9d}{samp\_\-setIntInMap} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map, char $\ast$key, int value) +\begin{CompactList}\small\item\em Set a Int in a Map (append). \item\end{CompactList}\item +void \hyperlink{sampMap_8c_0f07ae542f5b317311b3799bd96a88fd}{samp\_\-setFloatInMap} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map, char $\ast$key, float value) +\begin{CompactList}\small\item\em Set a string in a Map (append). \item\end{CompactList}\item +char $\ast$ \hyperlink{sampMap_8c_96ca606e0e7da659c3dc0a30846bcd66}{samp\_\-getStringFromMap} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map, char $\ast$key) +\begin{CompactList}\small\item\em Get a string from the Map. \item\end{CompactList}\item +\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} \hyperlink{sampMap_8c_525e8ffdfa32867f392f2c1340215453}{samp\_\-getMapFromMap} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map, char $\ast$key) +\begin{CompactList}\small\item\em Get a Map from the Map. \item\end{CompactList}\item +\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} \hyperlink{sampMap_8c_31ddb90cf2184ae0151b9e7ec8c1a51f}{samp\_\-getListFromMap} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map, char $\ast$key) +\begin{CompactList}\small\item\em Get a LIST from the Map. \item\end{CompactList}\item +int \hyperlink{sampMap_8c_210fc0eba30abddf1bdc2e780d58072c}{samp\_\-getIntFromMap} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map, char $\ast$key) +\begin{CompactList}\small\item\em Get a integer from the Map. \item\end{CompactList}\item +float \hyperlink{sampMap_8c_b0d3768990294554a298c4057b3b315d}{samp\_\-getFloatFromMap} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map, char $\ast$key) +\begin{CompactList}\small\item\em Get a float from the Map. \item\end{CompactList}\end{CompactItemize} + + +\label{_details} +\hypertarget{_details}{} +\subsection{Detailed Description} +(Internal) Interface to support the Map structure + +SAMPMAP.C -- (Internal) Interface to support the Map structure + +map = samp\_\-newMap () samp\_\-freeMap (Map map) + +nelem = samp\_\-getMapSize (Map map) key = samp\_\-getMapKey (Map map, int index) val = samp\_\-getMapVal (Map map, int index) + +samp\_\-setStringInMap (Map map, char $\ast$value) samp\_\-setMapInMap (Map map1, Map map2) samp\_\-setListInMap (Map map, List list) samp\_\-setIntInMap (Map map, int ival) samp\_\-setFloatInMap (Map map, float rval) + +str = samp\_\-getStringFromMap (Map map, char $\ast$key) map = samp\_\-getMapFromMap (Map map, char $\ast$key) list = samp\_\-getListFromMap (Map map, char $\ast$key) ival = samp\_\-getIntFromMap (Map map, char $\ast$key) rval = samp\_\-getFloatFromMap (Map map, char $\ast$key) + +\begin{Desc} +\item[Author:]Mike Fitzpatrick \end{Desc} +\begin{Desc} +\item[Date:]7/10/09 \end{Desc} + + +\subsection{Function Documentation} +\hypertarget{sampMap_8c_fe80438de542c6657d623993360b37d1}{ +\index{sampMap.c@{sampMap.c}!samp\_\-freeMap@{samp\_\-freeMap}} +\index{samp\_\-freeMap@{samp\_\-freeMap}!sampMap.c@{sampMap.c}} +\subsubsection[{samp\_\-freeMap}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-freeMap ({\bf Map} {\em map})}} +\label{sampMap_8c_fe80438de542c6657d623993360b37d1} + + +Free the given Map object. + +SAMP\_\-FREEMAP -- Free the given Map object + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em map}]Map object to free \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +Referenced by samp\_\-envGetHandler(), samp\_\-hubDeclareSubscriptions(), samp\_\-paramGetHandler(), and samp\_\-Ping().\hypertarget{sampMap_8c_b0d3768990294554a298c4057b3b315d}{ +\index{sampMap.c@{sampMap.c}!samp\_\-getFloatFromMap@{samp\_\-getFloatFromMap}} +\index{samp\_\-getFloatFromMap@{samp\_\-getFloatFromMap}!sampMap.c@{sampMap.c}} +\subsubsection[{samp\_\-getFloatFromMap}]{\setlength{\rightskip}{0pt plus 5cm}float samp\_\-getFloatFromMap ({\bf Map} {\em map}, \/ char $\ast$ {\em key})}} +\label{sampMap_8c_b0d3768990294554a298c4057b3b315d} + + +Get a float from the Map. + +SAMP\_\-GETFLOATFROMMAP -- Get a float from the Map + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em map}]handle to Map object \item[{\em key}]Map key \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]floating point value \end{Desc} + + +Referenced by samp\_\-execUserHandler(), and samp\_\-pointAtHandler().\hypertarget{sampMap_8c_210fc0eba30abddf1bdc2e780d58072c}{ +\index{sampMap.c@{sampMap.c}!samp\_\-getIntFromMap@{samp\_\-getIntFromMap}} +\index{samp\_\-getIntFromMap@{samp\_\-getIntFromMap}!sampMap.c@{sampMap.c}} +\subsubsection[{samp\_\-getIntFromMap}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-getIntFromMap ({\bf Map} {\em map}, \/ char $\ast$ {\em key})}} +\label{sampMap_8c_210fc0eba30abddf1bdc2e780d58072c} + + +Get a integer from the Map. + +SAMP\_\-GETINTFROMMAP -- Get a integer from the Map + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em map}]handle to Map object \item[{\em key}]Map key \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]integer value \end{Desc} + + +Referenced by samp\_\-execUserHandler(), and samp\_\-tbHighlightHandler().\hypertarget{sampMap_8c_31ddb90cf2184ae0151b9e7ec8c1a51f}{ +\index{sampMap.c@{sampMap.c}!samp\_\-getListFromMap@{samp\_\-getListFromMap}} +\index{samp\_\-getListFromMap@{samp\_\-getListFromMap}!sampMap.c@{sampMap.c}} +\subsubsection[{samp\_\-getListFromMap}]{\setlength{\rightskip}{0pt plus 5cm}{\bf List} samp\_\-getListFromMap ({\bf Map} {\em map}, \/ char $\ast$ {\em key})}} +\label{sampMap_8c_31ddb90cf2184ae0151b9e7ec8c1a51f} + + +Get a LIST from the Map. + +SAMP\_\-GETLISTFROMMAP -- Get a LIST from the Map + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em map}]handle to Map object \item[{\em key}]Map key \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]handle to List value \end{Desc} + + +Referenced by samp\_\-execUserHandler(), and samp\_\-tbSelectHandler().\hypertarget{sampMap_8c_525e8ffdfa32867f392f2c1340215453}{ +\index{sampMap.c@{sampMap.c}!samp\_\-getMapFromMap@{samp\_\-getMapFromMap}} +\index{samp\_\-getMapFromMap@{samp\_\-getMapFromMap}!sampMap.c@{sampMap.c}} +\subsubsection[{samp\_\-getMapFromMap}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Map} samp\_\-getMapFromMap ({\bf Map} {\em map}, \/ char $\ast$ {\em key})}} +\label{sampMap_8c_525e8ffdfa32867f392f2c1340215453} + + +Get a Map from the Map. + +SAMP\_\-GETMAPFROMMAP -- Get a Map from the Map + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em map}]handle to Map object \item[{\em key}]Map key \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]handle to Map value \end{Desc} + + +Referenced by samp\_\-execUserHandler(), samp\_\-resConeHandler(), samp\_\-resLoadHandler(), samp\_\-resSiapHandler(), samp\_\-resSsapHandler(), samp\_\-resTapHandler(), samp\_\-resVOSpaceHandler(), samp\_\-specLoadHandler(), and samp\_\-specSSAHandler().\hypertarget{sampMap_8c_96ca606e0e7da659c3dc0a30846bcd66}{ +\index{sampMap.c@{sampMap.c}!samp\_\-getStringFromMap@{samp\_\-getStringFromMap}} +\index{samp\_\-getStringFromMap@{samp\_\-getStringFromMap}!sampMap.c@{sampMap.c}} +\subsubsection[{samp\_\-getStringFromMap}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ samp\_\-getStringFromMap ({\bf Map} {\em map}, \/ char $\ast$ {\em key})}} +\label{sampMap_8c_96ca606e0e7da659c3dc0a30846bcd66} + + +Get a string from the Map. + +SAMP\_\-GETSTRINGFROMMAP -- Get a string from the Map + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em map}]handle to Map object \item[{\em key}]Map key \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]string value from Map \end{Desc} + + +Referenced by samp\_\-bibcodeHandler(), samp\_\-cmdExecHandler(), samp\_\-envGetHandler(), samp\_\-envSetHandler(), samp\_\-execUserHandler(), samp\_\-imLoadHandler(), samp\_\-paramGetHandler(), samp\_\-paramSetHandler(), samp\_\-resConeHandler(), samp\_\-resLoadHandler(), samp\_\-resSiapHandler(), samp\_\-resSsapHandler(), samp\_\-resTapHandler(), samp\_\-resVOSpaceHandler(), samp\_\-specLoadHandler(), samp\_\-specSSAHandler(), samp\_\-tbHighlightHandler(), samp\_\-tbLoadFITSHandler(), samp\_\-tbLoadHandler(), samp\_\-tbLoadVOTHandler(), and samp\_\-tbSelectHandler().\hypertarget{sampMap_8c_9985b96289047cafc24f2adbfeed977f}{ +\index{sampMap.c@{sampMap.c}!samp\_\-newMap@{samp\_\-newMap}} +\index{samp\_\-newMap@{samp\_\-newMap}!sampMap.c@{sampMap.c}} +\subsubsection[{samp\_\-newMap}]{\setlength{\rightskip}{0pt plus 5cm}handle\_\-t samp\_\-newMap (void)}} +\label{sampMap_8c_9985b96289047cafc24f2adbfeed977f} + + +Create a new Map object. + +SAMP\_\-NEWMAP -- Create a new Map object + +\begin{Desc} +\item[Returns:]handle to new Map \end{Desc} + + +Referenced by samp\_\-envGetHandler(), samp\_\-getNullMap(), samp\_\-getOKMap(), samp\_\-paramGetHandler(), and sampInit().\hypertarget{sampMap_8c_0f07ae542f5b317311b3799bd96a88fd}{ +\index{sampMap.c@{sampMap.c}!samp\_\-setFloatInMap@{samp\_\-setFloatInMap}} +\index{samp\_\-setFloatInMap@{samp\_\-setFloatInMap}!sampMap.c@{sampMap.c}} +\subsubsection[{samp\_\-setFloatInMap}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setFloatInMap ({\bf Map} {\em map}, \/ char $\ast$ {\em key}, \/ float {\em value})}} +\label{sampMap_8c_0f07ae542f5b317311b3799bd96a88fd} + + +Set a string in a Map (append). + +SAMP\_\-SETFLOATINMAP -- Set a Float in a Map (append) + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em map}]handle to Map object \item[{\em key}]Map key \item[{\em value}]value \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{sampMap_8c_c22ec42dbf9a01c9b4e00cf011e7eb9d}{ +\index{sampMap.c@{sampMap.c}!samp\_\-setIntInMap@{samp\_\-setIntInMap}} +\index{samp\_\-setIntInMap@{samp\_\-setIntInMap}!sampMap.c@{sampMap.c}} +\subsubsection[{samp\_\-setIntInMap}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setIntInMap ({\bf Map} {\em map}, \/ char $\ast$ {\em key}, \/ int {\em value})}} +\label{sampMap_8c_c22ec42dbf9a01c9b4e00cf011e7eb9d} + + +Set a Int in a Map (append). + +SAMP\_\-SETINTINMAP -- Set a Int in a Map (append) + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em map}]handle to Map object \item[{\em key}]Map key \item[{\em value}]value \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{sampMap_8c_362c2f670c98dd6a3ef69debd1871604}{ +\index{sampMap.c@{sampMap.c}!samp\_\-setListInMap@{samp\_\-setListInMap}} +\index{samp\_\-setListInMap@{samp\_\-setListInMap}!sampMap.c@{sampMap.c}} +\subsubsection[{samp\_\-setListInMap}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setListInMap ({\bf Map} {\em map}, \/ char $\ast$ {\em key}, \/ {\bf List} {\em list})}} +\label{sampMap_8c_362c2f670c98dd6a3ef69debd1871604} + + +Set a List in a Map (append). + +SAMP\_\-SETLISTINMAP -- Set a List in a Map (append) + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em map}]handle to Map object \item[{\em key}]Map key \item[{\em list}]handle to List object to set \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{sampMap_8c_f102490efe1b92d99b67f244dc498c7b}{ +\index{sampMap.c@{sampMap.c}!samp\_\-setMapInMap@{samp\_\-setMapInMap}} +\index{samp\_\-setMapInMap@{samp\_\-setMapInMap}!sampMap.c@{sampMap.c}} +\subsubsection[{samp\_\-setMapInMap}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setMapInMap ({\bf Map} {\em map1}, \/ char $\ast$ {\em key}, \/ {\bf Map} {\em map2})}} +\label{sampMap_8c_f102490efe1b92d99b67f244dc498c7b} + + +Set a Map in a Map (append). + +SAMP\_\-SETMAPINMAP -- Set a Map in a Map (append) + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em map1}]handle to Map object \item[{\em key}]Map key \item[{\em map2}]handle to Map object to set \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +Referenced by samp\_\-envGetHandler(), samp\_\-getOKMap(), samp\_\-paramGetHandler(), and sampInit().\hypertarget{sampMap_8c_b9b2157de89369eb5cd95bfe804eb89a}{ +\index{sampMap.c@{sampMap.c}!samp\_\-setStringInMap@{samp\_\-setStringInMap}} +\index{samp\_\-setStringInMap@{samp\_\-setStringInMap}!sampMap.c@{sampMap.c}} +\subsubsection[{samp\_\-setStringInMap}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setStringInMap ({\bf Map} {\em map}, \/ char $\ast$ {\em key}, \/ char $\ast$ {\em value})}} +\label{sampMap_8c_b9b2157de89369eb5cd95bfe804eb89a} + + +Set a string in a Map (append). + +SAMP\_\-SETSTRINGINMAP -- Set a string in a Map (append) + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em map}]handle to Map object \item[{\em key}]Map key \item[{\em value}]Map value \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +Referenced by samp\_\-envGetHandler(), samp\_\-getOKMap(), samp\_\-paramGetHandler(), and sampInit(). \ No newline at end of file diff --git a/vendor/voclient/libsamp/doc/latex/sampMethods_8c.tex b/vendor/voclient/libsamp/doc/latex/sampMethods_8c.tex new file mode 100644 index 00000000..e094f593 --- /dev/null +++ b/vendor/voclient/libsamp/doc/latex/sampMethods_8c.tex @@ -0,0 +1,209 @@ +\hypertarget{sampMethods_8c}{ +\section{sampMethods.c File Reference} +\label{sampMethods_8c}\index{sampMethods.c@{sampMethods.c}} +} +SAMP methods implemented by a callable client. + + +{\tt \#include $<$stdlib.h$>$}\par +{\tt \#include $<$stdio.h$>$}\par +{\tt \#include $<$unistd.h$>$}\par +{\tt \#include $<$string.h$>$}\par +{\tt \#include $<$time.h$>$}\par +{\tt \#include $<$ctype.h$>$}\par +{\tt \#include \char`\"{}samp.h\char`\"{}}\par +\subsection*{Defines} +\begin{CompactItemize} +\item +\hypertarget{sampMethods_8c_ee07de873e18503ecd72f89d07e4c628}{ +\#define \textbf{METH\_\-DBG}~(getenv(\char`\"{}METH\_\-DBG\char`\"{})!=NULL$|$$|$access(\char`\"{}/tmp/METH\_\-DBG\char`\"{},F\_\-OK)==0)} +\label{sampMethods_8c_ee07de873e18503ecd72f89d07e4c628} + +\item +\hypertarget{sampMethods_8c_ae51f9fc173a9cba2485f91d93fe8428}{ +\#define \textbf{OK\_\-Map}~samp\_\-getOKMap()} +\label{sampMethods_8c_ae51f9fc173a9cba2485f91d93fe8428} + +\end{CompactItemize} +\subsection*{Functions} +\begin{CompactItemize} +\item +int \hyperlink{sampMethods_8c_59f85e0fce4c9ae7121c98e137d3f743}{samp\_\-receiveCall} (void $\ast$data) +\begin{CompactList}\small\item\em test.echo method \item\end{CompactList}\item +int \hyperlink{sampMethods_8c_03be7cc9e154a6ccdd499286df640936}{samp\_\-receiveNotification} (void $\ast$data) +\begin{CompactList}\small\item\em receiveNotification () client method. \item\end{CompactList}\item +int \hyperlink{sampMethods_8c_754b50ad59145c7fd1e4c8f4277f11e4}{samp\_\-receiveResponse} (void $\ast$data) +\begin{CompactList}\small\item\em receiveResponse () client method. \item\end{CompactList}\item +void \hyperlink{sampMethods_8c_82fec51207e326e6373e174bb6855634}{samp\_\-setHandlerReply} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} resp) +\begin{CompactList}\small\item\em Set the \hyperlink{structSamp}{Samp} Handler reply map. \item\end{CompactList}\item +\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} \hyperlink{sampMethods_8c_eebed5000d39977556e0bc330a020915}{samp\_\-getHandlerReply} () +\begin{CompactList}\small\item\em Get the \hyperlink{structSamp}{Samp} Handler reply map. \item\end{CompactList}\end{CompactItemize} +\subsection*{Variables} +\begin{CompactItemize} +\item +\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} \hyperlink{sampMethods_8c_68bf22a5b3f2531242f5c6d6ecf2ea1e}{nullMap} +\item +\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} \hyperlink{sampMethods_8c_a2106c7fe3a5747178c046238fbd5d55}{nullList} +\item +\hypertarget{sampMethods_8c_12abcaf1a16a8a7c2ef6358cdbf4d705}{ +\hyperlink{structSamp}{Samp} $\ast$ \textbf{sampP}} +\label{sampMethods_8c_12abcaf1a16a8a7c2ef6358cdbf4d705} + +\item +handle\_\-t \hyperlink{sampMethods_8c_b04b61ee02d86e15b02b861699ae7424}{sampH} +\end{CompactItemize} + + +\label{_details} +\hypertarget{_details}{} +\subsection{Detailed Description} +SAMP methods implemented by a callable client. + +SAMPMETHODS.C -- SAMP methods implemented by a callable client. + +\begin{Desc} +\item[Author:]Mike Fitzpatrick \end{Desc} +\begin{Desc} +\item[Date:]7/10/09 \end{Desc} + + +\subsection{Function Documentation} +\hypertarget{sampMethods_8c_eebed5000d39977556e0bc330a020915}{ +\index{sampMethods.c@{sampMethods.c}!samp\_\-getHandlerReply@{samp\_\-getHandlerReply}} +\index{samp\_\-getHandlerReply@{samp\_\-getHandlerReply}!sampMethods.c@{sampMethods.c}} +\subsubsection[{samp\_\-getHandlerReply}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Map} samp\_\-getHandlerReply (void)}} +\label{sampMethods_8c_eebed5000d39977556e0bc330a020915} + + +Get the \hyperlink{structSamp}{Samp} Handler reply map. + +SAMP\_\-GETHANDLERREPLY -- Get the \hyperlink{structSamp}{Samp} Handler reply map. + +\begin{Desc} +\item[Returns:]Map handle for reply map \end{Desc} + + +References nullMap, and OK\_\-Map. + +Referenced by samp\_\-receiveCall(), and samp\_\-receiveNotification().\hypertarget{sampMethods_8c_59f85e0fce4c9ae7121c98e137d3f743}{ +\index{sampMethods.c@{sampMethods.c}!samp\_\-receiveCall@{samp\_\-receiveCall}} +\index{samp\_\-receiveCall@{samp\_\-receiveCall}!sampMethods.c@{sampMethods.c}} +\subsubsection[{samp\_\-receiveCall}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-receiveCall (void $\ast$ {\em data})}} +\label{sampMethods_8c_59f85e0fce4c9ae7121c98e137d3f743} + + +test.echo method + +receiveCall () client method. + +SAMP\_\-TESTECHO -- test.echo method + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em data}]caller param data \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]status code or errno\end{Desc} +SAMP\_\-RECEIVECALL -- receiveCall() client method. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em data}]caller param data \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]status code or errno \end{Desc} + + +References Samp::defaultUserFunc, OK\_\-Map, samp\_\-execUserHandler(), samp\_\-getHandlerReply(), samp\_\-getSampHandler(), samp\_\-getUserHandler(), samp\_\-Reply(), sampH, and Samp::trace.\hypertarget{sampMethods_8c_03be7cc9e154a6ccdd499286df640936}{ +\index{sampMethods.c@{sampMethods.c}!samp\_\-receiveNotification@{samp\_\-receiveNotification}} +\index{samp\_\-receiveNotification@{samp\_\-receiveNotification}!sampMethods.c@{sampMethods.c}} +\subsubsection[{samp\_\-receiveNotification}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-receiveNotification (void $\ast$ {\em data})}} +\label{sampMethods_8c_03be7cc9e154a6ccdd499286df640936} + + +receiveNotification () client method. + +SAMP\_\-RECEIVENOTIFICATION -- receiveNotification() client method. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em data}]caller param data \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]status code or errno \end{Desc} + + +References Samp::defaultUserFunc, OK\_\-Map, samp\_\-execUserHandler(), samp\_\-getHandlerReply(), samp\_\-getSampHandler(), samp\_\-getUserHandler(), samp\_\-processHubEvent(), and Samp::trace.\hypertarget{sampMethods_8c_754b50ad59145c7fd1e4c8f4277f11e4}{ +\index{sampMethods.c@{sampMethods.c}!samp\_\-receiveResponse@{samp\_\-receiveResponse}} +\index{samp\_\-receiveResponse@{samp\_\-receiveResponse}!sampMethods.c@{sampMethods.c}} +\subsubsection[{samp\_\-receiveResponse}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-receiveResponse (void $\ast$ {\em data})}} +\label{sampMethods_8c_754b50ad59145c7fd1e4c8f4277f11e4} + + +receiveResponse () client method. + +SAMP\_\-RECEIVERESPONSE -- receiveResponse() client method. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em data}]caller param data \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]status code or errno \end{Desc} + + +References Samp::defaultUserFunc, OK\_\-Map, samp\_\-execUserHandler(), and Samp::trace.\hypertarget{sampMethods_8c_82fec51207e326e6373e174bb6855634}{ +\index{sampMethods.c@{sampMethods.c}!samp\_\-setHandlerReply@{samp\_\-setHandlerReply}} +\index{samp\_\-setHandlerReply@{samp\_\-setHandlerReply}!sampMethods.c@{sampMethods.c}} +\subsubsection[{samp\_\-setHandlerReply}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setHandlerReply ({\bf Map} {\em resp})}} +\label{sampMethods_8c_82fec51207e326e6373e174bb6855634} + + +Set the \hyperlink{structSamp}{Samp} Handler reply map. + +SAMP\_\-SETHANDLERREPLY -- Set the \hyperlink{structSamp}{Samp} Handler reply map. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em resp}]response map \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +Referenced by samp\_\-envGetHandler(), and samp\_\-paramGetHandler(). + +\subsection{Variable Documentation} +\hypertarget{sampMethods_8c_a2106c7fe3a5747178c046238fbd5d55}{ +\index{sampMethods.c@{sampMethods.c}!nullList@{nullList}} +\index{nullList@{nullList}!sampMethods.c@{sampMethods.c}} +\subsubsection[{nullList}]{\setlength{\rightskip}{0pt plus 5cm}{\bf List} {\bf nullList}}} +\label{sampMethods_8c_a2106c7fe3a5747178c046238fbd5d55} + + +SAMP\_\-OK Map struct + +Referenced by sampInit().\hypertarget{sampMethods_8c_68bf22a5b3f2531242f5c6d6ecf2ea1e}{ +\index{sampMethods.c@{sampMethods.c}!nullMap@{nullMap}} +\index{nullMap@{nullMap}!sampMethods.c@{sampMethods.c}} +\subsubsection[{nullMap}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Map} {\bf nullMap}}} +\label{sampMethods_8c_68bf22a5b3f2531242f5c6d6ecf2ea1e} + + +SAMP handle + +Referenced by samp\_\-getHandlerReply(), samp\_\-getOKMap(), samp\_\-hubDeclareSubscriptions(), and sampInit().\hypertarget{sampMethods_8c_b04b61ee02d86e15b02b861699ae7424}{ +\index{sampMethods.c@{sampMethods.c}!sampH@{sampH}} +\index{sampH@{sampH}!sampMethods.c@{sampMethods.c}} +\subsubsection[{sampH}]{\setlength{\rightskip}{0pt plus 5cm}handle\_\-t {\bf sampH}}} +\label{sampMethods_8c_b04b61ee02d86e15b02b861699ae7424} + + +SAMP struct pointer + +Referenced by samp\_\-processHubEvent(), samp\_\-receiveCall(), and sampInit(). \ No newline at end of file diff --git a/vendor/voclient/libsamp/doc/latex/sampMsg_8c.tex b/vendor/voclient/libsamp/doc/latex/sampMsg_8c.tex new file mode 100644 index 00000000..51d4292b --- /dev/null +++ b/vendor/voclient/libsamp/doc/latex/sampMsg_8c.tex @@ -0,0 +1,105 @@ +\hypertarget{sampMsg_8c}{ +\section{sampMsg.c File Reference} +\label{sampMsg_8c}\index{sampMsg.c@{sampMsg.c}} +} +(Internal) Interface to Message objects. + + +{\tt \#include $<$stdlib.h$>$}\par +{\tt \#include $<$stdio.h$>$}\par +{\tt \#include $<$unistd.h$>$}\par +{\tt \#include $<$string.h$>$}\par +{\tt \#include \char`\"{}samp.h\char`\"{}}\par +\subsection*{Functions} +\begin{CompactItemize} +\item +\hyperlink{sampDecl_8h_eb3d03dd240212c044285bdd522e3b2b}{Msg} \hyperlink{sampMsg_8c_d6dfdab2715ea070713515754dd499dd}{samp\_\-newMsg} () +\begin{CompactList}\small\item\em Create a new Msg object. \item\end{CompactList}\item +void \hyperlink{sampMsg_8c_adf2979a5fad0c9a855740330b7fd9ce}{samp\_\-freeMsg} (\hyperlink{sampDecl_8h_eb3d03dd240212c044285bdd522e3b2b}{Msg} msg) +\begin{CompactList}\small\item\em Free the given Msg object. \item\end{CompactList}\item +\hypertarget{sampMsg_8c_34c9e29fa57216f19a70764df8e5826b}{ +void \textbf{samp\_\-msgMType} (\hyperlink{sampDecl_8h_eb3d03dd240212c044285bdd522e3b2b}{Msg} msg, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype)} +\label{sampMsg_8c_34c9e29fa57216f19a70764df8e5826b} + +\item +\hypertarget{sampMsg_8c_b6887edd7c0924460bcee0282544c82f}{ +char $\ast$ \textbf{samp\_\-msgTag} ()} +\label{sampMsg_8c_b6887edd7c0924460bcee0282544c82f} + +\item +void \hyperlink{sampMsg_8c_281c8f7f8b21a74704dd200d5aaed481}{samp\_\-msgParam} (\hyperlink{sampDecl_8h_eb3d03dd240212c044285bdd522e3b2b}{Msg} msg, \hyperlink{sampDecl_8h_4c5a7aff173725461e76e5f0183d7ed8}{Param} param) +\begin{CompactList}\small\item\em Add a parameter to the Msg. \item\end{CompactList}\end{CompactItemize} + + +\label{_details} +\hypertarget{_details}{} +\subsection{Detailed Description} +(Internal) Interface to Message objects. + +SAMPMSG.C -- (Internal) Interface to Message objects. + +msg = samp\_\-newMsg () samp\_\-msgMType (Msg msg, String mtype) samp\_\-msgParam (Msg msg, Param param) samp\_\-msgTag () samp\_\-freeMsg (Msg msg) + +\begin{Desc} +\item[Author:]Mike Fitzpatrick \end{Desc} +\begin{Desc} +\item[Date:]7/10/11 \end{Desc} + + +\subsection{Function Documentation} +\hypertarget{sampMsg_8c_adf2979a5fad0c9a855740330b7fd9ce}{ +\index{sampMsg.c@{sampMsg.c}!samp\_\-freeMsg@{samp\_\-freeMsg}} +\index{samp\_\-freeMsg@{samp\_\-freeMsg}!sampMsg.c@{sampMsg.c}} +\subsubsection[{samp\_\-freeMsg}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-freeMsg ({\bf Msg} {\em msg})}} +\label{sampMsg_8c_adf2979a5fad0c9a855740330b7fd9ce} + + +Free the given Msg object. + +SAMP\_\-FREEMSG -- Free the given Msg object + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em msg}]Msg object to free \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +Referenced by samp\_\-bibLoad(), samp\_\-cmdExec(), samp\_\-coordPointAtSky(), samp\_\-envGet(), samp\_\-envSet(), samp\_\-imageLoadFITS(), samp\_\-paramGet(), samp\_\-paramSet(), samp\_\-Ping(), samp\_\-resourceLoad(), samp\_\-sendGeneric(), samp\_\-specLoadSSAGeneric(), samp\_\-tableHighlightRow(), samp\_\-tableLoadFITS(), samp\_\-tableLoadVOTable(), and samp\_\-tableSelectRowList().\hypertarget{sampMsg_8c_281c8f7f8b21a74704dd200d5aaed481}{ +\index{sampMsg.c@{sampMsg.c}!samp\_\-msgParam@{samp\_\-msgParam}} +\index{samp\_\-msgParam@{samp\_\-msgParam}!sampMsg.c@{sampMsg.c}} +\subsubsection[{samp\_\-msgParam}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-msgParam ({\bf Msg} {\em msg}, \/ {\bf Param} {\em param})}} +\label{sampMsg_8c_281c8f7f8b21a74704dd200d5aaed481} + + +Add a parameter to the Msg. + +SAMP\_\-MSGPARAM -- Add a parameter to the Msg. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em msg}]handle to Msg object \item[{\em keyw}]map keyword \item[{\em param}]parameter map \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +Referenced by samp\_\-bibLoad(), samp\_\-cmdExec(), samp\_\-coordPointAtSky(), samp\_\-envGet(), samp\_\-envSet(), samp\_\-imageLoadFITS(), samp\_\-paramGet(), samp\_\-paramSet(), samp\_\-Ping(), samp\_\-resourceLoad(), samp\_\-sendGeneric(), samp\_\-specLoadSSAGeneric(), samp\_\-tableHighlightRow(), samp\_\-tableLoadFITS(), samp\_\-tableLoadVOTable(), and samp\_\-tableSelectRowList().\hypertarget{sampMsg_8c_d6dfdab2715ea070713515754dd499dd}{ +\index{sampMsg.c@{sampMsg.c}!samp\_\-newMsg@{samp\_\-newMsg}} +\index{samp\_\-newMsg@{samp\_\-newMsg}!sampMsg.c@{sampMsg.c}} +\subsubsection[{samp\_\-newMsg}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Msg} samp\_\-newMsg (void)}} +\label{sampMsg_8c_d6dfdab2715ea070713515754dd499dd} + + +Create a new Msg object. + +SAMP\_\-NEWMSG -- Create a new Msg object + +\begin{Desc} +\item[Returns:]handle to new Msg \end{Desc} + + +Referenced by samp\_\-bibLoad(), samp\_\-cmdExec(), samp\_\-coordPointAtSky(), samp\_\-envGet(), samp\_\-envSet(), samp\_\-imageLoadFITS(), samp\_\-paramGet(), samp\_\-paramSet(), samp\_\-Ping(), samp\_\-resourceLoad(), samp\_\-sendGeneric(), samp\_\-specLoadSSAGeneric(), samp\_\-tableHighlightRow(), samp\_\-tableLoadFITS(), samp\_\-tableLoadVOTable(), and samp\_\-tableSelectRowList(). \ No newline at end of file diff --git a/vendor/voclient/libsamp/doc/latex/sampParam_8c.tex b/vendor/voclient/libsamp/doc/latex/sampParam_8c.tex new file mode 100644 index 00000000..b6eca42b --- /dev/null +++ b/vendor/voclient/libsamp/doc/latex/sampParam_8c.tex @@ -0,0 +1,215 @@ +\hypertarget{sampParam_8c}{ +\section{sampParam.c File Reference} +\label{sampParam_8c}\index{sampParam.c@{sampParam.c}} +} +(Internal) Interface to Param objects. + + +{\tt \#include $<$stdlib.h$>$}\par +{\tt \#include $<$stdio.h$>$}\par +{\tt \#include $<$unistd.h$>$}\par +{\tt \#include $<$string.h$>$}\par +{\tt \#include \char`\"{}samp.h\char`\"{}}\par +\subsection*{Functions} +\begin{CompactItemize} +\item +\hyperlink{sampDecl_8h_4c5a7aff173725461e76e5f0183d7ed8}{Param} \hyperlink{sampParam_8c_8750d9db641826f700973dae3fcdc920}{samp\_\-newParam} () +\begin{CompactList}\small\item\em Create a new Param object. \item\end{CompactList}\item +void \hyperlink{sampParam_8c_5a6fbf3ac37164268afae80c35666c5e}{samp\_\-freeParam} (\hyperlink{sampDecl_8h_4c5a7aff173725461e76e5f0183d7ed8}{Param} param) +\begin{CompactList}\small\item\em Free the given Msg object. \item\end{CompactList}\item +\hyperlink{sampDecl_8h_4c5a7aff173725461e76e5f0183d7ed8}{Param} \hyperlink{sampParam_8c_d8c5669be313874fef1c484643683f49}{samp\_\-paramInit} (\hyperlink{sampDecl_8h_eb3d03dd240212c044285bdd522e3b2b}{Msg} msg) +\begin{CompactList}\small\item\em Get number of Params. \item\end{CompactList}\item +\hypertarget{sampParam_8c_62c2d0b887252730fd6f7bdaa7211403}{ +void \textbf{samp\_\-addStringParam} (\hyperlink{sampDecl_8h_eb3d03dd240212c044285bdd522e3b2b}{Msg} msg, char $\ast$keyw, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} val)} +\label{sampParam_8c_62c2d0b887252730fd6f7bdaa7211403} + +\item +void \hyperlink{sampParam_8c_e3e90c84dd6b1a08d8af18ca9e168b37}{samp\_\-addMapParam} (\hyperlink{sampDecl_8h_eb3d03dd240212c044285bdd522e3b2b}{Msg} msg, char $\ast$keyw, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} val) +\begin{CompactList}\small\item\em Add a parameter to the Param. \item\end{CompactList}\item +void \hyperlink{sampParam_8c_24f72c4ed033ed2f219b420e491b3c0f}{samp\_\-addListParam} (\hyperlink{sampDecl_8h_eb3d03dd240212c044285bdd522e3b2b}{Msg} msg, char $\ast$keyw, \hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} val) +\begin{CompactList}\small\item\em Add a parameter to the Param. \item\end{CompactList}\item +void \hyperlink{sampParam_8c_6897da75444209fc1819042bde906aa6}{samp\_\-addIntParam} (\hyperlink{sampDecl_8h_eb3d03dd240212c044285bdd522e3b2b}{Msg} msg, char $\ast$keyw, int val) +\begin{CompactList}\small\item\em Add a $<$SAMP int$>$=\char`\"{}\char`\"{}$>$ parameter to the Param. \item\end{CompactList}\item +void \hyperlink{sampParam_8c_d297770f4ab1338697d69b2705d6c1d9}{samp\_\-addFloatParam} (\hyperlink{sampDecl_8h_eb3d03dd240212c044285bdd522e3b2b}{Msg} msg, char $\ast$keyw, float val) +\begin{CompactList}\small\item\em Add a $<$SAMP float$>$=\char`\"{}\char`\"{}$>$ parameter to the Param. \item\end{CompactList}\item +int \hyperlink{sampParam_8c_7680995e5d4f26ea3d91bf72c9c72e51}{samp\_\-paramLen} (\hyperlink{sampDecl_8h_eb3d03dd240212c044285bdd522e3b2b}{Msg} msg) +\begin{CompactList}\small\item\em Get number of Params. \item\end{CompactList}\end{CompactItemize} + + +\label{_details} +\hypertarget{_details}{} +\subsection{Detailed Description} +(Internal) Interface to Param objects. + +SAMPPARAM.C -- (Internal) Interface to Param objects. + +param = samp\_\-newParam () samp\_\-freeParam (Param param) + +param = samp\_\-paramInit (Msg msg); samp\_\-addStringParam (Msg msg, char $\ast$keyw, String val) samp\_\-addListParam (Msg msg, char $\ast$keyw, List val) samp\_\-addMapParam (Msg msg, char $\ast$keyw, Map val) N = samp\_\-paramLen (Msg msg) + +\begin{Desc} +\item[Author:]Mike Fitzpatrick \end{Desc} +\begin{Desc} +\item[Date:]7/10/11 \end{Desc} + + +\subsection{Function Documentation} +\hypertarget{sampParam_8c_d297770f4ab1338697d69b2705d6c1d9}{ +\index{sampParam.c@{sampParam.c}!samp\_\-addFloatParam@{samp\_\-addFloatParam}} +\index{samp\_\-addFloatParam@{samp\_\-addFloatParam}!sampParam.c@{sampParam.c}} +\subsubsection[{samp\_\-addFloatParam}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-addFloatParam ({\bf Msg} {\em msg}, \/ char $\ast$ {\em keyw}, \/ float {\em val})}} +\label{sampParam_8c_d297770f4ab1338697d69b2705d6c1d9} + + +Add a $<$SAMP float$>$=\char`\"{}\char`\"{}$>$ parameter to the Param. + +SAMP\_\-ADDFLOATPARAM -- Add a $<$SAMP float$>$=\char`\"{}\char`\"{}$>$ parameter to the Param. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em msg}]handle to Msg object \item[{\em keyw}]map keyword \item[{\em val}]floating point value \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References samp\_\-paramInit(). + +Referenced by samp\_\-coordPointAtSky(), and samp\_\-sendGeneric().\hypertarget{sampParam_8c_6897da75444209fc1819042bde906aa6}{ +\index{sampParam.c@{sampParam.c}!samp\_\-addIntParam@{samp\_\-addIntParam}} +\index{samp\_\-addIntParam@{samp\_\-addIntParam}!sampParam.c@{sampParam.c}} +\subsubsection[{samp\_\-addIntParam}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-addIntParam ({\bf Msg} {\em msg}, \/ char $\ast$ {\em keyw}, \/ int {\em val})}} +\label{sampParam_8c_6897da75444209fc1819042bde906aa6} + + +Add a $<$SAMP int$>$=\char`\"{}\char`\"{}$>$ parameter to the Param. + +SAMP\_\-ADDINTPARAM -- Add a $<$SAMP int$>$=\char`\"{}\char`\"{}$>$ parameter to the Param. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em msg}]handle to Msg object \item[{\em keyw}]map keyword \item[{\em val}]integer value \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References samp\_\-paramInit(). + +Referenced by samp\_\-sendGeneric(), and samp\_\-tableHighlightRow().\hypertarget{sampParam_8c_24f72c4ed033ed2f219b420e491b3c0f}{ +\index{sampParam.c@{sampParam.c}!samp\_\-addListParam@{samp\_\-addListParam}} +\index{samp\_\-addListParam@{samp\_\-addListParam}!sampParam.c@{sampParam.c}} +\subsubsection[{samp\_\-addListParam}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-addListParam ({\bf Msg} {\em msg}, \/ char $\ast$ {\em keyw}, \/ {\bf List} {\em val})}} +\label{sampParam_8c_24f72c4ed033ed2f219b420e491b3c0f} + + +Add a parameter to the Param. + +SAMP\_\-ADDLISTPARAM -- Add a List parameter to the Param. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em msg}]handle to Msg object \item[{\em keyw}]map keyword \item[{\em val}]value list \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References samp\_\-paramInit(). + +Referenced by samp\_\-tableSelectRowList().\hypertarget{sampParam_8c_e3e90c84dd6b1a08d8af18ca9e168b37}{ +\index{sampParam.c@{sampParam.c}!samp\_\-addMapParam@{samp\_\-addMapParam}} +\index{samp\_\-addMapParam@{samp\_\-addMapParam}!sampParam.c@{sampParam.c}} +\subsubsection[{samp\_\-addMapParam}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-addMapParam ({\bf Msg} {\em msg}, \/ char $\ast$ {\em keyw}, \/ {\bf Map} {\em val})}} +\label{sampParam_8c_e3e90c84dd6b1a08d8af18ca9e168b37} + + +Add a parameter to the Param. + +SAMP\_\-ADDMAPPARAM -- Add a Map parameter to the Param. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em msg}]handle to Msg object \item[{\em keyw}]map keyword \item[{\em val}]value map \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References samp\_\-paramInit(). + +Referenced by samp\_\-resourceLoad(), and samp\_\-specLoadSSAGeneric().\hypertarget{sampParam_8c_5a6fbf3ac37164268afae80c35666c5e}{ +\index{sampParam.c@{sampParam.c}!samp\_\-freeParam@{samp\_\-freeParam}} +\index{samp\_\-freeParam@{samp\_\-freeParam}!sampParam.c@{sampParam.c}} +\subsubsection[{samp\_\-freeParam}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-freeParam ({\bf Param} {\em param})}} +\label{sampParam_8c_5a6fbf3ac37164268afae80c35666c5e} + + +Free the given Msg object. + +SAMP\_\-FREEPARAM -- Free the given Param object + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em param}]Param object to free \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{sampParam_8c_8750d9db641826f700973dae3fcdc920}{ +\index{sampParam.c@{sampParam.c}!samp\_\-newParam@{samp\_\-newParam}} +\index{samp\_\-newParam@{samp\_\-newParam}!sampParam.c@{sampParam.c}} +\subsubsection[{samp\_\-newParam}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Param} samp\_\-newParam (void)}} +\label{sampParam_8c_8750d9db641826f700973dae3fcdc920} + + +Create a new Param object. + +SAMP\_\-NEWPARAM -- Create a new Param object + +\begin{Desc} +\item[Returns:]handle to new Param \end{Desc} + + +Referenced by samp\_\-bibLoad(), samp\_\-cmdExec(), samp\_\-coordPointAtSky(), samp\_\-envGet(), samp\_\-envSet(), samp\_\-imageLoadFITS(), samp\_\-paramGet(), samp\_\-paramSet(), samp\_\-Ping(), samp\_\-resourceLoad(), samp\_\-sendGeneric(), samp\_\-specLoadSSAGeneric(), samp\_\-tableHighlightRow(), samp\_\-tableLoadFITS(), samp\_\-tableLoadVOTable(), and samp\_\-tableSelectRowList().\hypertarget{sampParam_8c_d8c5669be313874fef1c484643683f49}{ +\index{sampParam.c@{sampParam.c}!samp\_\-paramInit@{samp\_\-paramInit}} +\index{samp\_\-paramInit@{samp\_\-paramInit}!sampParam.c@{sampParam.c}} +\subsubsection[{samp\_\-paramInit}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Param} samp\_\-paramInit ({\bf Msg} {\em msg})}} +\label{sampParam_8c_d8c5669be313874fef1c484643683f49} + + +Get number of Params. + +SAMP\_\-PARAMINIT -- Get number of Params. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em msg}]handle to Msg object \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +Referenced by samp\_\-addFloatParam(), samp\_\-addIntParam(), samp\_\-addListParam(), and samp\_\-addMapParam().\hypertarget{sampParam_8c_7680995e5d4f26ea3d91bf72c9c72e51}{ +\index{sampParam.c@{sampParam.c}!samp\_\-paramLen@{samp\_\-paramLen}} +\index{samp\_\-paramLen@{samp\_\-paramLen}!sampParam.c@{sampParam.c}} +\subsubsection[{samp\_\-paramLen}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-paramLen ({\bf Msg} {\em msg})}} +\label{sampParam_8c_7680995e5d4f26ea3d91bf72c9c72e51} + + +Get number of Params. + +SAMP\_\-PARAMLEN -- Get number of Params. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em msg}]handle to Msg object \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} diff --git a/vendor/voclient/libsamp/doc/latex/sampUtil_8c.tex b/vendor/voclient/libsamp/doc/latex/sampUtil_8c.tex new file mode 100644 index 00000000..d97dea87 --- /dev/null +++ b/vendor/voclient/libsamp/doc/latex/sampUtil_8c.tex @@ -0,0 +1,182 @@ +\hypertarget{sampUtil_8c}{ +\section{sampUtil.c File Reference} +\label{sampUtil_8c}\index{sampUtil.c@{sampUtil.c}} +} +Utility methods to convert struct pointers to user handles. + + +{\tt \#include $<$stdlib.h$>$}\par +{\tt \#include $<$stdio.h$>$}\par +{\tt \#include $<$unistd.h$>$}\par +{\tt \#include $<$string.h$>$}\par +{\tt \#include $<$time.h$>$}\par +{\tt \#include $<$ctype.h$>$}\par +{\tt \#include \char`\"{}samp.h\char`\"{}}\par +\subsection*{Defines} +\begin{CompactItemize} +\item +\hypertarget{sampUtil_8c_23ed8e629c0a28eab14f92c888c8d7ef}{ +\#define \textbf{MAX\_\-HANDLES}~128} +\label{sampUtil_8c_23ed8e629c0a28eab14f92c888c8d7ef} + +\end{CompactItemize} +\subsection*{Functions} +\begin{CompactItemize} +\item +\hypertarget{sampUtil_8c_4d0aef2f09b9cce38d4ea8024831c6e5}{ +handle\_\-t \textbf{samp\_\-P2H} (void $\ast$ptr)} +\label{sampUtil_8c_4d0aef2f09b9cce38d4ea8024831c6e5} + +\item +\hypertarget{sampUtil_8c_909310a995650c224515c9ca0a3ef582}{ +void $\ast$ \textbf{samp\_\-H2P} (handle\_\-t handle)} +\label{sampUtil_8c_909310a995650c224515c9ca0a3ef582} + +\item +\hypertarget{sampUtil_8c_711aa545f55e9307f662062deefd5903}{ +handle\_\-t \textbf{samp\_\-newHandle} (void $\ast$ptr)} +\label{sampUtil_8c_711aa545f55e9307f662062deefd5903} + +\item +\hypertarget{sampUtil_8c_f02a7c646a9ed56e545d8bf33434c207}{ +void \textbf{samp\_\-freeHandle} (handle\_\-t handle)} +\label{sampUtil_8c_f02a7c646a9ed56e545d8bf33434c207} + +\item +char $\ast$ \hyperlink{sampUtil_8c_aed9017996a8361f8abf5b5c6a954414}{samp\_\-app2id} (handle\_\-t handle, char $\ast$appName) +\begin{CompactList}\small\item\em Convert an application name to a public-ID. \item\end{CompactList}\item +char $\ast$ \hyperlink{sampUtil_8c_a75368198ec8cd2fff6ad304806862b8}{samp\_\-id2app} (handle\_\-t handle, char $\ast$pubId) +\begin{CompactList}\small\item\em Convert a public-ID to the application name. \item\end{CompactList}\item +int \hyperlink{sampUtil_8c_0fb77074a0a38a4eab5dcf4e397dfef3}{samp\_\-serverPort} () +\begin{CompactList}\small\item\em Return a unique port number for the server. \item\end{CompactList}\item +void \hyperlink{sampUtil_8c_c7538c339e59556bfd0a87973ad61a43}{samp\_\-printMetadata} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} name) +\begin{CompactList}\small\item\em Print the metadata for the application. \item\end{CompactList}\item +char $\ast$ \hyperlink{sampUtil_8c_ed777ec70a7f11254f04a2ee11be391b}{samp\_\-getMetadata} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} name) +\begin{CompactList}\small\item\em Get the metadata item for the application. \item\end{CompactList}\end{CompactItemize} +\subsection*{Variables} +\begin{CompactItemize} +\item +\hypertarget{sampUtil_8c_ef3481f5da99207929f0c0c5ee4c328b}{ +int \textbf{numHandles} = 0} +\label{sampUtil_8c_ef3481f5da99207929f0c0c5ee4c328b} + +\item +\hypertarget{sampUtil_8c_c3d68c02a974f30f9150b4556e5e00d4}{ +long \textbf{sampHandles} \mbox{[}MAX\_\-HANDLES\mbox{]}} +\label{sampUtil_8c_c3d68c02a974f30f9150b4556e5e00d4} + +\end{CompactItemize} + + +\label{_details} +\hypertarget{_details}{} +\subsection{Detailed Description} +Utility methods to convert struct pointers to user handles. + +SAMPUTIL.C -- Utility methods to convert struct pointers to user handles. + +\begin{Desc} +\item[Author:]Mike Fitzpatrick \end{Desc} +\begin{Desc} +\item[Date:]7/10/09 \end{Desc} + + +\subsection{Function Documentation} +\hypertarget{sampUtil_8c_aed9017996a8361f8abf5b5c6a954414}{ +\index{sampUtil.c@{sampUtil.c}!samp\_\-app2id@{samp\_\-app2id}} +\index{samp\_\-app2id@{samp\_\-app2id}!sampUtil.c@{sampUtil.c}} +\subsubsection[{samp\_\-app2id}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ samp\_\-app2id (handle\_\-t {\em handle}, \/ char $\ast$ {\em appName})}} +\label{sampUtil_8c_aed9017996a8361f8abf5b5c6a954414} + + +Convert an application name to a public-ID. + +SAMP\_\-APP2ID -- Convert an application name to a public-ID. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em appName}]name of registered application \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]public ID of application \end{Desc} + + +References Samp::clients, Client::name, and Samp::nclients. + +Referenced by samp\_\-call(), samp\_\-callAndWait(), samp\_\-envGet(), samp\_\-notify(), samp\_\-paramGet(), samp\_\-Ping(), and samp\_\-sendMsg().\hypertarget{sampUtil_8c_ed777ec70a7f11254f04a2ee11be391b}{ +\index{sampUtil.c@{sampUtil.c}!samp\_\-getMetadata@{samp\_\-getMetadata}} +\index{samp\_\-getMetadata@{samp\_\-getMetadata}!sampUtil.c@{sampUtil.c}} +\subsubsection[{samp\_\-getMetadata}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ samp\_\-getMetadata (handle\_\-t {\em handle}, \/ {\bf String} {\em name})}} +\label{sampUtil_8c_ed777ec70a7f11254f04a2ee11be391b} + + +Get the metadata item for the application. + +SAMP\_\-GETMETADATA -- Get the metadata item for the application. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References appMD::aKey, appMD::aVal, Samp::description, appMD::docURL, appMD::iconURL, Samp::meta, and appMD::nkeys.\hypertarget{sampUtil_8c_a75368198ec8cd2fff6ad304806862b8}{ +\index{sampUtil.c@{sampUtil.c}!samp\_\-id2app@{samp\_\-id2app}} +\index{samp\_\-id2app@{samp\_\-id2app}!sampUtil.c@{sampUtil.c}} +\subsubsection[{samp\_\-id2app}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ samp\_\-id2app (handle\_\-t {\em handle}, \/ char $\ast$ {\em pubId})}} +\label{sampUtil_8c_a75368198ec8cd2fff6ad304806862b8} + + +Convert a public-ID to the application name. + +SAMP\_\-ID2APP -- Convert a public-ID to the application name. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em pubId}]public ID of application \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]name of registered application \end{Desc} + + +References Samp::clients, Client::name, and Samp::nclients.\hypertarget{sampUtil_8c_c7538c339e59556bfd0a87973ad61a43}{ +\index{sampUtil.c@{sampUtil.c}!samp\_\-printMetadata@{samp\_\-printMetadata}} +\index{samp\_\-printMetadata@{samp\_\-printMetadata}!sampUtil.c@{sampUtil.c}} +\subsubsection[{samp\_\-printMetadata}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-printMetadata (handle\_\-t {\em handle}, \/ {\bf String} {\em name})}} +\label{sampUtil_8c_c7538c339e59556bfd0a87973ad61a43} + + +Print the metadata for the application. + +SAMP\_\-PRINTMETADATA -- Print the metadata for the application. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References appMD::aKey, appMD::aVal, Samp::description, appMD::docURL, appMD::iconURL, Samp::meta, and appMD::nkeys.\hypertarget{sampUtil_8c_0fb77074a0a38a4eab5dcf4e397dfef3}{ +\index{sampUtil.c@{sampUtil.c}!samp\_\-serverPort@{samp\_\-serverPort}} +\index{samp\_\-serverPort@{samp\_\-serverPort}!sampUtil.c@{sampUtil.c}} +\subsubsection[{samp\_\-serverPort}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-serverPort (void)}} +\label{sampUtil_8c_0fb77074a0a38a4eab5dcf4e397dfef3} + + +Return a unique port number for the server. + +SAMP\_\-SERVERPORT -- Return a unique port number for the server. + +\begin{Desc} +\item[Returns:]port number \end{Desc} + + +Referenced by samp\_\-hubSetXmlrpcCallback(), and sampInit(). \ No newline at end of file diff --git a/vendor/voclient/libsamp/doc/latex/samp_8c.tex b/vendor/voclient/libsamp/doc/latex/samp_8c.tex new file mode 100644 index 00000000..dca7fc6e --- /dev/null +++ b/vendor/voclient/libsamp/doc/latex/samp_8c.tex @@ -0,0 +1,733 @@ +\hypertarget{samp_8c}{ +\section{samp.c File Reference} +\label{samp_8c}\index{samp.c@{samp.c}} +} +Top-level interface to the SAMP library. + + +{\tt \#include $<$stdlib.h$>$}\par +{\tt \#include $<$stdio.h$>$}\par +{\tt \#include $<$unistd.h$>$}\par +{\tt \#include $<$string.h$>$}\par +{\tt \#include $<$time.h$>$}\par +{\tt \#include $<$signal.h$>$}\par +{\tt \#include $<$ctype.h$>$}\par +{\tt \#include \char`\"{}samp.h\char`\"{}}\par +\subsection*{Defines} +\begin{CompactItemize} +\item +\#define \hyperlink{samp_8c_92d198f56296c0b6a531ce4bce977185}{SZ\_\-CLIENT\_\-LIST}~1024 +\end{CompactItemize} +\subsection*{Functions} +\begin{CompactItemize} +\item +handle\_\-t \hyperlink{samp_8c_db03c60f2933ed9785bfb4457c359af2}{sampInit} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} appName, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} description) +\begin{CompactList}\small\item\em Initialize the SAMP interface. \item\end{CompactList}\item +void \hyperlink{samp_8c_f861f637942c5f971bab824708581f82}{sampClose} (handle\_\-t handle) +\begin{CompactList}\small\item\em Close the SAMP interface and free resources. \item\end{CompactList}\item +int \hyperlink{samp_8c_6bfd947988e5dbc846af7f99bcd99ee7}{sampDebug} (handle\_\-t handle, int value) +\begin{CompactList}\small\item\em Set interface debug level. \item\end{CompactList}\item +int \hyperlink{samp_8c_e3a6e918b3fe22db2fe014da16f81aad}{sampVerbose} (handle\_\-t handle, int value) +\begin{CompactList}\small\item\em Set interface debug level. \item\end{CompactList}\item +int \hyperlink{samp_8c_1f6d544576fec785be1acfeaf3f2cf63}{sampStartup} (handle\_\-t handle) +\begin{CompactList}\small\item\em Startup the SAMP interface to send/receive messages. \item\end{CompactList}\item +int \hyperlink{samp_8c_d634392fbb12cf4e1b2eb05da34759c5}{sampShutdown} (handle\_\-t handle) +\begin{CompactList}\small\item\em Shut down the active SAMP interface. \item\end{CompactList}\item +int \hyperlink{samp_8c_b2f9c71819e1956e1c29e969968f453c}{samp\_\-hubActive} (handle\_\-t handle) +\begin{CompactList}\small\item\em Determine if the \hyperlink{structHub}{Hub} is active (i.e. connected). \item\end{CompactList}\item +\hypertarget{samp_8c_d4ecb0b92b749647d1c3af8a1d11d5d4}{ +int \textbf{samp\_\-setOpt} (handle\_\-t handle, char $\ast$opt, int value)} +\label{samp_8c_d4ecb0b92b749647d1c3af8a1d11d5d4} + +\item +void \hyperlink{samp_8c_1428f653b9502c6e6d540f873de2b24f}{samp\_\-Metadata} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} field, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} value) +\begin{CompactList}\small\item\em Set a metadata field value for the application. \item\end{CompactList}\item +void \hyperlink{samp_8c_ed050606c5076a4a34eb8f0f982a25d4}{samp\_\-Subscribe} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, void $\ast$userFunc) +\begin{CompactList}\small\item\em Subscribe to a given mtype. \item\end{CompactList}\item +void \hyperlink{samp_8c_dc0e418fbaee507e661260c4480ecfcd}{samp\_\-Unsubscribe} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype) +\begin{CompactList}\small\item\em Unsubscribe to a given mtype. \item\end{CompactList}\item +void \hyperlink{samp_8c_3e01437224c73b91e49c6428cb69735d}{samp\_\-setCallMode} (handle\_\-t handle, int mode) +\begin{CompactList}\small\item\em Set the default calling mode (synch or asynch). \item\end{CompactList}\item +void \hyperlink{samp_8c_d636ae12dd05df43a077f91882a197ec}{samp\_\-setSyncMode} (handle\_\-t handle) +\begin{CompactList}\small\item\em Set the calling mode to use synchronous messaging. \item\end{CompactList}\item +void \hyperlink{samp_8c_9b2292b819e590b1f7c63bbdfaa09e31}{samp\_\-setASyncMode} (handle\_\-t handle) +\begin{CompactList}\small\item\em Set the calling mode to use asynchronous messaging. \item\end{CompactList}\item +void \hyperlink{samp_8c_7bfbc2e767fe234f83c13b8316a09ecd}{samp\_\-setNotifyMode} (handle\_\-t handle) +\begin{CompactList}\small\item\em Set the calling mode to use notification messaging. \item\end{CompactList}\item +void \hyperlink{samp_8c_01721eabf3e664bae3bea0c2b72268e2}{samp\_\-setMsgMode} (handle\_\-t handle, int mode) +\begin{CompactList}\small\item\em Set the message pattern to the specified mode. \item\end{CompactList}\item +void \hyperlink{samp_8c_b6b49029386c3efd0520daa93a4ab3eb}{samp\_\-setCallByRef} (handle\_\-t handle) +\begin{CompactList}\small\item\em Have interface call user handlers by reference. \item\end{CompactList}\item +void \hyperlink{samp_8c_a3c0bdb4c512357dbc53b0ad7a7d5b01}{samp\_\-setReplyCallback} (handle\_\-t handle, int $\ast$func) +\begin{CompactList}\small\item\em Set the Reply callback. samp\_\-setReplyCallback (handle\_\-t handle, int $\ast$func). \item\end{CompactList}\item +void \hyperlink{samp_8c_3db66f28546459327665f8491ea97f4d}{samp\_\-setResponseCallback} (handle\_\-t handle, int $\ast$func) +\begin{CompactList}\small\item\em Set the Response callback. samp\_\-setResponseCallback (handle\_\-t handle, int $\ast$func). \item\end{CompactList}\item +void \hyperlink{samp_8c_114bf9fb0d3e6eabd8bb93f3c87f5233}{samp\_\-defaultReplyHandler} (handle\_\-t handle) +\begin{CompactList}\small\item\em The interface's default Reply handler. \item\end{CompactList}\item +\hypertarget{samp_8c_cd506ac12f25f64ada7c9859af3f857f}{ +void \textbf{samp\_\-deaultfResponseHandler} (handle\_\-t handle)} +\label{samp_8c_cd506ac12f25f64ada7c9859af3f857f} + +\item +int \hyperlink{samp_8c_985afa0baeb135c9ee72d09394314ff1}{samp\_\-replyStatus} (handle\_\-t handle) +\begin{CompactList}\small\item\em Reply with the status of the last message sent. \item\end{CompactList}\item +void \hyperlink{samp_8c_c057d32437a96a527c63f938757099af}{samp\_\-setTimeout} (handle\_\-t handle, int timeout) +\begin{CompactList}\small\item\em Set the message timeout value (in seconds). \item\end{CompactList}\item +\hypertarget{samp_8c_7731da5bec549e7554d1bdc11b13eaf6}{ +void \textbf{samp\_\-setAppName} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} name)} +\label{samp_8c_7731da5bec549e7554d1bdc11b13eaf6} + +\item +void \hyperlink{samp_8c_0f50f8dbae701aa6b19912fc99f6475a}{samp\_\-setAppVersion} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} version) +\begin{CompactList}\small\item\em Set the application name string. \item\end{CompactList}\item +int \hyperlink{samp_8c_ff4d125fc9594be25984989fad2fd3c8}{samp\_\-mapClients} (handle\_\-t handle) +\item +int \hyperlink{samp_8c_8a2111bbe4c88cef635e3bf67e899563}{samp\_\-addClient} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} name, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} id) +\item +int \hyperlink{samp_8c_1e494e73abe2ddfd946fb39e84da42a9}{samp\_\-listClients} (handle\_\-t handle) +\item +\hypertarget{samp_8c_61e09b672e5f610dae0f242ea8256328}{ +char $\ast$ \textbf{samp\_\-getClients} (handle\_\-t handle)} +\label{samp_8c_61e09b672e5f610dae0f242ea8256328} + +\item +int \hyperlink{samp_8c_e30e492f306a40f853a454faf60ab479}{samp\_\-removeClient} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} id) +\item +\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} \hyperlink{samp_8c_f299ea13607279f60f16b8639a00658f}{samp\_\-getOKMap} () +\item +\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} \hyperlink{samp_8c_6bb8b1f5c6268ad8c7f165733d4af86d}{samp\_\-getNullMap} () +\end{CompactItemize} +\subsection*{Variables} +\begin{CompactItemize} +\item +\hypertarget{samp_8c_12abcaf1a16a8a7c2ef6358cdbf4d705}{ +\hyperlink{structSamp}{Samp} $\ast$ \textbf{sampP}} +\label{samp_8c_12abcaf1a16a8a7c2ef6358cdbf4d705} + +\item +handle\_\-t \hyperlink{samp_8c_b04b61ee02d86e15b02b861699ae7424}{sampH} +\item +\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} \hyperlink{samp_8c_68bf22a5b3f2531242f5c6d6ecf2ea1e}{nullMap} +\item +\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} \hyperlink{samp_8c_a68efe925f0d8f29fa203c0f3747a6e2}{OK\_\-Map} +\item +\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} \hyperlink{samp_8c_a2106c7fe3a5747178c046238fbd5d55}{nullList} +\item +\hyperlink{structHub}{Hub} $\ast$ \hyperlink{samp_8c_d702b07240de0e0cf9e4b781a38317ad}{hub} +\item +int \hyperlink{samp_8c_037f00cb1101b007b4bf45e8bee1bd3e}{numHubs} +\item +long \hyperlink{samp_8c_dbf72aff0293f6556c1c6a2f4a62e2b9}{hubHandles} \mbox{[}MAX\_\-HUBS\mbox{]} +\end{CompactItemize} + + +\label{_details} +\hypertarget{_details}{} +\subsection{Detailed Description} +Top-level interface to the SAMP library. + +SAMP.C -- Top-level interface to the SAMP library. + +samp = sampInit (appName, descr) sampClose (samp) + +stat = sampStartup (samp) sampShutdown (samp) + +samp\_\-Metadata (samp, field, value) samp\_\-Subscribe (samp, mtype, handler) samp\_\-Unsubscribe (samp, mtype) + +samp\_\-setReplyCallback (samp, func) samp\_\-setResponseCallback (samp, func) stat = samp\_\-replyStatus (samp) + +Utility Methods: samp\_\-setSyncMode (samp) // Default samp\_\-setASyncMode (samp) samp\_\-setNotifyMode (samp) samp\_\-setCallByRef (samp) + +samp\_\-setTimeout (samp, timeout) samp\_\-setAppNmae (samp, version) samp\_\-setAppVersion (samp, name) + +samp\_\-mapClients (handle\_\-t handle) samp\_\-addClient (handle\_\-t handle, String name, String id) samp\_\-removeClient (handle\_\-t handle, String id) + +\begin{Desc} +\item[Author:]Mike Fitzpatrick \end{Desc} +\begin{Desc} +\item[Date:]7/10/09 \end{Desc} + + +\subsection{Define Documentation} +\hypertarget{samp_8c_92d198f56296c0b6a531ce4bce977185}{ +\index{samp.c@{samp.c}!SZ\_\-CLIENT\_\-LIST@{SZ\_\-CLIENT\_\-LIST}} +\index{SZ\_\-CLIENT\_\-LIST@{SZ\_\-CLIENT\_\-LIST}!samp.c@{samp.c}} +\subsubsection[{SZ\_\-CLIENT\_\-LIST}]{\setlength{\rightskip}{0pt plus 5cm}\#define SZ\_\-CLIENT\_\-LIST~1024}} +\label{samp_8c_92d198f56296c0b6a531ce4bce977185} + + +SAMP\_\-GETCLIENTS -- Get a list of clients as a character string as the PubID and Name separated by a space, one client per line. + +\subsection{Function Documentation} +\hypertarget{samp_8c_8a2111bbe4c88cef635e3bf67e899563}{ +\index{samp.c@{samp.c}!samp\_\-addClient@{samp\_\-addClient}} +\index{samp\_\-addClient@{samp\_\-addClient}!samp.c@{samp.c}} +\subsubsection[{samp\_\-addClient}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-addClient (handle\_\-t {\em handle}, \/ {\bf String} {\em name}, \/ {\bf String} {\em id})}} +\label{samp_8c_8a2111bbe4c88cef635e3bf67e899563} + + +SAMP\_\-ADDCLIENT -- Add a newly registered client to the list of known apps so we can do the public-private name translation. + +References Samp::clients, Client::name, Samp::nclients, and SZ\_\-NAME. + +Referenced by samp\_\-processHubEvent().\hypertarget{samp_8c_114bf9fb0d3e6eabd8bb93f3c87f5233}{ +\index{samp.c@{samp.c}!samp\_\-defaultReplyHandler@{samp\_\-defaultReplyHandler}} +\index{samp\_\-defaultReplyHandler@{samp\_\-defaultReplyHandler}!samp.c@{samp.c}} +\subsubsection[{samp\_\-defaultReplyHandler}]{\setlength{\rightskip}{0pt plus 5cm}samp\_\-defaultReplyHandler (handle\_\-t {\em handle})}} +\label{samp_8c_114bf9fb0d3e6eabd8bb93f3c87f5233} + + +The interface's default Reply handler. + +SAMP\_\-DEFAULTREPLYHANDLER -- The interface's default Reply handler. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{samp_8c_6bb8b1f5c6268ad8c7f165733d4af86d}{ +\index{samp.c@{samp.c}!samp\_\-getNullMap@{samp\_\-getNullMap}} +\index{samp\_\-getNullMap@{samp\_\-getNullMap}!samp.c@{samp.c}} +\subsubsection[{samp\_\-getNullMap}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Map} samp\_\-getNullMap (void)}} +\label{samp_8c_6bb8b1f5c6268ad8c7f165733d4af86d} + + +SAMP\_\-GETNULLMAP -- Generate a 'Null' map we can return to the \hyperlink{structHub}{Hub}. + +References samp\_\-newMap().\hypertarget{samp_8c_f299ea13607279f60f16b8639a00658f}{ +\index{samp.c@{samp.c}!samp\_\-getOKMap@{samp\_\-getOKMap}} +\index{samp\_\-getOKMap@{samp\_\-getOKMap}!samp.c@{samp.c}} +\subsubsection[{samp\_\-getOKMap}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Map} samp\_\-getOKMap (void)}} +\label{samp_8c_f299ea13607279f60f16b8639a00658f} + + +SAMP\_\-GETOKMAP -- Generate an 'OK' map we can return to the \hyperlink{structHub}{Hub}. + +References nullMap, samp\_\-newMap(), samp\_\-setMapInMap(), and samp\_\-setStringInMap().\hypertarget{samp_8c_b2f9c71819e1956e1c29e969968f453c}{ +\index{samp.c@{samp.c}!samp\_\-hubActive@{samp\_\-hubActive}} +\index{samp\_\-hubActive@{samp\_\-hubActive}!samp.c@{samp.c}} +\subsubsection[{samp\_\-hubActive}]{\setlength{\rightskip}{0pt plus 5cm}samp\_\-hubActive (handle\_\-t {\em handle})}} +\label{samp_8c_b2f9c71819e1956e1c29e969968f453c} + + +Determine if the \hyperlink{structHub}{Hub} is active (i.e. connected). + +SAMP\_\-HUBACTIVE -- Determine if the \hyperlink{structHub}{Hub} is active (i.e. connected). + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]user handle to samp struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::active.\hypertarget{samp_8c_1e494e73abe2ddfd946fb39e84da42a9}{ +\index{samp.c@{samp.c}!samp\_\-listClients@{samp\_\-listClients}} +\index{samp\_\-listClients@{samp\_\-listClients}!samp.c@{samp.c}} +\subsubsection[{samp\_\-listClients}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-listClients (handle\_\-t {\em handle})}} +\label{samp_8c_1e494e73abe2ddfd946fb39e84da42a9} + + +SAMP\_\-LISTCLIENTS -- List the available clients to stdout. + +References Samp::clients, Client::name, and Samp::nclients.\hypertarget{samp_8c_ff4d125fc9594be25984989fad2fd3c8}{ +\index{samp.c@{samp.c}!samp\_\-mapClients@{samp\_\-mapClients}} +\index{samp\_\-mapClients@{samp\_\-mapClients}!samp.c@{samp.c}} +\subsubsection[{samp\_\-mapClients}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-mapClients (handle\_\-t {\em handle})}} +\label{samp_8c_ff4d125fc9594be25984989fad2fd3c8} + + +SAMP\_\-MAPCLIENTS -- Map the public-ids of registered clients to the appName. + +References Samp::clients, Client::name, Samp::nclients, samp\_\-freeList(), samp\_\-GetMetadata(), samp\_\-GetRegisteredClients(), samp\_\-getStringFromList(), samp\_\-listLen(), and SZ\_\-NAME. + +Referenced by sampStartup().\hypertarget{samp_8c_1428f653b9502c6e6d540f873de2b24f}{ +\index{samp.c@{samp.c}!samp\_\-Metadata@{samp\_\-Metadata}} +\index{samp\_\-Metadata@{samp\_\-Metadata}!samp.c@{samp.c}} +\subsubsection[{samp\_\-Metadata}]{\setlength{\rightskip}{0pt plus 5cm}samp\_\-Metadata (handle\_\-t {\em handle}, \/ {\bf String} {\em field}, \/ {\bf String} {\em value})}} +\label{samp_8c_1428f653b9502c6e6d540f873de2b24f} + + +Set a metadata field value for the application. + +SAMP\_\-METADATA -- Set a metadata field for the application. This will be sent to the \hyperlink{structHub}{Hub} later in a declareMetadata() call. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp handle \item[{\em field}]metadata field to set (name, author, etc) \item[{\em samp}]value of field \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References appMD::aKey, Samp::appVer, Hub::appVer, appMD::aVal, appMD::desc, Hub::description, Samp::description, appMD::docURL, Samp::hub, appMD::iconURL, Hub::meta, Samp::meta, appMD::nkeys, and sampTrace().\hypertarget{samp_8c_e30e492f306a40f853a454faf60ab479}{ +\index{samp.c@{samp.c}!samp\_\-removeClient@{samp\_\-removeClient}} +\index{samp\_\-removeClient@{samp\_\-removeClient}!samp.c@{samp.c}} +\subsubsection[{samp\_\-removeClient}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-removeClient (handle\_\-t {\em handle}, \/ {\bf String} {\em id})}} +\label{samp_8c_e30e492f306a40f853a454faf60ab479} + + +SAMP\_\-REMOVECLIENT -- Remove a registered client from the list of known apps that do the public-private name translation. + +References Samp::clients, Client::name, Samp::nclients, and SZ\_\-NAME. + +Referenced by samp\_\-processHubEvent().\hypertarget{samp_8c_985afa0baeb135c9ee72d09394314ff1}{ +\index{samp.c@{samp.c}!samp\_\-replyStatus@{samp\_\-replyStatus}} +\index{samp\_\-replyStatus@{samp\_\-replyStatus}!samp.c@{samp.c}} +\subsubsection[{samp\_\-replyStatus}]{\setlength{\rightskip}{0pt plus 5cm}status samp\_\-replyStatus (handle\_\-t {\em handle})}} +\label{samp_8c_985afa0baeb135c9ee72d09394314ff1} + + +Reply with the status of the last message sent. + +SAMP\_\-REPLYSTATUS -- Reply with the status of the last message sent. + +May be used to 'poll' for a reponse from the caller in cases where use of a callback is a problem. Codes are: $<$0==ERR, 0==PENDING, 1==OK + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em samp}]samp struct ptr \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]message status \end{Desc} + + +Referenced by samp\_\-Register().\hypertarget{samp_8c_0f50f8dbae701aa6b19912fc99f6475a}{ +\index{samp.c@{samp.c}!samp\_\-setAppVersion@{samp\_\-setAppVersion}} +\index{samp\_\-setAppVersion@{samp\_\-setAppVersion}!samp.c@{samp.c}} +\subsubsection[{samp\_\-setAppVersion}]{\setlength{\rightskip}{0pt plus 5cm}samp\_\-setAppVersion (handle\_\-t {\em handle}, \/ {\bf String} {\em version})}} +\label{samp_8c_0f50f8dbae701aa6b19912fc99f6475a} + + +Set the application name string. + +Set the application version string. + +SAMP\_\-SETAPPNAME -- Set the application name string. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp handle \item[{\em name}]application name \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing\end{Desc} +SAMP\_\-SETAPPVERSION -- Set the application version string. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp handle \item[{\em name}]application version \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Hub::appVer, Samp::appVer, and Samp::hub.\hypertarget{samp_8c_9b2292b819e590b1f7c63bbdfaa09e31}{ +\index{samp.c@{samp.c}!samp\_\-setASyncMode@{samp\_\-setASyncMode}} +\index{samp\_\-setASyncMode@{samp\_\-setASyncMode}!samp.c@{samp.c}} +\subsubsection[{samp\_\-setASyncMode}]{\setlength{\rightskip}{0pt plus 5cm}samp\_\-setASyncMode (handle\_\-t {\em handle})}} +\label{samp_8c_9b2292b819e590b1f7c63bbdfaa09e31} + + +Set the calling mode to use asynchronous messaging. + +SAMP\_\-SETASYNCMODE -- Set the calling mode to use asynchronous messaging. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::msgMode.\hypertarget{samp_8c_b6b49029386c3efd0520daa93a4ab3eb}{ +\index{samp.c@{samp.c}!samp\_\-setCallByRef@{samp\_\-setCallByRef}} +\index{samp\_\-setCallByRef@{samp\_\-setCallByRef}!samp.c@{samp.c}} +\subsubsection[{samp\_\-setCallByRef}]{\setlength{\rightskip}{0pt plus 5cm}samp\_\-setCallByRef (handle\_\-t {\em handle})}} +\label{samp_8c_b6b49029386c3efd0520daa93a4ab3eb} + + +Have interface call user handlers by reference. + +SAMP\_\-SETCALLBYREF -- Have interface call user handlers by reference. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::handlerMode.\hypertarget{samp_8c_3e01437224c73b91e49c6428cb69735d}{ +\index{samp.c@{samp.c}!samp\_\-setCallMode@{samp\_\-setCallMode}} +\index{samp\_\-setCallMode@{samp\_\-setCallMode}!samp.c@{samp.c}} +\subsubsection[{samp\_\-setCallMode}]{\setlength{\rightskip}{0pt plus 5cm}samp\_\-setCallMode (handle\_\-t {\em handle}, \/ int {\em mode})}} +\label{samp_8c_3e01437224c73b91e49c6428cb69735d} + + +Set the default calling mode (synch or asynch). + +SAMP\_\-SETCALLMODE -- Set the default calling mode (synch or asynch) + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp handle \item[{\em mode}]call mode (synch or asynch) \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::msgMode.\hypertarget{samp_8c_01721eabf3e664bae3bea0c2b72268e2}{ +\index{samp.c@{samp.c}!samp\_\-setMsgMode@{samp\_\-setMsgMode}} +\index{samp\_\-setMsgMode@{samp\_\-setMsgMode}!samp.c@{samp.c}} +\subsubsection[{samp\_\-setMsgMode}]{\setlength{\rightskip}{0pt plus 5cm}samp\_\-setMsgMode (handle\_\-t {\em handle}, \/ int {\em mode})}} +\label{samp_8c_01721eabf3e664bae3bea0c2b72268e2} + + +Set the message pattern to the specified mode. + +SAMP\_\-SETMSGMODE -- Set the message pattern to the specified mode. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp handle \item[{\em mode}]message mode \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::msgMode.\hypertarget{samp_8c_7bfbc2e767fe234f83c13b8316a09ecd}{ +\index{samp.c@{samp.c}!samp\_\-setNotifyMode@{samp\_\-setNotifyMode}} +\index{samp\_\-setNotifyMode@{samp\_\-setNotifyMode}!samp.c@{samp.c}} +\subsubsection[{samp\_\-setNotifyMode}]{\setlength{\rightskip}{0pt plus 5cm}samp\_\-setNotifyMode (handle\_\-t {\em handle})}} +\label{samp_8c_7bfbc2e767fe234f83c13b8316a09ecd} + + +Set the calling mode to use notification messaging. + +SAMP\_\-SETNOTIFYMODE -- Set the calling mode to use notification messaging. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::msgMode.\hypertarget{samp_8c_a3c0bdb4c512357dbc53b0ad7a7d5b01}{ +\index{samp.c@{samp.c}!samp\_\-setReplyCallback@{samp\_\-setReplyCallback}} +\index{samp\_\-setReplyCallback@{samp\_\-setReplyCallback}!samp.c@{samp.c}} +\subsubsection[{samp\_\-setReplyCallback}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setReplyCallback (handle\_\-t {\em handle}, \/ int $\ast$ {\em func})}} +\label{samp_8c_a3c0bdb4c512357dbc53b0ad7a7d5b01} + + +Set the Reply callback. samp\_\-setReplyCallback (handle\_\-t handle, int $\ast$func). + +SAMP\_\-SETREPLYCALLBACK -- Set the Reply callback. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp handle \item[{\em func}]callback for Reply message \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{samp_8c_3db66f28546459327665f8491ea97f4d}{ +\index{samp.c@{samp.c}!samp\_\-setResponseCallback@{samp\_\-setResponseCallback}} +\index{samp\_\-setResponseCallback@{samp\_\-setResponseCallback}!samp.c@{samp.c}} +\subsubsection[{samp\_\-setResponseCallback}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setResponseCallback (handle\_\-t {\em handle}, \/ int $\ast$ {\em func})}} +\label{samp_8c_3db66f28546459327665f8491ea97f4d} + + +Set the Response callback. samp\_\-setResponseCallback (handle\_\-t handle, int $\ast$func). + +SAMP\_\-SETRESPONSECALLBACK -- Set the Response callback. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp handle \item[{\em func}]callback for message response \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{samp_8c_d636ae12dd05df43a077f91882a197ec}{ +\index{samp.c@{samp.c}!samp\_\-setSyncMode@{samp\_\-setSyncMode}} +\index{samp\_\-setSyncMode@{samp\_\-setSyncMode}!samp.c@{samp.c}} +\subsubsection[{samp\_\-setSyncMode}]{\setlength{\rightskip}{0pt plus 5cm}samp\_\-setSyncMode (handle\_\-t {\em handle})}} +\label{samp_8c_d636ae12dd05df43a077f91882a197ec} + + +Set the calling mode to use synchronous messaging. + +SAMP\_\-SETSYNCMODE -- Set the calling mode to use synchronous messaging. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::msgMode.\hypertarget{samp_8c_c057d32437a96a527c63f938757099af}{ +\index{samp.c@{samp.c}!samp\_\-setTimeout@{samp\_\-setTimeout}} +\index{samp\_\-setTimeout@{samp\_\-setTimeout}!samp.c@{samp.c}} +\subsubsection[{samp\_\-setTimeout}]{\setlength{\rightskip}{0pt plus 5cm}samp\_\-setTimeout (handle\_\-t {\em handle}, \/ int {\em timeout})}} +\label{samp_8c_c057d32437a96a527c63f938757099af} + + +Set the message timeout value (in seconds). + +SAMP\_\-SETTIMEOUT -- Set the message timeout value (in seconds). + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp handle \item[{\em name}]application name \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::hub, and Hub::timeout.\hypertarget{samp_8c_ed050606c5076a4a34eb8f0f982a25d4}{ +\index{samp.c@{samp.c}!samp\_\-Subscribe@{samp\_\-Subscribe}} +\index{samp\_\-Subscribe@{samp\_\-Subscribe}!samp.c@{samp.c}} +\subsubsection[{samp\_\-Subscribe}]{\setlength{\rightskip}{0pt plus 5cm}samp\_\-Subscribe (handle\_\-t {\em handle}, \/ {\bf String} {\em mtype}, \/ void $\ast$ {\em func})}} +\label{samp_8c_ed050606c5076a4a34eb8f0f982a25d4} + + +Subscribe to a given mtype. + +SAMP\_\-SUBSCRIBE -- Subscribe to a given mtype. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]user handle to samp struct \item[{\em mtype}]mtype name \item[{\em func}]callback function \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::nsubs, samp\_\-getSampHandler(), samp\_\-setSampHandler(), and samp\_\-setUserHandler().\hypertarget{samp_8c_dc0e418fbaee507e661260c4480ecfcd}{ +\index{samp.c@{samp.c}!samp\_\-Unsubscribe@{samp\_\-Unsubscribe}} +\index{samp\_\-Unsubscribe@{samp\_\-Unsubscribe}!samp.c@{samp.c}} +\subsubsection[{samp\_\-Unsubscribe}]{\setlength{\rightskip}{0pt plus 5cm}samp\_\-Unsubscribe (handle\_\-t {\em handle}, \/ {\bf String} {\em mtype})}} +\label{samp_8c_dc0e418fbaee507e661260c4480ecfcd} + + +Unsubscribe to a given mtype. + +SAMP\_\-UNSUBSCRIBE -- Unsubscribe to a given mtype. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]user handle to samp struct \item[{\em mtype}]mtype name \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::nsubs, samp\_\-DeclareSubscriptions(), Subs::sampFunc, and Subs::userFunc.\hypertarget{samp_8c_f861f637942c5f971bab824708581f82}{ +\index{samp.c@{samp.c}!sampClose@{sampClose}} +\index{sampClose@{sampClose}!samp.c@{samp.c}} +\subsubsection[{sampClose}]{\setlength{\rightskip}{0pt plus 5cm}sampClose (handle\_\-t {\em handle})}} +\label{samp_8c_f861f637942c5f971bab824708581f82} + + +Close the SAMP interface and free resources. + +SAMP\_\-CLOSE -- Close the SAMP interface. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]user handle to samp struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::hub, Samp::hubHandle, samp\_\-freeHandle(), samp\_\-hubClose(), sampTrace(), and Samp::verbose.\hypertarget{samp_8c_6bfd947988e5dbc846af7f99bcd99ee7}{ +\index{samp.c@{samp.c}!sampDebug@{sampDebug}} +\index{sampDebug@{sampDebug}!samp.c@{samp.c}} +\subsubsection[{sampDebug}]{\setlength{\rightskip}{0pt plus 5cm}sampDebug (handle\_\-t {\em handle}, \/ int {\em value})}} +\label{samp_8c_6bfd947988e5dbc846af7f99bcd99ee7} + + +Set interface debug level. + +SAMPDEBUG -- Set interface debug level. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]user handle to samp struct \item[{\em value}]debug value \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::debug, and Samp::verbose.\hypertarget{samp_8c_db03c60f2933ed9785bfb4457c359af2}{ +\index{samp.c@{samp.c}!sampInit@{sampInit}} +\index{sampInit@{sampInit}!samp.c@{samp.c}} +\subsubsection[{sampInit}]{\setlength{\rightskip}{0pt plus 5cm}handle sampInit ({\bf String} {\em name}, \/ {\bf String} {\em descr})}} +\label{samp_8c_db03c60f2933ed9785bfb4457c359af2} + + +Initialize the SAMP interface. + +SAMP\_\-INIT -- Initialize the SAMP interface. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em appName}]application name \item[{\em description}]description of application \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]samp handle \end{Desc} + + +References nullList, nullMap, OK\_\-Map, samp\_\-hubOpen(), samp\_\-newHandle(), samp\_\-newList(), samp\_\-newMap(), samp\_\-serverPort(), samp\_\-setMapInMap(), samp\_\-setStringInMap(), sampH, and sampTrace().\hypertarget{samp_8c_d634392fbb12cf4e1b2eb05da34759c5}{ +\index{samp.c@{samp.c}!sampShutdown@{sampShutdown}} +\index{sampShutdown@{sampShutdown}!samp.c@{samp.c}} +\subsubsection[{sampShutdown}]{\setlength{\rightskip}{0pt plus 5cm}sampShutdown (handle\_\-t {\em handle})}} +\label{samp_8c_d634392fbb12cf4e1b2eb05da34759c5} + + +Shut down the active SAMP interface. + +SAMP\_\-SHUTDOWN -- Shut down the active SAMP interface. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]user handle to samp struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::active, Samp::hubHandle, samp\_\-hubClose(), Samp::svrThread, and Samp::verbose. + +Referenced by samp\_\-processHubEvent().\hypertarget{samp_8c_1f6d544576fec785be1acfeaf3f2cf63}{ +\index{samp.c@{samp.c}!sampStartup@{sampStartup}} +\index{sampStartup@{sampStartup}!samp.c@{samp.c}} +\subsubsection[{sampStartup}]{\setlength{\rightskip}{0pt plus 5cm}sampStartup (handle\_\-t {\em handle})}} +\label{samp_8c_1f6d544576fec785be1acfeaf3f2cf63} + + +Startup the SAMP interface to send/receive messages. + +SAMP\_\-STARTUP -- Startup the SAMP interface to send/receive messages. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]user handle to samp struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::active, Samp::clients, Samp::hub, Samp::hubHandle, Hub::id, Samp::mapClients, Client::name, Samp::nclients, samp\_\-hubDeclareMetadata(), samp\_\-hubDeclareSubscriptions(), samp\_\-hubOpen(), samp\_\-mapClients(), Samp::trace, and Samp::verbose.\hypertarget{samp_8c_e3a6e918b3fe22db2fe014da16f81aad}{ +\index{samp.c@{samp.c}!sampVerbose@{sampVerbose}} +\index{sampVerbose@{sampVerbose}!samp.c@{samp.c}} +\subsubsection[{sampVerbose}]{\setlength{\rightskip}{0pt plus 5cm}sampVerbose (handle\_\-t {\em handle}, \/ int {\em value})}} +\label{samp_8c_e3a6e918b3fe22db2fe014da16f81aad} + + +Set interface debug level. + +SAMPVERBOSE -- Set interface verbose level. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]user handle to samp struct \item[{\em value}]verbose value \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::verbose. + +\subsection{Variable Documentation} +\hypertarget{samp_8c_d702b07240de0e0cf9e4b781a38317ad}{ +\index{samp.c@{samp.c}!hub@{hub}} +\index{hub@{hub}!samp.c@{samp.c}} +\subsubsection[{hub}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Hub}$\ast$ {\bf hub}}} +\label{samp_8c_d702b07240de0e0cf9e4b781a38317ad} + + +empty List struct + +Referenced by samp\_\-bibLoad(), samp\_\-call(), samp\_\-callAll(), samp\_\-callAndWait(), samp\_\-cmdExec(), samp\_\-coordPointAtSky(), samp\_\-DeclareMetadata(), samp\_\-DeclareSubscriptions(), samp\_\-envGet(), samp\_\-envSet(), samp\_\-GetMetadata(), samp\_\-imageLoadFITS(), samp\_\-notify(), samp\_\-notifyAll(), samp\_\-paramGet(), samp\_\-paramSet(), samp\_\-Register(), samp\_\-Reply(), samp\_\-resourceLoad(), samp\_\-sendGeneric(), samp\_\-specLoadSSAGeneric(), samp\_\-tableHighlightRow(), samp\_\-tableLoadFITS(), samp\_\-tableLoadVOTable(), samp\_\-tableSelectRowList(), and samp\_\-UnRegister().\hypertarget{samp_8c_dbf72aff0293f6556c1c6a2f4a62e2b9}{ +\index{samp.c@{samp.c}!hubHandles@{hubHandles}} +\index{hubHandles@{hubHandles}!samp.c@{samp.c}} +\subsubsection[{hubHandles}]{\setlength{\rightskip}{0pt plus 5cm}long {\bf hubHandles}\mbox{[}MAX\_\-HUBS\mbox{]}}} +\label{samp_8c_dbf72aff0293f6556c1c6a2f4a62e2b9} + + +No. of available hubs \hypertarget{samp_8c_a2106c7fe3a5747178c046238fbd5d55}{ +\index{samp.c@{samp.c}!nullList@{nullList}} +\index{nullList@{nullList}!samp.c@{samp.c}} +\subsubsection[{nullList}]{\setlength{\rightskip}{0pt plus 5cm}{\bf List} {\bf nullList}}} +\label{samp_8c_a2106c7fe3a5747178c046238fbd5d55} + + +SAMP\_\-OK Map struct + +Referenced by sampInit().\hypertarget{samp_8c_68bf22a5b3f2531242f5c6d6ecf2ea1e}{ +\index{samp.c@{samp.c}!nullMap@{nullMap}} +\index{nullMap@{nullMap}!samp.c@{samp.c}} +\subsubsection[{nullMap}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Map} {\bf nullMap}}} +\label{samp_8c_68bf22a5b3f2531242f5c6d6ecf2ea1e} + + +SAMP handle + +Referenced by samp\_\-getHandlerReply(), samp\_\-getOKMap(), samp\_\-hubDeclareSubscriptions(), and sampInit().\hypertarget{samp_8c_037f00cb1101b007b4bf45e8bee1bd3e}{ +\index{samp.c@{samp.c}!numHubs@{numHubs}} +\index{numHubs@{numHubs}!samp.c@{samp.c}} +\subsubsection[{numHubs}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf numHubs}}} +\label{samp_8c_037f00cb1101b007b4bf45e8bee1bd3e} + + +HUB connection \hypertarget{samp_8c_a68efe925f0d8f29fa203c0f3747a6e2}{ +\index{samp.c@{samp.c}!OK\_\-Map@{OK\_\-Map}} +\index{OK\_\-Map@{OK\_\-Map}!samp.c@{samp.c}} +\subsubsection[{OK\_\-Map}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Map} {\bf OK\_\-Map}}} +\label{samp_8c_a68efe925f0d8f29fa203c0f3747a6e2} + + +empty Map struct + +Referenced by samp\_\-getHandlerReply(), samp\_\-receiveCall(), samp\_\-receiveNotification(), samp\_\-receiveResponse(), and sampInit().\hypertarget{samp_8c_b04b61ee02d86e15b02b861699ae7424}{ +\index{samp.c@{samp.c}!sampH@{sampH}} +\index{sampH@{sampH}!samp.c@{samp.c}} +\subsubsection[{sampH}]{\setlength{\rightskip}{0pt plus 5cm}handle\_\-t {\bf sampH}}} +\label{samp_8c_b04b61ee02d86e15b02b861699ae7424} + + +SAMP struct pointer + +Referenced by samp\_\-processHubEvent(), samp\_\-receiveCall(), and sampInit(). \ No newline at end of file diff --git a/vendor/voclient/libsamp/doc/latex/samp_8h.tex b/vendor/voclient/libsamp/doc/latex/samp_8h.tex new file mode 100644 index 00000000..954d05cb --- /dev/null +++ b/vendor/voclient/libsamp/doc/latex/samp_8h.tex @@ -0,0 +1,3583 @@ +\hypertarget{samp_8h}{ +\section{samp.h File Reference} +\label{samp_8h}\index{samp.h@{samp.h}} +} +SAMP interface include file. + + +{\tt \#include $<$xmlrpc-c/base.h$>$}\par +{\tt \#include $<$xmlrpc-c/client.h$>$}\par +{\tt \#include $<$xmlrpc-c/server.h$>$}\par +{\tt \#include $<$xmlrpc-c/server\_\-abyss.h$>$}\par +{\tt \#include $<$sys/types.h$>$}\par +{\tt \#include $<$sys/stat.h$>$}\par +{\tt \#include $<$unistd.h$>$}\par +{\tt \#include \char`\"{}xrpc.h\char`\"{}}\par +\subsection*{Data Structures} +\begin{CompactItemize} +\item +struct \hyperlink{structappMD}{appMD} +\item +struct \hyperlink{structSubs}{Subs} +\item +struct \hyperlink{structClient}{Client} +\item +struct \hyperlink{structHub}{Hub} +\item +struct \hyperlink{structSamp}{Samp} +\end{CompactItemize} +\subsection*{Defines} +\begin{CompactItemize} +\item +\hypertarget{samp_8h_6fc88d7dbc85d8d10379f58c910ce847}{ +\#define \textbf{SZ\_\-NAME}~256} +\label{samp_8h_6fc88d7dbc85d8d10379f58c910ce847} + +\item +\hypertarget{samp_8h_32108415ff44b6f7537b9516f4a84be7}{ +\#define \textbf{SZ\_\-LINE}~256} +\label{samp_8h_32108415ff44b6f7537b9516f4a84be7} + +\item +\hypertarget{samp_8h_7b6cc171ab550fcd6c34d92e010fcec3}{ +\#define \textbf{SZ\_\-SECRET}~64} +\label{samp_8h_7b6cc171ab550fcd6c34d92e010fcec3} + +\item +\hypertarget{samp_8h_3e01a6ceff717c54fca995bb444611a8}{ +\#define \textbf{SZ\_\-DESC}~8192} +\label{samp_8h_3e01a6ceff717c54fca995bb444611a8} + +\item +\hypertarget{samp_8h_76e806c1a560659f0c849d427b64644a}{ +\#define \textbf{SZ\_\-URL}~1024} +\label{samp_8h_76e806c1a560659f0c849d427b64644a} + +\item +\hypertarget{samp_8h_08329a2ecb12005e4089db9f336bde2a}{ +\#define \textbf{SZ\_\-CMD}~1024} +\label{samp_8h_08329a2ecb12005e4089db9f336bde2a} + +\item +\hypertarget{samp_8h_c9c1311707cba8abcf575d13a527bc7b}{ +\#define \textbf{SZ\_\-SBUF}~65536} +\label{samp_8h_c9c1311707cba8abcf575d13a527bc7b} + +\item +\hypertarget{samp_8h_85a4ed506c27f31c98227e3683fb4394}{ +\#define \textbf{SZ\_\-RESSTR}~1024} +\label{samp_8h_85a4ed506c27f31c98227e3683fb4394} + +\item +\hypertarget{samp_8h_3aaff003637cf49539879ebf960c7764}{ +\#define \textbf{DEF\_\-PORT}~9876} +\label{samp_8h_3aaff003637cf49539879ebf960c7764} + +\item +\hypertarget{samp_8h_53712d3c054c04a805c2a09b075a898f}{ +\#define \textbf{DEF\_\-TIMEOUT}~\char`\"{}15\char`\"{}} +\label{samp_8h_53712d3c054c04a805c2a09b075a898f} + +\item +\hypertarget{samp_8h_6e5a1caf522da4cb934712482b0aed5b}{ +\#define \textbf{MAX\_\-SAMPS}~16} +\label{samp_8h_6e5a1caf522da4cb934712482b0aed5b} + +\item +\hypertarget{samp_8h_aeadc2a66777c5ca1a67bca1bc4648c5}{ +\#define \textbf{MAX\_\-HUBS}~16} +\label{samp_8h_aeadc2a66777c5ca1a67bca1bc4648c5} + +\item +\hypertarget{samp_8h_0543164fb84dcec0c53c79671c473519}{ +\#define \textbf{MAX\_\-MDATTRS}~32} +\label{samp_8h_0543164fb84dcec0c53c79671c473519} + +\item +\hypertarget{samp_8h_4cecb71b936e9c443f548540fb7a54ff}{ +\#define \textbf{MAX\_\-SUBS}~256} +\label{samp_8h_4cecb71b936e9c443f548540fb7a54ff} + +\item +\hypertarget{samp_8h_0a8f91f93d75a07f0ae45077db45b3eb}{ +\#define \textbf{MAX\_\-CLIENTS}~32} +\label{samp_8h_0a8f91f93d75a07f0ae45077db45b3eb} + +\item +\hypertarget{samp_8h_3b94af9dcb0358f28d175d80eed98330}{ +\#define \textbf{MAX\_\-ROWS}~256} +\label{samp_8h_3b94af9dcb0358f28d175d80eed98330} + +\item +\hypertarget{samp_8h_2b30409909356bb21b32a71574cc5ed4}{ +\#define \textbf{SAMP\_\-ERR}~-1} +\label{samp_8h_2b30409909356bb21b32a71574cc5ed4} + +\item +\hypertarget{samp_8h_2aa93712e218c9a6aa47726222da2ea8}{ +\#define \textbf{SAMP\_\-PENDING}~0} +\label{samp_8h_2aa93712e218c9a6aa47726222da2ea8} + +\item +\hypertarget{samp_8h_118ac4276b5889bad5aefbf8d976dc65}{ +\#define \textbf{SAMP\_\-OK}~1} +\label{samp_8h_118ac4276b5889bad5aefbf8d976dc65} + +\item +\hypertarget{samp_8h_82bc77041ac33dba80902508e0e67cb1}{ +\#define \textbf{SAMP\_\-CBR}~0} +\label{samp_8h_82bc77041ac33dba80902508e0e67cb1} + +\item +\hypertarget{samp_8h_8c1d67de0da93f180a22f4aa0a6c791e}{ +\#define \textbf{SAMP\_\-CBV}~1} +\label{samp_8h_8c1d67de0da93f180a22f4aa0a6c791e} + +\item +\hypertarget{samp_8h_6f3ff8853aee2ab95b5b95bc6118e089}{ +\#define \textbf{SAMP\_\-SYNCH}~0} +\label{samp_8h_6f3ff8853aee2ab95b5b95bc6118e089} + +\item +\hypertarget{samp_8h_b0ce138af3ddf15f2f260970f61334aa}{ +\#define \textbf{SAMP\_\-ASYNCH}~1} +\label{samp_8h_b0ce138af3ddf15f2f260970f61334aa} + +\item +\hypertarget{samp_8h_4e57045e053a2de9ff90f33e2d5f8c96}{ +\#define \textbf{SAMP\_\-NOTIFY}~2} +\label{samp_8h_4e57045e053a2de9ff90f33e2d5f8c96} + +\item +\hypertarget{samp_8h_37bd37c1c7194b07b5c741deaa9bc067}{ +\#define \textbf{SAMP\_\-INT}~TY\_\-INT} +\label{samp_8h_37bd37c1c7194b07b5c741deaa9bc067} + +\item +\hypertarget{samp_8h_27a60dff10f0bce5fe7e901eab813b5a}{ +\#define \textbf{SAMP\_\-DOUBLE}~TY\_\-DOUBLE} +\label{samp_8h_27a60dff10f0bce5fe7e901eab813b5a} + +\item +\hypertarget{samp_8h_315222074686150aef1320e4024706cd}{ +\#define \textbf{SAMP\_\-BOOL}~TY\_\-BOOL} +\label{samp_8h_315222074686150aef1320e4024706cd} + +\item +\hypertarget{samp_8h_3f3753974db5c38ecf207e8c194e5327}{ +\#define \textbf{SAMP\_\-STRING}~TY\_\-STRING} +\label{samp_8h_3f3753974db5c38ecf207e8c194e5327} + +\item +\hypertarget{samp_8h_179ebb149a064e82a5989ec4278e5533}{ +\#define \textbf{SAMP\_\-DATETIME}~TY\_\-DATETIME} +\label{samp_8h_179ebb149a064e82a5989ec4278e5533} + +\item +\hypertarget{samp_8h_268da1193f3e31a3835123617a606a11}{ +\#define \textbf{SAMP\_\-SAMPRUCT}~TY\_\-STRUCT} +\label{samp_8h_268da1193f3e31a3835123617a606a11} + +\item +\hypertarget{samp_8h_ba4e9235f0d88ec1a557a37e499a82e7}{ +\#define \textbf{SAMP\_\-ARRAY}~TY\_\-ARRAY} +\label{samp_8h_ba4e9235f0d88ec1a557a37e499a82e7} + +\item +\hypertarget{samp_8h_725ce7161437542f8e767ef6742a7aef}{ +\#define \textbf{SAMP\_\-TRACE}~0} +\label{samp_8h_725ce7161437542f8e767ef6742a7aef} + +\item +\#define \hyperlink{samp_8h_fc367e0d449c3afa2d429eedc85407aa}{HUB\_\-SHUTDOWN}~0 +\item +\hypertarget{samp_8h_9f7120104f528bcad4d3c35451b466fa}{ +\#define \textbf{HUB\_\-REGISTER}~1} +\label{samp_8h_9f7120104f528bcad4d3c35451b466fa} + +\item +\hypertarget{samp_8h_87abcce3ae8ebd84eaf49765275737cd}{ +\#define \textbf{HUB\_\-UNREGISTER}~2} +\label{samp_8h_87abcce3ae8ebd84eaf49765275737cd} + +\item +\hypertarget{samp_8h_dacba3969403cc030f9942696d48f226}{ +\#define \textbf{HUB\_\-SUBSCRIPTIONS}~3} +\label{samp_8h_dacba3969403cc030f9942696d48f226} + +\item +\hypertarget{samp_8h_3deb0e45988e39beaad0b05ed31d958b}{ +\#define \textbf{HUB\_\-METADATA}~4} +\label{samp_8h_3deb0e45988e39beaad0b05ed31d958b} + +\item +\hypertarget{samp_8h_5aa908cb222be1b5df868c96a440236c}{ +\#define \textbf{HUB\_\-DISCONNECT}~5} +\label{samp_8h_5aa908cb222be1b5df868c96a440236c} + +\item +\hypertarget{samp_8h_2e76b1116a74dcd3fbc695ebaa01bd3d}{ +\#define \textbf{LEN\_\-DESC}~32768} +\label{samp_8h_2e76b1116a74dcd3fbc695ebaa01bd3d} + +\item +\hypertarget{samp_8h_c6afabdc09a49a433ee19d8a9486056d}{ +\#define \textbf{min}(a, b)~(a$<$b?a:b)} +\label{samp_8h_c6afabdc09a49a433ee19d8a9486056d} + +\item +\hypertarget{samp_8h_ffe776513b24d84b39af8ab0930fef7f}{ +\#define \textbf{max}(a, b)~(a$>$b?a:b)} +\label{samp_8h_ffe776513b24d84b39af8ab0930fef7f} + +\item +\hypertarget{samp_8h_400c6ad9a4514ac728ef6f26c41e26df}{ +\#define \textbf{MSG\_\-SYNC}~0} +\label{samp_8h_400c6ad9a4514ac728ef6f26c41e26df} + +\item +\hypertarget{samp_8h_f38b71e9d650543379f59e8f7ade60c8}{ +\#define \textbf{MSG\_\-ASYNC}~1} +\label{samp_8h_f38b71e9d650543379f59e8f7ade60c8} + +\item +\hypertarget{samp_8h_ee5730f808625a70be4589312bd6c9ab}{ +\#define \textbf{MSG\_\-NOTIFY}~2} +\label{samp_8h_ee5730f808625a70be4589312bd6c9ab} + +\item +\hypertarget{samp_8h_5ce6908d24bcc91b57bc9ac9923a3855}{ +\#define \textbf{DEF\_\-CALLMODE}~MSG\_\-ASYNC} +\label{samp_8h_5ce6908d24bcc91b57bc9ac9923a3855} + +\end{CompactItemize} +\subsection*{Typedefs} +\begin{CompactItemize} +\item +\hypertarget{samp_8h_0e421d328f66b7f783a4c746afc1d017}{ +typedef long \textbf{handle\_\-t}} +\label{samp_8h_0e421d328f66b7f783a4c746afc1d017} + +\item +typedef int \hyperlink{samp_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} +\item +typedef int \hyperlink{samp_8h_39f9d235896a8fd920f319105eb82791}{List} +\item +typedef int \hyperlink{samp_8h_eb3d03dd240212c044285bdd522e3b2b}{Msg} +\item +typedef int \hyperlink{samp_8h_4c5a7aff173725461e76e5f0183d7ed8}{Param} +\item +typedef char $\ast$ \hyperlink{samp_8h_2efe6d463d80744789f228f5dc4baa39}{String} +\item +\hypertarget{samp_8h_cc13f9a2430a2e5b4d08f22a005c28ca}{ +typedef struct \hyperlink{structappMD}{appMD} $\ast$ \textbf{appMDP}} +\label{samp_8h_cc13f9a2430a2e5b4d08f22a005c28ca} + +\item +\hypertarget{samp_8h_5f6c3b3319ba8bd60a15bac1b8fe9a96}{ +typedef struct \hyperlink{structSubs}{Subs} $\ast$ \textbf{SubsP}} +\label{samp_8h_5f6c3b3319ba8bd60a15bac1b8fe9a96} + +\item +\hypertarget{samp_8h_46ebb9354eb637730c6acd2818807321}{ +typedef struct \hyperlink{structClient}{Client} $\ast$ \textbf{ClientP}} +\label{samp_8h_46ebb9354eb637730c6acd2818807321} + +\item +\hypertarget{samp_8h_cf8156b03ce4e66cd90203b1038112a8}{ +typedef struct \hyperlink{structHub}{Hub} $\ast$ \textbf{HubP}} +\label{samp_8h_cf8156b03ce4e66cd90203b1038112a8} + +\item +\hypertarget{samp_8h_159006987ca77a172c19bd254cb6f1c5}{ +typedef struct \hyperlink{structSamp}{Samp} $\ast$ \textbf{SampP}} +\label{samp_8h_159006987ca77a172c19bd254cb6f1c5} + +\end{CompactItemize} +\subsection*{Functions} +\begin{CompactItemize} +\item +handle\_\-t \hyperlink{samp_8h_30f39c72c3783055faa82ad3860f3d1d}{sampInit} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} appName, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} description) +\begin{CompactList}\small\item\em Initialize the SAMP interface. \item\end{CompactList}\item +void \hyperlink{samp_8h_2e77115e730e95b31d897b8c50999b74}{samp\_\-Metadata} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} field, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} value) +\begin{CompactList}\small\item\em Set a metadata field value for the application. \item\end{CompactList}\item +void \hyperlink{samp_8h_c6b76655d73825acdacfac8b5a1139ee}{samp\_\-Subscribe} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, void $\ast$func) +\begin{CompactList}\small\item\em Subscribe to a given mtype. \item\end{CompactList}\item +void \hyperlink{samp_8h_b3fded97bbbf3751c4916543959f16a5}{samp\_\-Unsubscribe} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype) +\begin{CompactList}\small\item\em Unsubscribe to a given mtype. \item\end{CompactList}\item +int \hyperlink{samp_8h_8e18ae12df031094ace47863f93b3634}{sampStartup} (handle\_\-t handle) +\begin{CompactList}\small\item\em Startup the SAMP interface to send/receive messages. \item\end{CompactList}\item +int \hyperlink{samp_8h_65908d088c8b917d10db38c147590ad9}{sampShutdown} (handle\_\-t handle) +\begin{CompactList}\small\item\em Shut down the active SAMP interface. \item\end{CompactList}\item +int \hyperlink{samp_8h_124214f79e99619b377d98ed2fd93eb9}{sampDebug} (handle\_\-t handle, int value) +\begin{CompactList}\small\item\em Set interface debug level. \item\end{CompactList}\item +int \hyperlink{samp_8h_c0c812e5d3f2c9ee6c54067e4c81b3dd}{sampVerbose} (handle\_\-t handle, int value) +\begin{CompactList}\small\item\em Set interface debug level. \item\end{CompactList}\item +void \hyperlink{samp_8h_123413db26ad50a84bd41863af5deae5}{sampClose} (handle\_\-t handle) +\begin{CompactList}\small\item\em Close the SAMP interface and free resources. \item\end{CompactList}\item +int \hyperlink{samp_8h_14a1f14f60ac385c758346aed0f0272b}{samp\_\-hubActive} (handle\_\-t handle) +\begin{CompactList}\small\item\em Determine if the \hyperlink{structHub}{Hub} is active (i.e. connected). \item\end{CompactList}\item +\hypertarget{samp_8h_d4ecb0b92b749647d1c3af8a1d11d5d4}{ +int \textbf{samp\_\-setOpt} (handle\_\-t handle, char $\ast$opt, int value)} +\label{samp_8h_d4ecb0b92b749647d1c3af8a1d11d5d4} + +\item +void \hyperlink{samp_8h_1d00dc78292cfbc01262ef65ab055063}{samp\_\-setSyncMode} (handle\_\-t handle) +\begin{CompactList}\small\item\em Set the calling mode to use synchronous messaging. \item\end{CompactList}\item +void \hyperlink{samp_8h_a9aef12dd82bfd38a2382a4ac88c54af}{samp\_\-setASyncMode} (handle\_\-t handle) +\begin{CompactList}\small\item\em Set the calling mode to use asynchronous messaging. \item\end{CompactList}\item +void \hyperlink{samp_8h_9056a8601300892f918835259c7fdb3b}{samp\_\-setNotifyMode} (handle\_\-t handle) +\begin{CompactList}\small\item\em Set the calling mode to use notification messaging. \item\end{CompactList}\item +void \hyperlink{samp_8h_68b51d70127bbff10fd30396e40a482d}{samp\_\-setMsgMode} (handle\_\-t handle, int mode) +\begin{CompactList}\small\item\em Set the message pattern to the specified mode. \item\end{CompactList}\item +void \hyperlink{samp_8h_d4c1514e94c9ef511cfcd27004c38c4d}{samp\_\-setCallByRef} (handle\_\-t handle) +\begin{CompactList}\small\item\em Have interface call user handlers by reference. \item\end{CompactList}\item +void \hyperlink{samp_8h_fc27715ec9a5cb60cf0b5415eb7f9a48}{samp\_\-setCallMode} (handle\_\-t handle, int mode) +\begin{CompactList}\small\item\em Set the default calling mode (synch or asynch). \item\end{CompactList}\item +void \hyperlink{samp_8h_a3c0bdb4c512357dbc53b0ad7a7d5b01}{samp\_\-setReplyCallback} (handle\_\-t handle, int $\ast$func) +\begin{CompactList}\small\item\em Set the Reply callback. samp\_\-setReplyCallback (handle\_\-t handle, int $\ast$func). \item\end{CompactList}\item +void \hyperlink{samp_8h_3db66f28546459327665f8491ea97f4d}{samp\_\-setResponseCallback} (handle\_\-t handle, int $\ast$func) +\begin{CompactList}\small\item\em Set the Response callback. samp\_\-setResponseCallback (handle\_\-t handle, int $\ast$func). \item\end{CompactList}\item +void \hyperlink{samp_8h_e11a97c262ab5ab4438eca6c60c0d8cf}{samp\_\-setTimeout} (handle\_\-t handle, int timeout) +\begin{CompactList}\small\item\em Set the message timeout value (in seconds). \item\end{CompactList}\item +\hypertarget{samp_8h_7731da5bec549e7554d1bdc11b13eaf6}{ +void \textbf{samp\_\-setAppName} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} name)} +\label{samp_8h_7731da5bec549e7554d1bdc11b13eaf6} + +\item +void \hyperlink{samp_8h_8fbfdc550ede5d52840300ab33639c49}{samp\_\-setAppVersion} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} version) +\begin{CompactList}\small\item\em Set the application name string. \item\end{CompactList}\item +void \hyperlink{samp_8h_96851f1c15e4baf67949d86d15f2568d}{samp\_\-defaultReplyHandler} (handle\_\-t handle) +\begin{CompactList}\small\item\em The interface's default Reply handler. \item\end{CompactList}\item +\hypertarget{samp_8h_cd506ac12f25f64ada7c9859af3f857f}{ +void \textbf{samp\_\-deaultfResponseHandler} (handle\_\-t handle)} +\label{samp_8h_cd506ac12f25f64ada7c9859af3f857f} + +\item +int \hyperlink{samp_8h_d47754f3b9fceff4d3019821519432b4}{samp\_\-replyStatus} (handle\_\-t handle) +\begin{CompactList}\small\item\em Reply with the status of the last message sent. \item\end{CompactList}\item +int \hyperlink{samp_8h_ff4d125fc9594be25984989fad2fd3c8}{samp\_\-mapClients} (handle\_\-t handle) +\item +int \hyperlink{samp_8h_1e494e73abe2ddfd946fb39e84da42a9}{samp\_\-listClients} (handle\_\-t handle) +\item +\hypertarget{samp_8h_61e09b672e5f610dae0f242ea8256328}{ +char $\ast$ \textbf{samp\_\-getClients} (handle\_\-t handle)} +\label{samp_8h_61e09b672e5f610dae0f242ea8256328} + +\item +int \hyperlink{samp_8h_8a2111bbe4c88cef635e3bf67e899563}{samp\_\-addClient} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} name, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} id) +\item +int \hyperlink{samp_8h_e30e492f306a40f853a454faf60ab479}{samp\_\-removeClient} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} id) +\item +\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} \hyperlink{samp_8h_cbf9b52550a9ab0b3515c32e692c46fb}{samp\_\-getOKMap} (void) +\item +\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} \hyperlink{samp_8h_27baec44edb57136951b5f86ae893246}{samp\_\-getNullMap} (void) +\item +int \hyperlink{samp_8h_aef9c2f86c7e4f49fe3df343ef06f3ba}{samp\_\-Register} (handle\_\-t handle) +\begin{CompactList}\small\item\em Register with the \hyperlink{structHub}{Hub} using the currently stored metadata. \item\end{CompactList}\item +int \hyperlink{samp_8h_5e3a44429f332694cc2cedc2e38856ce}{samp\_\-UnRegister} (handle\_\-t handle) +\begin{CompactList}\small\item\em Un-Register from the hub. \item\end{CompactList}\item +int \hyperlink{samp_8h_94cdccbcfa524fa515de77544b6c6eaa}{samp\_\-DeclareMetadata} (handle\_\-t handle) +\begin{CompactList}\small\item\em (Re)Declare all of our metadata. \item\end{CompactList}\item +int \hyperlink{samp_8h_7688cbf8ef852483c077be96151763a6}{samp\_\-Ping} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} appName) +\begin{CompactList}\small\item\em Ping the hub/app to see if it is alive (returns $>$0). \item\end{CompactList}\item +\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} \hyperlink{samp_8h_636e11796b78ae9881e7c61df8516d2a}{samp\_\-GetMetadata} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} pubId) +\begin{CompactList}\small\item\em Get the metadata for a specified app. \item\end{CompactList}\item +int \hyperlink{samp_8h_ef695801c121c6191d3af4574569ab8c}{samp\_\-DeclareSubscriptions} (handle\_\-t handle) +\begin{CompactList}\small\item\em Declare the messages we're interested in. \item\end{CompactList}\item +\hypertarget{samp_8h_c4f65b6315c8bd7380176d2b97462354}{ +\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} \textbf{samp\_\-GetSubscriptions} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} pubId)} +\label{samp_8h_c4f65b6315c8bd7380176d2b97462354} + +\item +\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} \hyperlink{samp_8h_2c532e076dd6446f079691ed02197a57}{samp\_\-GetRegisteredClients} (handle\_\-t handle) +\begin{CompactList}\small\item\em Get public-ids of the registered clients. \item\end{CompactList}\item +\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} \hyperlink{samp_8h_d28a9085ab8cacbe978e300ac99f6ae5}{samp\_\-GetSubscribedClients} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype) +\begin{CompactList}\small\item\em Get clients matching the mtype subscription. \item\end{CompactList}\item +int \hyperlink{samp_8h_45c2023312cd2adfa40feb2eb8a3e143}{samp\_\-tableLoadVOTable} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} url, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} tableId, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} name) +\begin{CompactList}\small\item\em Tell an app to load a VOTable. \item\end{CompactList}\item +int \hyperlink{samp_8h_6b950e53c7fdf481a13c8a2ec353dca1}{samp\_\-tableLoadFITS} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} url, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} tableId, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} name) +\begin{CompactList}\small\item\em Tell an app to load a FITS table. \item\end{CompactList}\item +int \hyperlink{samp_8h_2ec386ef5bd7dee20ffa1fead0b0210a}{samp\_\-imageLoadFITS} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} url, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} imageId, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} name) +\begin{CompactList}\small\item\em Tell an app to load a FITS image. \item\end{CompactList}\item +int \hyperlink{samp_8h_0503d3ee247a6a962a2a8da672261ab7}{samp\_\-tableHighlightRow} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} tableId, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} url, int row) +\begin{CompactList}\small\item\em Tell an app to highlight a table row. \item\end{CompactList}\item +int \hyperlink{samp_8h_a410ef908863f7c5b2c99844ebb73d35}{samp\_\-tableSelectRowList} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} tableId, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} url, int rows\mbox{[}$\,$\mbox{]}, int nrows) +\begin{CompactList}\small\item\em Tell an app to select a list of table rows. \item\end{CompactList}\item +int \hyperlink{samp_8h_0651eec8ddc8707bb8fbc4dfdcfff5e2}{samp\_\-coordPointAtSky} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, float ra, float dec) +\begin{CompactList}\small\item\em Tell an app to point at an RA/Dec coordinate. \item\end{CompactList}\item +int \hyperlink{samp_8h_4869a1bb04a96514f153dc5bfbed8e6e}{samp\_\-specLoadSSAGeneric} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} url, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} meta, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} spectrumId, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} name) +\begin{CompactList}\small\item\em Load a generic spectrum from an SSA service. \item\end{CompactList}\item +int \hyperlink{samp_8h_be012673358bfd254e2c6ad9f6e92240}{samp\_\-cmdExec} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} cmd) +\begin{CompactList}\small\item\em Execute a command in a remote application. \item\end{CompactList}\item +char $\ast$ \hyperlink{samp_8h_ba313c7608a7658c673065c83113ec5b}{samp\_\-envGet} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} name) +\begin{CompactList}\small\item\em Get an environment variable in a remote application. \item\end{CompactList}\item +int \hyperlink{samp_8h_e842347910a3cfd746def74b0fd564aa}{samp\_\-envSet} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} name, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} value) +\begin{CompactList}\small\item\em Set an environment variable in a remote application. \item\end{CompactList}\item +char $\ast$ \hyperlink{samp_8h_4c75de6ddcffde6e3dde7beea68de81c}{samp\_\-paramGet} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} name) +\begin{CompactList}\small\item\em Get a parameter variable in a remote application. \item\end{CompactList}\item +int \hyperlink{samp_8h_7a5c9f092b57dfb3206c8decc8558fd3}{samp\_\-paramSet} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} name, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} value) +\begin{CompactList}\small\item\em Set an parameter variable in a remote application. \item\end{CompactList}\item +int \hyperlink{samp_8h_abeaa1ac9d09a666a9fa34a7d274483d}{samp\_\-bibLoad} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} bibcode) +\begin{CompactList}\small\item\em Exchange a bibcode. \item\end{CompactList}\item +int \hyperlink{samp_8h_a0bb33d232fcb52aaa470d1f1b1a89d7}{samp\_\-resourceLoad} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} type, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} name, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} resMap) +\begin{CompactList}\small\item\em Exchange a resource list. \item\end{CompactList}\item +int \hyperlink{samp_8h_5837826e5b4e86b2dda0892c48b96faf}{samp\_\-sendGeneric} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} args\mbox{[}$\,$\mbox{]}) +\begin{CompactList}\small\item\em Send a geenric message. \item\end{CompactList}\item +int \hyperlink{samp_8h_4607721d55904450d4066c360d3dcddd}{samp\_\-sendMsg} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recip, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg) +\begin{CompactList}\small\item\em Send the specified message. \item\end{CompactList}\item +void \hyperlink{samp_8h_c73788ae17493c4042948f6b861ddd74}{samp\_\-notify} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recipId, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg) +\begin{CompactList}\small\item\em Make a notify() call to the \hyperlink{structHub}{Hub}. \item\end{CompactList}\item +\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} \hyperlink{samp_8h_a046d61f43fce831a71621f98b6d9741}{samp\_\-notifyAll} (handle\_\-t handle, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg) +\begin{CompactList}\small\item\em Make a notifyAll() call to the \hyperlink{structHub}{Hub}. \item\end{CompactList}\item +\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} \hyperlink{samp_8h_919cca4cfc557e0c05914b805401fbd3}{samp\_\-call} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recipId, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} tag, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg) +\begin{CompactList}\small\item\em Make a call() call to the \hyperlink{structHub}{Hub}. \item\end{CompactList}\item +int \hyperlink{samp_8h_2cbf26c662884a4ae9587f7b9f4113a6}{samp\_\-callAll} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-tag, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg) +\begin{CompactList}\small\item\em Make a callAll() call to the \hyperlink{structHub}{Hub}. \item\end{CompactList}\item +int \hyperlink{samp_8h_c69c39e8ee091c006289b486dee10711}{samp\_\-callAndWait} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} recipId, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-tag, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg) +\begin{CompactList}\small\item\em Make a callAndWait() call to the \hyperlink{structHub}{Hub}. \item\end{CompactList}\item +int \hyperlink{samp_8h_89fc488147fe2e08b4f3c044c7079962}{samp\_\-Reply} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} resp) +\begin{CompactList}\small\item\em Reply to a message. \item\end{CompactList}\item +\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} \hyperlink{samp_8h_0a61726448d9b1a026b20ff6beead44e}{samp\_\-clientName} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} pubId) +\begin{CompactList}\small\item\em Get the \hyperlink{structClient}{Client} name from a pubic-id. \item\end{CompactList}\item +int \hyperlink{samp_8h_3c026895e4d28567eb63c3b9cc16cd40}{samp\_\-setErr} (handle\_\-t handle, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} resp) +\begin{CompactList}\small\item\em Set the error response string. \item\end{CompactList}\item +\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} \hyperlink{samp_8h_fd8a4da020cd2fedaf70ae8af0b6a1c8}{samp\_\-getErr} (handle\_\-t handle) +\begin{CompactList}\small\item\em Get the error response string. \item\end{CompactList}\item +int \hyperlink{samp_8h_59f85e0fce4c9ae7121c98e137d3f743}{samp\_\-receiveCall} (void $\ast$data) +\begin{CompactList}\small\item\em test.echo method \item\end{CompactList}\item +int \hyperlink{samp_8h_03be7cc9e154a6ccdd499286df640936}{samp\_\-receiveNotification} (void $\ast$data) +\begin{CompactList}\small\item\em receiveNotification () client method. \item\end{CompactList}\item +int \hyperlink{samp_8h_754b50ad59145c7fd1e4c8f4277f11e4}{samp\_\-receiveResponse} (void $\ast$data) +\begin{CompactList}\small\item\em receiveResponse () client method. \item\end{CompactList}\item +void \hyperlink{samp_8h_1cd88b9e964d61403d6aad89dddce591}{samp\_\-setHandlerReply} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} resp) +\begin{CompactList}\small\item\em Set the \hyperlink{structSamp}{Samp} Handler reply map. \item\end{CompactList}\item +\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} \hyperlink{samp_8h_0a0d9e41bebb554869f099dcf142a7bf}{samp\_\-getHandlerReply} (void) +\begin{CompactList}\small\item\em Get the \hyperlink{structSamp}{Samp} Handler reply map. \item\end{CompactList}\item +void \hyperlink{samp_8h_b969017f97d850b092bde60a2d445a2b}{samp\_\-setUserHandler} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, void $\ast$func) +\begin{CompactList}\small\item\em Set the user-interface handler for the mtype. \item\end{CompactList}\item +void \hyperlink{samp_8h_8b83cf8a75c16c45c547be68f0bf9f64}{samp\_\-setSampHandler} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, void $\ast$func) +\begin{CompactList}\small\item\em Set the SAMP interface handler for the mtype. \item\end{CompactList}\item +void $\ast$ \hyperlink{samp_8h_ce2ea31b9bd82db4c5040ffd0511bd8b}{samp\_\-getUserHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype) +\begin{CompactList}\small\item\em Get the User handler for the named mtype. \item\end{CompactList}\item +void $\ast$ \hyperlink{samp_8h_f295f9e7746644f834ac54b1deb95b4c}{samp\_\-getSampHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype) +\begin{CompactList}\small\item\em Get the Samphandler for the named mtype. \item\end{CompactList}\item +void \hyperlink{samp_8h_e09217f0e615e01dfcffbdebda2516e8}{samp\_\-execUserHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} params) +\begin{CompactList}\small\item\em Execute the user-defined handler for the mtype. \item\end{CompactList}\item +\hypertarget{samp_8h_1b7812ba89eebe15ad24f36a3d439a0a}{ +int \textbf{samp\_\-genericMsgHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map)} +\label{samp_8h_1b7812ba89eebe15ad24f36a3d439a0a} + +\item +int \hyperlink{samp_8h_16d8b8822d169107b8702ae753797923}{samp\_\-PingHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Is app alive and responding to messages? \item\end{CompactList}\item +int \hyperlink{samp_8h_2e342b672e77e012cc98a6f5506a44be}{samp\_\-StatusHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Return status of the task. \item\end{CompactList}\item +int \hyperlink{samp_8h_9bd8036dd65dc4f874f39568b691a123}{samp\_\-imLoadHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Handle an image.load.fits message. \item\end{CompactList}\item +int \hyperlink{samp_8h_26f96dc6cbf72283e2ee9cb8b4619ed3}{samp\_\-tbLoadHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Handle a generic table.load.$\ast$ message. \item\end{CompactList}\item +int \hyperlink{samp_8h_750c0fee0c7a99e135299c08751f288c}{samp\_\-tbLoadFITSHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Handle a generic table.load.fits message. \item\end{CompactList}\item +int \hyperlink{samp_8h_144ec2329355d91022d5ea38736c0093}{samp\_\-tbLoadVOTHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Handle a generic table.load.votable message. \item\end{CompactList}\item +int \hyperlink{samp_8h_d9184eb45a5bc93b5205fd5b1c6ef688}{samp\_\-tbHighlightHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Handle a table.highlight.row message. \item\end{CompactList}\item +int \hyperlink{samp_8h_98d68d7091c0b7790631bb53e0ace656}{samp\_\-tbSelectHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Handle a table.select.rowList message. \item\end{CompactList}\item +int \hyperlink{samp_8h_3f5632858a2b09759ffe98cd2e183cfb}{samp\_\-pointAtHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Handle a coord.pointAt.sky message. \item\end{CompactList}\item +int \hyperlink{samp_8h_bc319b97b3dbea29bd79c4f723db5438}{samp\_\-specLoadHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Handle a spectrum.load.$\ast$ message. \item\end{CompactList}\item +int \hyperlink{samp_8h_dd2bca8fa3bf3b4ebbf449edc6b65d85}{samp\_\-specSSAHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Handle a spectrum.load.ssa-generic message. \item\end{CompactList}\item +int \hyperlink{samp_8h_c57d19afc6fa0b4bc9c7a0fd50d0f54b}{samp\_\-cmdExecHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Handle a client.cmd.exec message. \item\end{CompactList}\item +int \hyperlink{samp_8h_e25a92f57babd71d43653d7fcb81025c}{samp\_\-envGetHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Handle a client.env.set message. \item\end{CompactList}\item +int \hyperlink{samp_8h_0910e6b9d11cdd3111c1f18450de394a}{samp\_\-envSetHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Handle a client.env.set message. \item\end{CompactList}\item +int \hyperlink{samp_8h_659c272ce881662c1826a04728dc06f6}{samp\_\-paramGetHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Handle a client.param.set message. \item\end{CompactList}\item +int \hyperlink{samp_8h_071aa9e32f2e94d5b667e87cf65d2bdf}{samp\_\-paramSetHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Handle a client.param.set message. \item\end{CompactList}\item +int \hyperlink{samp_8h_262bf09278c61b60b5189fef7f26d26b}{samp\_\-bibcodeHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em Handle a bibcode.load message. \item\end{CompactList}\item +int \hyperlink{samp_8h_c0bf7cf7fea362c0c82ad7bc3f267c48}{samp\_\-resLoadHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em handle a voresource.loadlist message \item\end{CompactList}\item +int \hyperlink{samp_8h_287569451dc1bf59d1f9f6d13b56716d}{samp\_\-resConeHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em handle a voresource.loadlist message \item\end{CompactList}\item +int \hyperlink{samp_8h_8b2300222d7b11f144eb4385412e69a5}{samp\_\-resSiapHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em handle a voresource.loadlist message \item\end{CompactList}\item +int \hyperlink{samp_8h_866578a01c3b762435823b1b11869c42}{samp\_\-resSsapHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em handle a voresource.loadlist message \item\end{CompactList}\item +int \hyperlink{samp_8h_ad42ca17cbaf23012ad497559ea45e4c}{samp\_\-resTapHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em handle a voresource.loadlist message \item\end{CompactList}\item +int \hyperlink{samp_8h_fa207ebdc587ba5eeab60fbf79b635d4}{samp\_\-resVOSpaceHandler} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} msg\_\-map) +\begin{CompactList}\small\item\em handle a voresource.loadlist message \item\end{CompactList}\item +\hypertarget{samp_8h_e743048f5b1f903496b2a8a2e9666367}{ +void \textbf{samp\_\-printMessage} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} sender, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} msg\_\-id, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} params)} +\label{samp_8h_e743048f5b1f903496b2a8a2e9666367} + +\item +void \hyperlink{samp_8h_a8a947c24f2c9333adf4e5d7fa11d134}{samp\_\-printMap} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} name, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map) +\item +int \hyperlink{samp_8h_5361571754505eaefdf5739cd3e9519e}{samp\_\-nullResponse} (void $\ast$data) +\item +\hypertarget{samp_8h_cc687f745f400b41c9af4f6419bf9bf8}{ +int \textbf{samp\_\-testEcho} (void $\ast$data)} +\label{samp_8h_cc687f745f400b41c9af4f6419bf9bf8} + +\item +handle\_\-t \hyperlink{samp_8h_ef92557afa5ed6731ac0a0a1ba6dfd7c}{samp\_\-hubOpen} (\hyperlink{structSamp}{Samp} $\ast$samp) +\begin{CompactList}\small\item\em Discover and open a connection to the SAMP \hyperlink{structHub}{Hub}. \item\end{CompactList}\item +int \hyperlink{samp_8h_39a580ced499e50d39d327f7709834e7}{samp\_\-hubClose} (handle\_\-t handle) +\begin{CompactList}\small\item\em Close a connection to the \hyperlink{structHub}{Hub}. \item\end{CompactList}\item +\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} \hyperlink{samp_8h_d0343ad884d5a958d7d91928ad06a369}{samp\_\-getAvailableHubs} (handle\_\-t handle) +\begin{CompactList}\small\item\em Get a list of available Hubs. \item\end{CompactList}\item +\hypertarget{samp_8h_4b4292d136520c3d276d655e2093dd30}{ +char $\ast$ \textbf{samp\_\-getActiveHubName} (handle\_\-t handle)} +\label{samp_8h_4b4292d136520c3d276d655e2093dd30} + +\item +\hypertarget{samp_8h_bf266e81b16f556e2f42cad5a2eb9157}{ +int \textbf{samp\_\-getActiveHub} (handle\_\-t handle)} +\label{samp_8h_bf266e81b16f556e2f42cad5a2eb9157} + +\item +int \hyperlink{samp_8h_a927eb8dcb67e245aeb5a8a4feeb6230}{samp\_\-hubRunning} (void) +\item +\hypertarget{samp_8h_12c4307b544d66d57d54cbc4c031dd35}{ +int \textbf{samp\_\-hubInit} (handle\_\-t samp, char $\ast$appName, char $\ast$descr)} +\label{samp_8h_12c4307b544d66d57d54cbc4c031dd35} + +\item +int \hyperlink{samp_8h_265b5d07cce485a6979fe5f4a2217624}{samp\_\-processHubEvent} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} params) +\begin{CompactList}\small\item\em Determine the type of \hyperlink{structHub}{Hub} event mtype. \item\end{CompactList}\item +int \hyperlink{samp_8h_a48b9a99f22537127df46a94dfa9ae4a}{samp\_\-hubEvent} (\hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype) +\begin{CompactList}\small\item\em Determine the type of \hyperlink{structHub}{Hub} event mtype. \item\end{CompactList}\item +int \hyperlink{samp_8h_77a14721e2373c805b58f69a018ea69c}{samp\_\-hubRegister} (\hyperlink{structHub}{Hub} $\ast$\hyperlink{sampHub_8c_d702b07240de0e0cf9e4b781a38317ad}{hub}) +\begin{CompactList}\small\item\em Send a Register message to the \hyperlink{structHub}{Hub}. \item\end{CompactList}\item +int \hyperlink{samp_8h_b0c37311ca30e1fdadfdd1fd16ff3ab4}{samp\_\-hubUnRegister} (\hyperlink{structHub}{Hub} $\ast$\hyperlink{sampHub_8c_d702b07240de0e0cf9e4b781a38317ad}{hub}) +\begin{CompactList}\small\item\em Send a UnRegister message to the \hyperlink{structHub}{Hub}. \item\end{CompactList}\item +int \hyperlink{samp_8h_6c7b8a8ff1f3c2435d153bc08da87dce}{samp\_\-hubSendShutdown} (\hyperlink{structHub}{Hub} $\ast$\hyperlink{sampHub_8c_d702b07240de0e0cf9e4b781a38317ad}{hub}) +\begin{CompactList}\small\item\em Send a samp.app.event.shutdown message to the \hyperlink{structHub}{Hub}. \item\end{CompactList}\item +int \hyperlink{samp_8h_fc0bfbd699ab2cbce2f755a0506ca6dc}{samp\_\-hubSetXmlrpcCallback} (\hyperlink{structHub}{Hub} $\ast$\hyperlink{sampHub_8c_d702b07240de0e0cf9e4b781a38317ad}{hub}) +\begin{CompactList}\small\item\em Set the client callback and send to \hyperlink{structHub}{Hub}. \item\end{CompactList}\item +int \hyperlink{samp_8h_155739318fa72883a3e32fccf8a6d5c9}{samp\_\-hubPing} (\hyperlink{structHub}{Hub} $\ast$\hyperlink{sampHub_8c_d702b07240de0e0cf9e4b781a38317ad}{hub}) +\begin{CompactList}\small\item\em Ping the \hyperlink{structHub}{Hub} to see if it is alive. \item\end{CompactList}\item +int \hyperlink{samp_8h_bf1ae8a1c9c8cf520a22e6ea4d815712}{samp\_\-hubDeclareMetadata} (\hyperlink{structHub}{Hub} $\ast$\hyperlink{sampHub_8c_d702b07240de0e0cf9e4b781a38317ad}{hub}) +\begin{CompactList}\small\item\em Declare \char`\"{}standard\char`\"{} metadata to the \hyperlink{structHub}{Hub}. \item\end{CompactList}\item +int \hyperlink{samp_8h_a6c0f67a76bd1f27898a66fe26b53fdd}{samp\_\-hubDeclareSubscriptions} (\hyperlink{structHub}{Hub} $\ast$\hyperlink{sampHub_8c_d702b07240de0e0cf9e4b781a38317ad}{hub}) +\begin{CompactList}\small\item\em Declare mtype subscriptions to the \hyperlink{structHub}{Hub}. \item\end{CompactList}\item +handle\_\-t \hyperlink{samp_8h_cdc925da798ee7a1ce30427d47812bd2}{samp\_\-newList} () +\begin{CompactList}\small\item\em Create a new List object. \item\end{CompactList}\item +void \hyperlink{samp_8h_b162ae9b9f98da80f6bb5c34b5cbcbf6}{samp\_\-freeList} (\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} list) +\begin{CompactList}\small\item\em Free the given List object. \item\end{CompactList}\item +int \hyperlink{samp_8h_c260afb0cbf19b427e3eba96a2341e52}{samp\_\-listLen} (\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} list) +\begin{CompactList}\small\item\em Get number of elements in a List. \item\end{CompactList}\item +void \hyperlink{samp_8h_5b69180b036e58528c98b1cf5a42825a}{samp\_\-setStringInList} (\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} list, char $\ast$value) +\begin{CompactList}\small\item\em Set a string in a List (append). \item\end{CompactList}\item +void \hyperlink{samp_8h_ea188bb711f3b5549d11204b0ff2da08}{samp\_\-setMapInList} (\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} list, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map) +\begin{CompactList}\small\item\em Set a Map in a List (append). \item\end{CompactList}\item +void \hyperlink{samp_8h_0ff97d44e62b7c88a046a29324552400}{samp\_\-setListInList} (\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} list1, \hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} list2) +\begin{CompactList}\small\item\em Set a List in another List (append). \item\end{CompactList}\item +void \hyperlink{samp_8h_2d8a8a26d7284bb211a933895cddd29c}{samp\_\-setIntInList} (\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} list, int value) +\begin{CompactList}\small\item\em Set an Int in a List (append). \item\end{CompactList}\item +void \hyperlink{samp_8h_041a551aff57ca03f3ff72a9803e2b58}{samp\_\-setFloatInList} (\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} list, float value) +\begin{CompactList}\small\item\em Set a Float in a List (append). \item\end{CompactList}\item +char $\ast$ \hyperlink{samp_8h_b101c5b1175490474e41ac9060bdaabf}{samp\_\-getStringFromList} (\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} list, int index) +\begin{CompactList}\small\item\em Get a string from the List. \item\end{CompactList}\item +\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} \hyperlink{samp_8h_33ca96ee3a8e7d26356c7b66f469da74}{samp\_\-getMapFromList} (\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} list, int index) +\begin{CompactList}\small\item\em Get a Map from the List. \item\end{CompactList}\item +\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} \hyperlink{samp_8h_b74e90fdfe79b1c4f7668fdb28d041a1}{samp\_\-getListFromList} (\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} list, int index) +\begin{CompactList}\small\item\em Get a List from the List. \item\end{CompactList}\item +\hypertarget{samp_8h_1174e001b2d16ed0aa1b317cfc883af1}{ +int \textbf{samp\_\-getIntFromList} (\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} list, int index)} +\label{samp_8h_1174e001b2d16ed0aa1b317cfc883af1} + +\item +float \hyperlink{samp_8h_cf9b570dd76203d2299ed7bdba048bb9}{samp\_\-getFloatFromList} (\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} list, int index) +\begin{CompactList}\small\item\em Get a Float from the List. \item\end{CompactList}\item +handle\_\-t \hyperlink{samp_8h_d88b5d5e9014deba8071f7defd220dbb}{samp\_\-newMap} (void) +\begin{CompactList}\small\item\em Create a new Map object. \item\end{CompactList}\item +void \hyperlink{samp_8h_fe80438de542c6657d623993360b37d1}{samp\_\-freeMap} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map) +\begin{CompactList}\small\item\em Free the given Map object. \item\end{CompactList}\item +\hypertarget{samp_8h_1c99f7146ad3acd3e381a02d5df1234f}{ +int \textbf{samp\_\-getMapSize} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map)} +\label{samp_8h_1c99f7146ad3acd3e381a02d5df1234f} + +\item +\hypertarget{samp_8h_4c8a1b402743b52f2837e97cf41e9e34}{ +char $\ast$ \textbf{samp\_\-getMapKey} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map, int index)} +\label{samp_8h_4c8a1b402743b52f2837e97cf41e9e34} + +\item +\hypertarget{samp_8h_7dcdf07dd7f3252f3bf2dd5002c62251}{ +char $\ast$ \textbf{samp\_\-getMapVal} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map, int index)} +\label{samp_8h_7dcdf07dd7f3252f3bf2dd5002c62251} + +\item +void \hyperlink{samp_8h_b9b2157de89369eb5cd95bfe804eb89a}{samp\_\-setStringInMap} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map, char $\ast$key, char $\ast$value) +\begin{CompactList}\small\item\em Set a string in a Map (append). \item\end{CompactList}\item +void \hyperlink{samp_8h_f102490efe1b92d99b67f244dc498c7b}{samp\_\-setMapInMap} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map1, char $\ast$key, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map2) +\begin{CompactList}\small\item\em Set a Map in a Map (append). \item\end{CompactList}\item +void \hyperlink{samp_8h_362c2f670c98dd6a3ef69debd1871604}{samp\_\-setListInMap} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map, char $\ast$key, \hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} list) +\begin{CompactList}\small\item\em Set a List in a Map (append). \item\end{CompactList}\item +void \hyperlink{samp_8h_c22ec42dbf9a01c9b4e00cf011e7eb9d}{samp\_\-setIntInMap} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map, char $\ast$key, int value) +\begin{CompactList}\small\item\em Set a Int in a Map (append). \item\end{CompactList}\item +void \hyperlink{samp_8h_0f07ae542f5b317311b3799bd96a88fd}{samp\_\-setFloatInMap} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map, char $\ast$key, float value) +\begin{CompactList}\small\item\em Set a string in a Map (append). \item\end{CompactList}\item +char $\ast$ \hyperlink{samp_8h_e615ad9482fa88705b2488a37c987c2a}{samp\_\-getStringFromMap} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map, char $\ast$key) +\begin{CompactList}\small\item\em Get a string from the Map. \item\end{CompactList}\item +\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} \hyperlink{samp_8h_525e8ffdfa32867f392f2c1340215453}{samp\_\-getMapFromMap} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map, char $\ast$key) +\begin{CompactList}\small\item\em Get a Map from the Map. \item\end{CompactList}\item +\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} \hyperlink{samp_8h_31ddb90cf2184ae0151b9e7ec8c1a51f}{samp\_\-getListFromMap} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map, char $\ast$key) +\begin{CompactList}\small\item\em Get a LIST from the Map. \item\end{CompactList}\item +int \hyperlink{samp_8h_594a51772e9b0693a3c77006eb88c96a}{samp\_\-getIntFromMap} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map, char $\ast$key) +\begin{CompactList}\small\item\em Get a integer from the Map. \item\end{CompactList}\item +float \hyperlink{samp_8h_89c38f762afd50c85f6ff659bdf0a923}{samp\_\-getFloatFromMap} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map, char $\ast$key) +\begin{CompactList}\small\item\em Get a float from the Map. \item\end{CompactList}\item +\hyperlink{sampDecl_8h_eb3d03dd240212c044285bdd522e3b2b}{Msg} \hyperlink{samp_8h_d343c08e241ff4e17a0eb8fa3d9f4781}{samp\_\-newMsg} (void) +\begin{CompactList}\small\item\em Create a new Msg object. \item\end{CompactList}\item +void \hyperlink{samp_8h_adf2979a5fad0c9a855740330b7fd9ce}{samp\_\-freeMsg} (\hyperlink{sampDecl_8h_eb3d03dd240212c044285bdd522e3b2b}{Msg} msg) +\begin{CompactList}\small\item\em Free the given Msg object. \item\end{CompactList}\item +\hypertarget{samp_8h_34c9e29fa57216f19a70764df8e5826b}{ +void \textbf{samp\_\-msgMType} (\hyperlink{sampDecl_8h_eb3d03dd240212c044285bdd522e3b2b}{Msg} msg, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} mtype)} +\label{samp_8h_34c9e29fa57216f19a70764df8e5826b} + +\item +void \hyperlink{samp_8h_281c8f7f8b21a74704dd200d5aaed481}{samp\_\-msgParam} (\hyperlink{sampDecl_8h_eb3d03dd240212c044285bdd522e3b2b}{Msg} msg, \hyperlink{sampDecl_8h_4c5a7aff173725461e76e5f0183d7ed8}{Param} param) +\begin{CompactList}\small\item\em Add a parameter to the Msg. \item\end{CompactList}\item +\hypertarget{samp_8h_cb9eff6a0f442a1c9fde13c1e9fc097d}{ +char $\ast$ \textbf{samp\_\-msgTag} (void)} +\label{samp_8h_cb9eff6a0f442a1c9fde13c1e9fc097d} + +\item +\hyperlink{sampDecl_8h_4c5a7aff173725461e76e5f0183d7ed8}{Param} \hyperlink{samp_8h_3e2fe98bee9ac2b0c882de78e9b5085f}{samp\_\-newParam} (void) +\begin{CompactList}\small\item\em Create a new Param object. \item\end{CompactList}\item +void \hyperlink{samp_8h_5a6fbf3ac37164268afae80c35666c5e}{samp\_\-freeParam} (\hyperlink{sampDecl_8h_4c5a7aff173725461e76e5f0183d7ed8}{Param} param) +\begin{CompactList}\small\item\em Free the given Msg object. \item\end{CompactList}\item +\hyperlink{sampDecl_8h_4c5a7aff173725461e76e5f0183d7ed8}{Param} \hyperlink{samp_8h_f2953eb691b695482ffbbea71948374f}{samp\_\-paramInit} (\hyperlink{sampDecl_8h_eb3d03dd240212c044285bdd522e3b2b}{Msg} msg) +\begin{CompactList}\small\item\em Get number of Params. \item\end{CompactList}\item +\hypertarget{samp_8h_62c2d0b887252730fd6f7bdaa7211403}{ +void \textbf{samp\_\-addStringParam} (\hyperlink{sampDecl_8h_eb3d03dd240212c044285bdd522e3b2b}{Msg} msg, char $\ast$keyw, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} val)} +\label{samp_8h_62c2d0b887252730fd6f7bdaa7211403} + +\item +void \hyperlink{samp_8h_e3e90c84dd6b1a08d8af18ca9e168b37}{samp\_\-addMapParam} (\hyperlink{sampDecl_8h_eb3d03dd240212c044285bdd522e3b2b}{Msg} msg, char $\ast$keyw, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} val) +\begin{CompactList}\small\item\em Add a parameter to the Param. \item\end{CompactList}\item +void \hyperlink{samp_8h_24f72c4ed033ed2f219b420e491b3c0f}{samp\_\-addListParam} (\hyperlink{sampDecl_8h_eb3d03dd240212c044285bdd522e3b2b}{Msg} msg, char $\ast$keyw, \hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} val) +\begin{CompactList}\small\item\em Add a parameter to the Param. \item\end{CompactList}\item +void \hyperlink{samp_8h_6897da75444209fc1819042bde906aa6}{samp\_\-addIntParam} (\hyperlink{sampDecl_8h_eb3d03dd240212c044285bdd522e3b2b}{Msg} msg, char $\ast$keyw, int val) +\begin{CompactList}\small\item\em Add a $<$SAMP int$>$=\char`\"{}\char`\"{}$>$ parameter to the Param. \item\end{CompactList}\item +void \hyperlink{samp_8h_d297770f4ab1338697d69b2705d6c1d9}{samp\_\-addFloatParam} (\hyperlink{sampDecl_8h_eb3d03dd240212c044285bdd522e3b2b}{Msg} msg, char $\ast$keyw, float val) +\begin{CompactList}\small\item\em Add a $<$SAMP float$>$=\char`\"{}\char`\"{}$>$ parameter to the Param. \item\end{CompactList}\item +int \hyperlink{samp_8h_5a44618b7681acff67b3883341494d2d}{samp\_\-paramLen} (\hyperlink{sampDecl_8h_eb3d03dd240212c044285bdd522e3b2b}{Msg} msg) +\begin{CompactList}\small\item\em Get number of Params. \item\end{CompactList}\item +void \hyperlink{samp_8h_329a8a5f83162ed49baa28f008131d45}{sampLog} (handle\_\-t handle, char $\ast$format,...) +\begin{CompactList}\small\item\em SAMP message logger. \item\end{CompactList}\item +void \hyperlink{samp_8h_65e3987c9b510018dcdd91203b437e40}{sampTrace} (handle\_\-t handle, char $\ast$format,...) +\begin{CompactList}\small\item\em SAMP tracer. \item\end{CompactList}\item +handle\_\-t \hyperlink{samp_8h_711aa545f55e9307f662062deefd5903}{samp\_\-newHandle} (void $\ast$ptr) +\begin{CompactList}\small\item\em Get an unused object handle. \item\end{CompactList}\item +void \hyperlink{samp_8h_f02a7c646a9ed56e545d8bf33434c207}{samp\_\-freeHandle} (handle\_\-t handle) +\begin{CompactList}\small\item\em Free the handle for later re-use. \item\end{CompactList}\item +handle\_\-t \hyperlink{samp_8h_4d0aef2f09b9cce38d4ea8024831c6e5}{samp\_\-P2H} (void $\ast$ptr) +\begin{CompactList}\small\item\em Convert a pointer to a handle. \item\end{CompactList}\item +\hypertarget{samp_8h_598e10661c7c7f4d13ae721c03056497}{ +void $\ast$ \textbf{samp\_\-H2P} (handle\_\-t handle)} +\label{samp_8h_598e10661c7c7f4d13ae721c03056497} + +\item +char $\ast$ \hyperlink{samp_8h_5e555288172e59ccf28c901c6bc10793}{samp\_\-app2id} (handle\_\-t handle, char $\ast$appName) +\begin{CompactList}\small\item\em Convert an application name to a public-ID. \item\end{CompactList}\item +char $\ast$ \hyperlink{samp_8h_343e25bf33431d973d9f81bc25eddcf7}{samp\_\-id2app} (handle\_\-t handle, char $\ast$pubId) +\begin{CompactList}\small\item\em Convert a public-ID to the application name. \item\end{CompactList}\item +int \hyperlink{samp_8h_6157dc4b47c65323a3015a434cd02e69}{samp\_\-serverPort} (void) +\begin{CompactList}\small\item\em Return a unique port number for the server. \item\end{CompactList}\item +void \hyperlink{samp_8h_5b2ef060b3adb18aea7a5a6099c4d0d0}{samp\_\-printMetadata} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} name) +\begin{CompactList}\small\item\em Print the metadata for the application. \item\end{CompactList}\item +char $\ast$ \hyperlink{samp_8h_def0598aa30c5c1a2276cdddf705de69}{samp\_\-getMetadata} (handle\_\-t handle, \hyperlink{sampDecl_8h_2efe6d463d80744789f228f5dc4baa39}{String} name) +\begin{CompactList}\small\item\em Get the metadata item for the application. \item\end{CompactList}\end{CompactItemize} + + +\label{_details} +\hypertarget{_details}{} +\subsection{Detailed Description} +SAMP interface include file. + +SAMP.H -- SAMP interface include file. + +\begin{Desc} +\item[Author:]Mike FItzpatrick \end{Desc} +\begin{Desc} +\item[Date:]7/10/09 \end{Desc} + + +\subsection{Define Documentation} +\hypertarget{samp_8h_fc367e0d449c3afa2d429eedc85407aa}{ +\index{samp.h@{samp.h}!HUB\_\-SHUTDOWN@{HUB\_\-SHUTDOWN}} +\index{HUB\_\-SHUTDOWN@{HUB\_\-SHUTDOWN}!samp.h@{samp.h}} +\subsubsection[{HUB\_\-SHUTDOWN}]{\setlength{\rightskip}{0pt plus 5cm}\#define HUB\_\-SHUTDOWN~0}} +\label{samp_8h_fc367e0d449c3afa2d429eedc85407aa} + + +Special \hyperlink{structHub}{Hub} events + +Referenced by samp\_\-hubEvent(), and samp\_\-processHubEvent(). + +\subsection{Typedef Documentation} +\hypertarget{samp_8h_39f9d235896a8fd920f319105eb82791}{ +\index{samp.h@{samp.h}!List@{List}} +\index{List@{List}!samp.h@{samp.h}} +\subsubsection[{List}]{\setlength{\rightskip}{0pt plus 5cm}typedef int {\bf List}}} +\label{samp_8h_39f9d235896a8fd920f319105eb82791} + + +SAMP Map datatype \hypertarget{samp_8h_39a90bc041db57e1a6ba736ba91eee30}{ +\index{samp.h@{samp.h}!Map@{Map}} +\index{Map@{Map}!samp.h@{samp.h}} +\subsubsection[{Map}]{\setlength{\rightskip}{0pt plus 5cm}typedef int {\bf Map}}} +\label{samp_8h_39a90bc041db57e1a6ba736ba91eee30} + + +generic object handle \hypertarget{samp_8h_eb3d03dd240212c044285bdd522e3b2b}{ +\index{samp.h@{samp.h}!Msg@{Msg}} +\index{Msg@{Msg}!samp.h@{samp.h}} +\subsubsection[{Msg}]{\setlength{\rightskip}{0pt plus 5cm}typedef int {\bf Msg}}} +\label{samp_8h_eb3d03dd240212c044285bdd522e3b2b} + + +SAMP List datatype \hypertarget{samp_8h_4c5a7aff173725461e76e5f0183d7ed8}{ +\index{samp.h@{samp.h}!Param@{Param}} +\index{Param@{Param}!samp.h@{samp.h}} +\subsubsection[{Param}]{\setlength{\rightskip}{0pt plus 5cm}typedef int {\bf Param}}} +\label{samp_8h_4c5a7aff173725461e76e5f0183d7ed8} + + +SAMP Msg datatype \hypertarget{samp_8h_2efe6d463d80744789f228f5dc4baa39}{ +\index{samp.h@{samp.h}!String@{String}} +\index{String@{String}!samp.h@{samp.h}} +\subsubsection[{String}]{\setlength{\rightskip}{0pt plus 5cm}typedef char$\ast$ {\bf String}}} +\label{samp_8h_2efe6d463d80744789f228f5dc4baa39} + + +SAMP Param datatype + +\subsection{Function Documentation} +\hypertarget{samp_8h_8a2111bbe4c88cef635e3bf67e899563}{ +\index{samp.h@{samp.h}!samp\_\-addClient@{samp\_\-addClient}} +\index{samp\_\-addClient@{samp\_\-addClient}!samp.h@{samp.h}} +\subsubsection[{samp\_\-addClient}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-addClient (handle\_\-t {\em handle}, \/ {\bf String} {\em name}, \/ {\bf String} {\em id})}} +\label{samp_8h_8a2111bbe4c88cef635e3bf67e899563} + + +SAMP\_\-ADDCLIENT -- Add a newly registered client to the list of known apps so we can do the public-private name translation. \hypertarget{samp_8h_d297770f4ab1338697d69b2705d6c1d9}{ +\index{samp.h@{samp.h}!samp\_\-addFloatParam@{samp\_\-addFloatParam}} +\index{samp\_\-addFloatParam@{samp\_\-addFloatParam}!samp.h@{samp.h}} +\subsubsection[{samp\_\-addFloatParam}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-addFloatParam ({\bf Msg} {\em msg}, \/ char $\ast$ {\em keyw}, \/ float {\em val})}} +\label{samp_8h_d297770f4ab1338697d69b2705d6c1d9} + + +Add a $<$SAMP float$>$=\char`\"{}\char`\"{}$>$ parameter to the Param. + +SAMP\_\-ADDFLOATPARAM -- Add a $<$SAMP float$>$=\char`\"{}\char`\"{}$>$ parameter to the Param. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em msg}]handle to Msg object \item[{\em keyw}]map keyword \item[{\em val}]floating point value \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +Referenced by samp\_\-coordPointAtSky(), and samp\_\-sendGeneric().\hypertarget{samp_8h_6897da75444209fc1819042bde906aa6}{ +\index{samp.h@{samp.h}!samp\_\-addIntParam@{samp\_\-addIntParam}} +\index{samp\_\-addIntParam@{samp\_\-addIntParam}!samp.h@{samp.h}} +\subsubsection[{samp\_\-addIntParam}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-addIntParam ({\bf Msg} {\em msg}, \/ char $\ast$ {\em keyw}, \/ int {\em val})}} +\label{samp_8h_6897da75444209fc1819042bde906aa6} + + +Add a $<$SAMP int$>$=\char`\"{}\char`\"{}$>$ parameter to the Param. + +SAMP\_\-ADDINTPARAM -- Add a $<$SAMP int$>$=\char`\"{}\char`\"{}$>$ parameter to the Param. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em msg}]handle to Msg object \item[{\em keyw}]map keyword \item[{\em val}]integer value \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +Referenced by samp\_\-sendGeneric(), and samp\_\-tableHighlightRow().\hypertarget{samp_8h_24f72c4ed033ed2f219b420e491b3c0f}{ +\index{samp.h@{samp.h}!samp\_\-addListParam@{samp\_\-addListParam}} +\index{samp\_\-addListParam@{samp\_\-addListParam}!samp.h@{samp.h}} +\subsubsection[{samp\_\-addListParam}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-addListParam ({\bf Msg} {\em msg}, \/ char $\ast$ {\em keyw}, \/ {\bf List} {\em val})}} +\label{samp_8h_24f72c4ed033ed2f219b420e491b3c0f} + + +Add a parameter to the Param. + +SAMP\_\-ADDLISTPARAM -- Add a List parameter to the Param. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em msg}]handle to Msg object \item[{\em keyw}]map keyword \item[{\em val}]value list \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +Referenced by samp\_\-tableSelectRowList().\hypertarget{samp_8h_e3e90c84dd6b1a08d8af18ca9e168b37}{ +\index{samp.h@{samp.h}!samp\_\-addMapParam@{samp\_\-addMapParam}} +\index{samp\_\-addMapParam@{samp\_\-addMapParam}!samp.h@{samp.h}} +\subsubsection[{samp\_\-addMapParam}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-addMapParam ({\bf Msg} {\em msg}, \/ char $\ast$ {\em keyw}, \/ {\bf Map} {\em val})}} +\label{samp_8h_e3e90c84dd6b1a08d8af18ca9e168b37} + + +Add a parameter to the Param. + +SAMP\_\-ADDMAPPARAM -- Add a Map parameter to the Param. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em msg}]handle to Msg object \item[{\em keyw}]map keyword \item[{\em val}]value map \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +Referenced by samp\_\-resourceLoad(), and samp\_\-specLoadSSAGeneric().\hypertarget{samp_8h_5e555288172e59ccf28c901c6bc10793}{ +\index{samp.h@{samp.h}!samp\_\-app2id@{samp\_\-app2id}} +\index{samp\_\-app2id@{samp\_\-app2id}!samp.h@{samp.h}} +\subsubsection[{samp\_\-app2id}]{\setlength{\rightskip}{0pt plus 5cm}pubId samp\_\-app2id (handle\_\-t {\em handle}, \/ char $\ast$ {\em appName})}} +\label{samp_8h_5e555288172e59ccf28c901c6bc10793} + + +Convert an application name to a public-ID. + +SAMP\_\-APP2ID -- Convert an application name to a public-ID. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em appName}]name of registered application \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]public ID of application \end{Desc} + + +Referenced by samp\_\-call(), samp\_\-callAndWait(), samp\_\-envGet(), samp\_\-notify(), samp\_\-paramGet(), samp\_\-Ping(), and samp\_\-sendMsg().\hypertarget{samp_8h_262bf09278c61b60b5189fef7f26d26b}{ +\index{samp.h@{samp.h}!samp\_\-bibcodeHandler@{samp\_\-bibcodeHandler}} +\index{samp\_\-bibcodeHandler@{samp\_\-bibcodeHandler}!samp.h@{samp.h}} +\subsubsection[{samp\_\-bibcodeHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-bibcodeHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{samp_8h_262bf09278c61b60b5189fef7f26d26b} + + +Handle a bibcode.load message. + +SAMP\_\-BIBCODEHANDLER -- Handle a bibcode.load message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} +\hypertarget{samp_8h_abeaa1ac9d09a666a9fa34a7d274483d}{ +\index{samp.h@{samp.h}!samp\_\-bibLoad@{samp\_\-bibLoad}} +\index{samp\_\-bibLoad@{samp\_\-bibLoad}!samp.h@{samp.h}} +\subsubsection[{samp\_\-bibLoad}]{\setlength{\rightskip}{0pt plus 5cm}val samp\_\-bibLoad (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ {\bf String} {\em bibcode})}} +\label{samp_8h_abeaa1ac9d09a666a9fa34a7d274483d} + + +Exchange a bibcode. + +SAMP\_\-BIBLOAD -- Exchange a bibcode. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]name of recipient (or 'all') \item[{\em bibcode}]Bibcode string \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} +\hypertarget{samp_8h_919cca4cfc557e0c05914b805401fbd3}{ +\index{samp.h@{samp.h}!samp\_\-call@{samp\_\-call}} +\index{samp\_\-call@{samp\_\-call}!samp.h@{samp.h}} +\subsubsection[{samp\_\-call}]{\setlength{\rightskip}{0pt plus 5cm}{\bf String} msg id samp\_\-call (handle\_\-t {\em handle}, \/ {\bf String} {\em recipId}, \/ {\bf String} {\em msg\_\-tag}, \/ {\bf Map} {\em msg})}} +\label{samp_8h_919cca4cfc557e0c05914b805401fbd3} + + +Make a call() call to the \hyperlink{structHub}{Hub}. + +SAMP\_\-CALL -- Make a call() call to the \hyperlink{structHub}{Hub} + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recipId}]recipient ID \item[{\em msg\_\-tag}]message tag \item[{\em msg}]message map \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]message ID \end{Desc} + + +Referenced by samp\_\-sendMsg().\hypertarget{samp_8h_2cbf26c662884a4ae9587f7b9f4113a6}{ +\index{samp.h@{samp.h}!samp\_\-callAll@{samp\_\-callAll}} +\index{samp\_\-callAll@{samp\_\-callAll}!samp.h@{samp.h}} +\subsubsection[{samp\_\-callAll}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Map} calls samp\_\-callAll (handle\_\-t {\em handle}, \/ {\bf String} {\em msg\_\-tag}, \/ {\bf Map} {\em msg})}} +\label{samp_8h_2cbf26c662884a4ae9587f7b9f4113a6} + + +Make a callAll() call to the \hyperlink{structHub}{Hub}. + +SAMP\_\-CALLALL -- Make a callAll() call to the \hyperlink{structHub}{Hub} + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em msg\_\-tag}]message tag \item[{\em msg}]message map \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +Referenced by samp\_\-Ping(), and samp\_\-sendMsg().\hypertarget{samp_8h_c69c39e8ee091c006289b486dee10711}{ +\index{samp.h@{samp.h}!samp\_\-callAndWait@{samp\_\-callAndWait}} +\index{samp\_\-callAndWait@{samp\_\-callAndWait}!samp.h@{samp.h}} +\subsubsection[{samp\_\-callAndWait}]{\setlength{\rightskip}{0pt plus 5cm}status samp\_\-callAndWait (handle\_\-t {\em handle}, \/ {\bf String} {\em recipId}, \/ {\bf String} {\em msg\_\-tag}, \/ {\bf Map} {\em msg})}} +\label{samp_8h_c69c39e8ee091c006289b486dee10711} + + +Make a callAndWait() call to the \hyperlink{structHub}{Hub}. + +SAMP\_\-CALLANDWAIT -- Make a callAndWait() call to the \hyperlink{structHub}{Hub} + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recipId}]recipient ID \item[{\em msg\_\-tag}]message tag \item[{\em msg}]message map \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +Referenced by samp\_\-Ping(), and samp\_\-sendMsg().\hypertarget{samp_8h_0a61726448d9b1a026b20ff6beead44e}{ +\index{samp.h@{samp.h}!samp\_\-clientName@{samp\_\-clientName}} +\index{samp\_\-clientName@{samp\_\-clientName}!samp.h@{samp.h}} +\subsubsection[{samp\_\-clientName}]{\setlength{\rightskip}{0pt plus 5cm}name samp\_\-clientName (handle\_\-t {\em handle}, \/ {\bf String} {\em pubId})}} +\label{samp_8h_0a61726448d9b1a026b20ff6beead44e} + + +Get the \hyperlink{structClient}{Client} name from a pubic-id. + +SAMP\_\-CLIENTNAME -- Get the \hyperlink{structClient}{Client} name from a pubic-id. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em pubId}]public ID \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]declared application name \end{Desc} +\hypertarget{samp_8h_be012673358bfd254e2c6ad9f6e92240}{ +\index{samp.h@{samp.h}!samp\_\-cmdExec@{samp\_\-cmdExec}} +\index{samp\_\-cmdExec@{samp\_\-cmdExec}!samp.h@{samp.h}} +\subsubsection[{samp\_\-cmdExec}]{\setlength{\rightskip}{0pt plus 5cm}stat samp\_\-cmdExec (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ {\bf String} {\em cmd})}} +\label{samp_8h_be012673358bfd254e2c6ad9f6e92240} + + +Execute a command in a remote application. + +SAMP\_\-CMDEXEC -- Execute a command in a remote application. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]name of recipient (or 'all') \item[{\em cmd}]Command string \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} +\hypertarget{samp_8h_c57d19afc6fa0b4bc9c7a0fd50d0f54b}{ +\index{samp.h@{samp.h}!samp\_\-cmdExecHandler@{samp\_\-cmdExecHandler}} +\index{samp\_\-cmdExecHandler@{samp\_\-cmdExecHandler}!samp.h@{samp.h}} +\subsubsection[{samp\_\-cmdExecHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-cmdExecHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{samp_8h_c57d19afc6fa0b4bc9c7a0fd50d0f54b} + + +Handle a client.cmd.exec message. + +SAMP\_\-CMDEXECHANDLER -- Handle a client.cmd.exec message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} +\hypertarget{samp_8h_0651eec8ddc8707bb8fbc4dfdcfff5e2}{ +\index{samp.h@{samp.h}!samp\_\-coordPointAtSky@{samp\_\-coordPointAtSky}} +\index{samp\_\-coordPointAtSky@{samp\_\-coordPointAtSky}!samp.h@{samp.h}} +\subsubsection[{samp\_\-coordPointAtSky}]{\setlength{\rightskip}{0pt plus 5cm}stat samp\_\-coordPointAtSky (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ float {\em ra}, \/ float {\em dec})}} +\label{samp_8h_0651eec8ddc8707bb8fbc4dfdcfff5e2} + + +Tell an app to point at an RA/Dec coordinate. + +SAMP\_\-COORDPOINTATSKY -- Tell an app to point at an RA/Dec coordinate. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]name of recipient (or 'all') \item[{\em ra}]RA of coord in degrees \item[{\em dec}]Dec of coord in degrees \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} +\hypertarget{samp_8h_94cdccbcfa524fa515de77544b6c6eaa}{ +\index{samp.h@{samp.h}!samp\_\-DeclareMetadata@{samp\_\-DeclareMetadata}} +\index{samp\_\-DeclareMetadata@{samp\_\-DeclareMetadata}!samp.h@{samp.h}} +\subsubsection[{samp\_\-DeclareMetadata}]{\setlength{\rightskip}{0pt plus 5cm}stat samp\_\-DeclareMetadata (handle\_\-t {\em handle})}} +\label{samp_8h_94cdccbcfa524fa515de77544b6c6eaa} + + +(Re)Declare all of our metadata. + +SAMP\_\-DECLAREMETATA -- (Re)Declare all of our metadata. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} +\hypertarget{samp_8h_ef695801c121c6191d3af4574569ab8c}{ +\index{samp.h@{samp.h}!samp\_\-DeclareSubscriptions@{samp\_\-DeclareSubscriptions}} +\index{samp\_\-DeclareSubscriptions@{samp\_\-DeclareSubscriptions}!samp.h@{samp.h}} +\subsubsection[{samp\_\-DeclareSubscriptions}]{\setlength{\rightskip}{0pt plus 5cm}stat samp\_\-DeclareSubscriptions (handle\_\-t {\em handle})}} +\label{samp_8h_ef695801c121c6191d3af4574569ab8c} + + +Declare the messages we're interested in. + +SAMP\_\-DECLARESUBSCRIPIONS -- Declare the messages we're interested in. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +Referenced by samp\_\-Unsubscribe().\hypertarget{samp_8h_96851f1c15e4baf67949d86d15f2568d}{ +\index{samp.h@{samp.h}!samp\_\-defaultReplyHandler@{samp\_\-defaultReplyHandler}} +\index{samp\_\-defaultReplyHandler@{samp\_\-defaultReplyHandler}!samp.h@{samp.h}} +\subsubsection[{samp\_\-defaultReplyHandler}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-defaultReplyHandler (handle\_\-t {\em handle})}} +\label{samp_8h_96851f1c15e4baf67949d86d15f2568d} + + +The interface's default Reply handler. + +SAMP\_\-DEFAULTREPLYHANDLER -- The interface's default Reply handler. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{samp_8h_ba313c7608a7658c673065c83113ec5b}{ +\index{samp.h@{samp.h}!samp\_\-envGet@{samp\_\-envGet}} +\index{samp\_\-envGet@{samp\_\-envGet}!samp.h@{samp.h}} +\subsubsection[{samp\_\-envGet}]{\setlength{\rightskip}{0pt plus 5cm}val samp\_\-envGet (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ {\bf String} {\em name})}} +\label{samp_8h_ba313c7608a7658c673065c83113ec5b} + + +Get an environment variable in a remote application. + +SAMP\_\-ENVGET -- Get an environment variable in a remote application. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]name of recipient (or 'all') \item[{\em name}]Name of variable in receiver's environment \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]NULL, Value of variable, or list of values \end{Desc} +\hypertarget{samp_8h_e25a92f57babd71d43653d7fcb81025c}{ +\index{samp.h@{samp.h}!samp\_\-envGetHandler@{samp\_\-envGetHandler}} +\index{samp\_\-envGetHandler@{samp\_\-envGetHandler}!samp.h@{samp.h}} +\subsubsection[{samp\_\-envGetHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-envGetHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{samp_8h_e25a92f57babd71d43653d7fcb81025c} + + +Handle a client.env.set message. + +SAMP\_\-ENVGETHANDLER -- Handle a client.env.set message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} +\hypertarget{samp_8h_e842347910a3cfd746def74b0fd564aa}{ +\index{samp.h@{samp.h}!samp\_\-envSet@{samp\_\-envSet}} +\index{samp\_\-envSet@{samp\_\-envSet}!samp.h@{samp.h}} +\subsubsection[{samp\_\-envSet}]{\setlength{\rightskip}{0pt plus 5cm}stat samp\_\-envSet (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ {\bf String} {\em name}, \/ {\bf String} {\em value})}} +\label{samp_8h_e842347910a3cfd746def74b0fd564aa} + + +Set an environment variable in a remote application. + +SAMP\_\-ENVSET -- Set an environment variable in a remote application. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]name of recipient (or 'all') \item[{\em name}]Name of variable in receiver's environment \item[{\em value}]Value of variable or NULL \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} +\hypertarget{samp_8h_0910e6b9d11cdd3111c1f18450de394a}{ +\index{samp.h@{samp.h}!samp\_\-envSetHandler@{samp\_\-envSetHandler}} +\index{samp\_\-envSetHandler@{samp\_\-envSetHandler}!samp.h@{samp.h}} +\subsubsection[{samp\_\-envSetHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-envSetHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{samp_8h_0910e6b9d11cdd3111c1f18450de394a} + + +Handle a client.env.set message. + +SAMP\_\-ENVSETHANDLER -- Handle a client.env.set message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} +\hypertarget{samp_8h_e09217f0e615e01dfcffbdebda2516e8}{ +\index{samp.h@{samp.h}!samp\_\-execUserHandler@{samp\_\-execUserHandler}} +\index{samp\_\-execUserHandler@{samp\_\-execUserHandler}!samp.h@{samp.h}} +\subsubsection[{samp\_\-execUserHandler}]{\setlength{\rightskip}{0pt plus 5cm}samp\_\-execUserHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em params})}} +\label{samp_8h_e09217f0e615e01dfcffbdebda2516e8} + + +Execute the user-defined handler for the mtype. + +SAMP\_\-EXECUSERHANDLER -- Execute the user-defined handler for the mtype. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message-id string \item[{\em params}]Mtype parameter Map \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +Referenced by samp\_\-receiveCall(), samp\_\-receiveNotification(), and samp\_\-receiveResponse().\hypertarget{samp_8h_f02a7c646a9ed56e545d8bf33434c207}{ +\index{samp.h@{samp.h}!samp\_\-freeHandle@{samp\_\-freeHandle}} +\index{samp\_\-freeHandle@{samp\_\-freeHandle}!samp.h@{samp.h}} +\subsubsection[{samp\_\-freeHandle}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-freeHandle (handle\_\-t {\em handle})}} +\label{samp_8h_f02a7c646a9ed56e545d8bf33434c207} + + +Free the handle for later re-use. + +SAMP\_\-FREEHANDLE -- Free the handle for later re-use. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]object handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +Referenced by samp\_\-hubClose(), and sampClose().\hypertarget{samp_8h_b162ae9b9f98da80f6bb5c34b5cbcbf6}{ +\index{samp.h@{samp.h}!samp\_\-freeList@{samp\_\-freeList}} +\index{samp\_\-freeList@{samp\_\-freeList}!samp.h@{samp.h}} +\subsubsection[{samp\_\-freeList}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-freeList ({\bf List} {\em list})}} +\label{samp_8h_b162ae9b9f98da80f6bb5c34b5cbcbf6} + + +Free the given List object. + +SAMP\_\-FREELIST -- Free the given List object + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em list}]List object handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +Referenced by samp\_\-mapClients(), and samp\_\-tableSelectRowList().\hypertarget{samp_8h_fe80438de542c6657d623993360b37d1}{ +\index{samp.h@{samp.h}!samp\_\-freeMap@{samp\_\-freeMap}} +\index{samp\_\-freeMap@{samp\_\-freeMap}!samp.h@{samp.h}} +\subsubsection[{samp\_\-freeMap}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-freeMap ({\bf Map} {\em map})}} +\label{samp_8h_fe80438de542c6657d623993360b37d1} + + +Free the given Map object. + +SAMP\_\-FREEMAP -- Free the given Map object + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em map}]Map object to free \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +Referenced by samp\_\-envGetHandler(), samp\_\-hubDeclareSubscriptions(), samp\_\-paramGetHandler(), and samp\_\-Ping().\hypertarget{samp_8h_adf2979a5fad0c9a855740330b7fd9ce}{ +\index{samp.h@{samp.h}!samp\_\-freeMsg@{samp\_\-freeMsg}} +\index{samp\_\-freeMsg@{samp\_\-freeMsg}!samp.h@{samp.h}} +\subsubsection[{samp\_\-freeMsg}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-freeMsg ({\bf Msg} {\em msg})}} +\label{samp_8h_adf2979a5fad0c9a855740330b7fd9ce} + + +Free the given Msg object. + +SAMP\_\-FREEMSG -- Free the given Msg object + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em msg}]Msg object to free \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +Referenced by samp\_\-bibLoad(), samp\_\-cmdExec(), samp\_\-coordPointAtSky(), samp\_\-envGet(), samp\_\-envSet(), samp\_\-imageLoadFITS(), samp\_\-paramGet(), samp\_\-paramSet(), samp\_\-Ping(), samp\_\-resourceLoad(), samp\_\-sendGeneric(), samp\_\-specLoadSSAGeneric(), samp\_\-tableHighlightRow(), samp\_\-tableLoadFITS(), samp\_\-tableLoadVOTable(), and samp\_\-tableSelectRowList().\hypertarget{samp_8h_5a6fbf3ac37164268afae80c35666c5e}{ +\index{samp.h@{samp.h}!samp\_\-freeParam@{samp\_\-freeParam}} +\index{samp\_\-freeParam@{samp\_\-freeParam}!samp.h@{samp.h}} +\subsubsection[{samp\_\-freeParam}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-freeParam ({\bf Param} {\em param})}} +\label{samp_8h_5a6fbf3ac37164268afae80c35666c5e} + + +Free the given Msg object. + +SAMP\_\-FREEPARAM -- Free the given Param object + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em param}]Param object to free \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{samp_8h_d0343ad884d5a958d7d91928ad06a369}{ +\index{samp.h@{samp.h}!samp\_\-getAvailableHubs@{samp\_\-getAvailableHubs}} +\index{samp\_\-getAvailableHubs@{samp\_\-getAvailableHubs}!samp.h@{samp.h}} +\subsubsection[{samp\_\-getAvailableHubs}]{\setlength{\rightskip}{0pt plus 5cm}status samp\_\-getAvailableHubs (handle\_\-t {\em handle})}} +\label{samp_8h_d0343ad884d5a958d7d91928ad06a369} + + +Get a list of available Hubs. + +SAMP\_\-GETAVAILABLEHUBS -- Get a list of available Hubs + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]hub handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]List of hub handles \end{Desc} +\hypertarget{samp_8h_fd8a4da020cd2fedaf70ae8af0b6a1c8}{ +\index{samp.h@{samp.h}!samp\_\-getErr@{samp\_\-getErr}} +\index{samp\_\-getErr@{samp\_\-getErr}!samp.h@{samp.h}} +\subsubsection[{samp\_\-getErr}]{\setlength{\rightskip}{0pt plus 5cm}samp\_\-getErr (handle\_\-t {\em handle})}} +\label{samp_8h_fd8a4da020cd2fedaf70ae8af0b6a1c8} + + +Get the error response string. + +SAMP\_\-GETERR -- Get the error response string. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]Error text string \end{Desc} +\hypertarget{samp_8h_cf9b570dd76203d2299ed7bdba048bb9}{ +\index{samp.h@{samp.h}!samp\_\-getFloatFromList@{samp\_\-getFloatFromList}} +\index{samp\_\-getFloatFromList@{samp\_\-getFloatFromList}!samp.h@{samp.h}} +\subsubsection[{samp\_\-getFloatFromList}]{\setlength{\rightskip}{0pt plus 5cm}ival samp\_\-getFloatFromList ({\bf List} {\em list}, \/ int {\em index})}} +\label{samp_8h_cf9b570dd76203d2299ed7bdba048bb9} + + +Get a Float from the List. + +SAMP\_\-GETFLOATFROMLIST -- Get a Float from the List + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em list}]List object handle \item[{\em index}]List index containing the desired value \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]int value \end{Desc} +\hypertarget{samp_8h_89c38f762afd50c85f6ff659bdf0a923}{ +\index{samp.h@{samp.h}!samp\_\-getFloatFromMap@{samp\_\-getFloatFromMap}} +\index{samp\_\-getFloatFromMap@{samp\_\-getFloatFromMap}!samp.h@{samp.h}} +\subsubsection[{samp\_\-getFloatFromMap}]{\setlength{\rightskip}{0pt plus 5cm}rval samp\_\-getFloatFromMap ({\bf Map} {\em map}, \/ char $\ast$ {\em key})}} +\label{samp_8h_89c38f762afd50c85f6ff659bdf0a923} + + +Get a float from the Map. + +SAMP\_\-GETFLOATFROMMAP -- Get a float from the Map + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em map}]handle to Map object \item[{\em key}]Map key \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]floating point value \end{Desc} + + +Referenced by samp\_\-execUserHandler(), and samp\_\-pointAtHandler().\hypertarget{samp_8h_0a0d9e41bebb554869f099dcf142a7bf}{ +\index{samp.h@{samp.h}!samp\_\-getHandlerReply@{samp\_\-getHandlerReply}} +\index{samp\_\-getHandlerReply@{samp\_\-getHandlerReply}!samp.h@{samp.h}} +\subsubsection[{samp\_\-getHandlerReply}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-getHandlerReply (void)}} +\label{samp_8h_0a0d9e41bebb554869f099dcf142a7bf} + + +Get the \hyperlink{structSamp}{Samp} Handler reply map. + +SAMP\_\-GETHANDLERREPLY -- Get the \hyperlink{structSamp}{Samp} Handler reply map. + +\begin{Desc} +\item[Returns:]Map handle for reply map \end{Desc} + + +References nullMap, and OK\_\-Map. + +Referenced by samp\_\-receiveCall(), and samp\_\-receiveNotification().\hypertarget{samp_8h_594a51772e9b0693a3c77006eb88c96a}{ +\index{samp.h@{samp.h}!samp\_\-getIntFromMap@{samp\_\-getIntFromMap}} +\index{samp\_\-getIntFromMap@{samp\_\-getIntFromMap}!samp.h@{samp.h}} +\subsubsection[{samp\_\-getIntFromMap}]{\setlength{\rightskip}{0pt plus 5cm}ival samp\_\-getIntFromMap ({\bf Map} {\em map}, \/ char $\ast$ {\em key})}} +\label{samp_8h_594a51772e9b0693a3c77006eb88c96a} + + +Get a integer from the Map. + +SAMP\_\-GETINTFROMMAP -- Get a integer from the Map + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em map}]handle to Map object \item[{\em key}]Map key \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]integer value \end{Desc} + + +Referenced by samp\_\-execUserHandler(), and samp\_\-tbHighlightHandler().\hypertarget{samp_8h_b74e90fdfe79b1c4f7668fdb28d041a1}{ +\index{samp.h@{samp.h}!samp\_\-getListFromList@{samp\_\-getListFromList}} +\index{samp\_\-getListFromList@{samp\_\-getListFromList}!samp.h@{samp.h}} +\subsubsection[{samp\_\-getListFromList}]{\setlength{\rightskip}{0pt plus 5cm}ival samp\_\-getListFromList ({\bf List} {\em list}, \/ int {\em index})}} +\label{samp_8h_b74e90fdfe79b1c4f7668fdb28d041a1} + + +Get a List from the List. + +Get an Int from the List. + +SAMP\_\-GETLISTFROMLIST -- Get a List from the List + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em list}]List object handle \item[{\em index}]List index containing the List \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]List handle\end{Desc} +SAMP\_\-GETINTFROMLIST -- Get an Int from the List + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em list}]List object handle \item[{\em index}]List index containing the desired value \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]int value \end{Desc} +\hypertarget{samp_8h_31ddb90cf2184ae0151b9e7ec8c1a51f}{ +\index{samp.h@{samp.h}!samp\_\-getListFromMap@{samp\_\-getListFromMap}} +\index{samp\_\-getListFromMap@{samp\_\-getListFromMap}!samp.h@{samp.h}} +\subsubsection[{samp\_\-getListFromMap}]{\setlength{\rightskip}{0pt plus 5cm}{\bf List} samp\_\-getListFromMap ({\bf Map} {\em map}, \/ char $\ast$ {\em key})}} +\label{samp_8h_31ddb90cf2184ae0151b9e7ec8c1a51f} + + +Get a LIST from the Map. + +SAMP\_\-GETLISTFROMMAP -- Get a LIST from the Map + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em map}]handle to Map object \item[{\em key}]Map key \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]handle to List value \end{Desc} + + +Referenced by samp\_\-execUserHandler(), and samp\_\-tbSelectHandler().\hypertarget{samp_8h_33ca96ee3a8e7d26356c7b66f469da74}{ +\index{samp.h@{samp.h}!samp\_\-getMapFromList@{samp\_\-getMapFromList}} +\index{samp\_\-getMapFromList@{samp\_\-getMapFromList}!samp.h@{samp.h}} +\subsubsection[{samp\_\-getMapFromList}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Map} samp\_\-getMapFromList ({\bf List} {\em list}, \/ int {\em index})}} +\label{samp_8h_33ca96ee3a8e7d26356c7b66f469da74} + + +Get a Map from the List. + +SAMP\_\-GETMAPFROMLIST -- Get a Map from the List + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em list}]List object handle \item[{\em index}]List index containing the Map \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]Map handle \end{Desc} +\hypertarget{samp_8h_525e8ffdfa32867f392f2c1340215453}{ +\index{samp.h@{samp.h}!samp\_\-getMapFromMap@{samp\_\-getMapFromMap}} +\index{samp\_\-getMapFromMap@{samp\_\-getMapFromMap}!samp.h@{samp.h}} +\subsubsection[{samp\_\-getMapFromMap}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Map} samp\_\-getMapFromMap ({\bf Map} {\em map}, \/ char $\ast$ {\em key})}} +\label{samp_8h_525e8ffdfa32867f392f2c1340215453} + + +Get a Map from the Map. + +SAMP\_\-GETMAPFROMMAP -- Get a Map from the Map + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em map}]handle to Map object \item[{\em key}]Map key \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]handle to Map value \end{Desc} + + +Referenced by samp\_\-execUserHandler(), samp\_\-resConeHandler(), samp\_\-resLoadHandler(), samp\_\-resSiapHandler(), samp\_\-resSsapHandler(), samp\_\-resTapHandler(), samp\_\-resVOSpaceHandler(), samp\_\-specLoadHandler(), and samp\_\-specSSAHandler().\hypertarget{samp_8h_def0598aa30c5c1a2276cdddf705de69}{ +\index{samp.h@{samp.h}!samp\_\-getMetadata@{samp\_\-getMetadata}} +\index{samp\_\-getMetadata@{samp\_\-getMetadata}!samp.h@{samp.h}} +\subsubsection[{samp\_\-getMetadata}]{\setlength{\rightskip}{0pt plus 5cm}str samp\_\-getMetadata (handle\_\-t {\em handle}, \/ {\bf String} {\em param})}} +\label{samp_8h_def0598aa30c5c1a2276cdddf705de69} + + +Get the metadata item for the application. + +SAMP\_\-GETMETADATA -- Get the metadata item for the application. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{samp_8h_636e11796b78ae9881e7c61df8516d2a}{ +\index{samp.h@{samp.h}!samp\_\-GetMetadata@{samp\_\-GetMetadata}} +\index{samp\_\-GetMetadata@{samp\_\-GetMetadata}!samp.h@{samp.h}} +\subsubsection[{samp\_\-GetMetadata}]{\setlength{\rightskip}{0pt plus 5cm}map samp\_\-GetMetadata (handle\_\-t {\em handle}, \/ {\bf String} {\em pubId})}} +\label{samp_8h_636e11796b78ae9881e7c61df8516d2a} + + +Get the metadata for a specified app. + +SAMP\_\-GETMETADATA -- Get the metadata for a specified app. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em pubId}]App public-id \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]Map to message response \end{Desc} + + +Referenced by samp\_\-mapClients().\hypertarget{samp_8h_27baec44edb57136951b5f86ae893246}{ +\index{samp.h@{samp.h}!samp\_\-getNullMap@{samp\_\-getNullMap}} +\index{samp\_\-getNullMap@{samp\_\-getNullMap}!samp.h@{samp.h}} +\subsubsection[{samp\_\-getNullMap}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Map} samp\_\-getNullMap ()}} +\label{samp_8h_27baec44edb57136951b5f86ae893246} + + +SAMP\_\-GETNULLMAP -- Generate a 'Null' map we can return to the \hyperlink{structHub}{Hub}. \hypertarget{samp_8h_cbf9b52550a9ab0b3515c32e692c46fb}{ +\index{samp.h@{samp.h}!samp\_\-getOKMap@{samp\_\-getOKMap}} +\index{samp\_\-getOKMap@{samp\_\-getOKMap}!samp.h@{samp.h}} +\subsubsection[{samp\_\-getOKMap}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Map} samp\_\-getOKMap ()}} +\label{samp_8h_cbf9b52550a9ab0b3515c32e692c46fb} + + +SAMP\_\-GETOKMAP -- Generate an 'OK' map we can return to the \hyperlink{structHub}{Hub}. \hypertarget{samp_8h_2c532e076dd6446f079691ed02197a57}{ +\index{samp.h@{samp.h}!samp\_\-GetRegisteredClients@{samp\_\-GetRegisteredClients}} +\index{samp\_\-GetRegisteredClients@{samp\_\-GetRegisteredClients}!samp.h@{samp.h}} +\subsubsection[{samp\_\-GetRegisteredClients}]{\setlength{\rightskip}{0pt plus 5cm}handle samp\_\-GetRegisteredClients (handle\_\-t {\em handle})}} +\label{samp_8h_2c532e076dd6446f079691ed02197a57} + + +Get public-ids of the registered clients. + +SAMP\_\-GETREGISTEREDCLIENTS -- Get public-ids of the registered clients. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]handle to list of registered clients \end{Desc} + + +Referenced by samp\_\-mapClients().\hypertarget{samp_8h_f295f9e7746644f834ac54b1deb95b4c}{ +\index{samp.h@{samp.h}!samp\_\-getSampHandler@{samp\_\-getSampHandler}} +\index{samp\_\-getSampHandler@{samp\_\-getSampHandler}!samp.h@{samp.h}} +\subsubsection[{samp\_\-getSampHandler}]{\setlength{\rightskip}{0pt plus 5cm}func samp\_\-getSampHandler ({\bf String} {\em mtype})}} +\label{samp_8h_f295f9e7746644f834ac54b1deb95b4c} + + +Get the Samphandler for the named mtype. + +SAMP\_\-GETSAMPHANDLER -- Get the Samphandler for the named mtype. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em mtype}]mtype string \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +Referenced by samp\_\-receiveCall(), samp\_\-receiveNotification(), and samp\_\-Subscribe().\hypertarget{samp_8h_b101c5b1175490474e41ac9060bdaabf}{ +\index{samp.h@{samp.h}!samp\_\-getStringFromList@{samp\_\-getStringFromList}} +\index{samp\_\-getStringFromList@{samp\_\-getStringFromList}!samp.h@{samp.h}} +\subsubsection[{samp\_\-getStringFromList}]{\setlength{\rightskip}{0pt plus 5cm}char $\ast$ samp\_\-getStringFromList ({\bf List} {\em list}, \/ int {\em index})}} +\label{samp_8h_b101c5b1175490474e41ac9060bdaabf} + + +Get a string from the List. + +SAMP\_\-GETSTRINGFROMLIST -- Get a string from the List + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em list}]List object handle \item[{\em index}]List index containing the string \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]character string \end{Desc} + + +Referenced by samp\_\-mapClients().\hypertarget{samp_8h_e615ad9482fa88705b2488a37c987c2a}{ +\index{samp.h@{samp.h}!samp\_\-getStringFromMap@{samp\_\-getStringFromMap}} +\index{samp\_\-getStringFromMap@{samp\_\-getStringFromMap}!samp.h@{samp.h}} +\subsubsection[{samp\_\-getStringFromMap}]{\setlength{\rightskip}{0pt plus 5cm}char $\ast$ samp\_\-getStringFromMap ({\bf Map} {\em map}, \/ char $\ast$ {\em key})}} +\label{samp_8h_e615ad9482fa88705b2488a37c987c2a} + + +Get a string from the Map. + +SAMP\_\-GETSTRINGFROMMAP -- Get a string from the Map + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em map}]handle to Map object \item[{\em key}]Map key \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]string value from Map \end{Desc} + + +Referenced by samp\_\-bibcodeHandler(), samp\_\-cmdExecHandler(), samp\_\-envGetHandler(), samp\_\-envSetHandler(), samp\_\-execUserHandler(), samp\_\-imLoadHandler(), samp\_\-paramGetHandler(), samp\_\-paramSetHandler(), samp\_\-resConeHandler(), samp\_\-resLoadHandler(), samp\_\-resSiapHandler(), samp\_\-resSsapHandler(), samp\_\-resTapHandler(), samp\_\-resVOSpaceHandler(), samp\_\-specLoadHandler(), samp\_\-specSSAHandler(), samp\_\-tbHighlightHandler(), samp\_\-tbLoadFITSHandler(), samp\_\-tbLoadHandler(), samp\_\-tbLoadVOTHandler(), and samp\_\-tbSelectHandler().\hypertarget{samp_8h_d28a9085ab8cacbe978e300ac99f6ae5}{ +\index{samp.h@{samp.h}!samp\_\-GetSubscribedClients@{samp\_\-GetSubscribedClients}} +\index{samp\_\-GetSubscribedClients@{samp\_\-GetSubscribedClients}!samp.h@{samp.h}} +\subsubsection[{samp\_\-GetSubscribedClients}]{\setlength{\rightskip}{0pt plus 5cm}list samp\_\-GetSubscribedClients (handle\_\-t {\em handle}, \/ {\bf String} {\em mtype})}} +\label{samp_8h_d28a9085ab8cacbe978e300ac99f6ae5} + + +Get clients matching the mtype subscription. + +SAMP\_\-GETSUBSCRIBEDCLIENTS -- Get clients matching the mtype subscription. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em mtype}]mtype string \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]handle to list of clients having mtype subscription \end{Desc} +\hypertarget{samp_8h_ce2ea31b9bd82db4c5040ffd0511bd8b}{ +\index{samp.h@{samp.h}!samp\_\-getUserHandler@{samp\_\-getUserHandler}} +\index{samp\_\-getUserHandler@{samp\_\-getUserHandler}!samp.h@{samp.h}} +\subsubsection[{samp\_\-getUserHandler}]{\setlength{\rightskip}{0pt plus 5cm}func samp\_\-getUserHandler ({\bf String} {\em mtype})}} +\label{samp_8h_ce2ea31b9bd82db4c5040ffd0511bd8b} + + +Get the User handler for the named mtype. + +SAMP\_\-GETUSERHANDLER -- Get the User handler for the named mtype. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em mtype}]mtype string \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +Referenced by samp\_\-bibcodeHandler(), samp\_\-cmdExecHandler(), samp\_\-envGetHandler(), samp\_\-envSetHandler(), samp\_\-execUserHandler(), samp\_\-imLoadHandler(), samp\_\-paramGetHandler(), samp\_\-paramSetHandler(), samp\_\-PingHandler(), samp\_\-pointAtHandler(), samp\_\-receiveCall(), samp\_\-receiveNotification(), samp\_\-resConeHandler(), samp\_\-resLoadHandler(), samp\_\-resSiapHandler(), samp\_\-resSsapHandler(), samp\_\-resTapHandler(), samp\_\-resVOSpaceHandler(), samp\_\-specLoadHandler(), samp\_\-specSSAHandler(), samp\_\-StatusHandler(), samp\_\-tbHighlightHandler(), samp\_\-tbLoadFITSHandler(), samp\_\-tbLoadHandler(), samp\_\-tbLoadVOTHandler(), and samp\_\-tbSelectHandler().\hypertarget{samp_8h_14a1f14f60ac385c758346aed0f0272b}{ +\index{samp.h@{samp.h}!samp\_\-hubActive@{samp\_\-hubActive}} +\index{samp\_\-hubActive@{samp\_\-hubActive}!samp.h@{samp.h}} +\subsubsection[{samp\_\-hubActive}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-hubActive (handle\_\-t {\em handle})}} +\label{samp_8h_14a1f14f60ac385c758346aed0f0272b} + + +Determine if the \hyperlink{structHub}{Hub} is active (i.e. connected). + +SAMP\_\-HUBACTIVE -- Determine if the \hyperlink{structHub}{Hub} is active (i.e. connected). + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]user handle to samp struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::active.\hypertarget{samp_8h_39a580ced499e50d39d327f7709834e7}{ +\index{samp.h@{samp.h}!samp\_\-hubClose@{samp\_\-hubClose}} +\index{samp\_\-hubClose@{samp\_\-hubClose}!samp.h@{samp.h}} +\subsubsection[{samp\_\-hubClose}]{\setlength{\rightskip}{0pt plus 5cm}status samp\_\-hubClose (handle\_\-t {\em handle})}} +\label{samp_8h_39a580ced499e50d39d327f7709834e7} + + +Close a connection to the \hyperlink{structHub}{Hub}. + +SAMP\_\-HUBCLOSE -- Close a connection to the \hyperlink{structHub}{Hub}. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]hub handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]unregister status \end{Desc} + + +Referenced by sampClose(), and sampShutdown().\hypertarget{samp_8h_bf1ae8a1c9c8cf520a22e6ea4d815712}{ +\index{samp.h@{samp.h}!samp\_\-hubDeclareMetadata@{samp\_\-hubDeclareMetadata}} +\index{samp\_\-hubDeclareMetadata@{samp\_\-hubDeclareMetadata}!samp.h@{samp.h}} +\subsubsection[{samp\_\-hubDeclareMetadata}]{\setlength{\rightskip}{0pt plus 5cm}status samp\_\-hubDeclareMetadata ({\bf Hub} $\ast$ {\em hub})}} +\label{samp_8h_bf1ae8a1c9c8cf520a22e6ea4d815712} + + +Declare \char`\"{}standard\char`\"{} metadata to the \hyperlink{structHub}{Hub}. + +SAMP\_\-DECLAREMETADATA -- Declare \char`\"{}standard\char`\"{} metadata to the \hyperlink{structHub}{Hub}. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em hub}]hub struct pointer \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]status \end{Desc} + + +Referenced by samp\_\-DeclareMetadata(), and sampStartup().\hypertarget{samp_8h_a6c0f67a76bd1f27898a66fe26b53fdd}{ +\index{samp.h@{samp.h}!samp\_\-hubDeclareSubscriptions@{samp\_\-hubDeclareSubscriptions}} +\index{samp\_\-hubDeclareSubscriptions@{samp\_\-hubDeclareSubscriptions}!samp.h@{samp.h}} +\subsubsection[{samp\_\-hubDeclareSubscriptions}]{\setlength{\rightskip}{0pt plus 5cm}status samp\_\-hubDeclareSubscriptions ({\bf Hub} $\ast$ {\em hub})}} +\label{samp_8h_a6c0f67a76bd1f27898a66fe26b53fdd} + + +Declare mtype subscriptions to the \hyperlink{structHub}{Hub}. + +SAMP\_\-HUBDECLARESUBSCRIPTIONS -- Declare mtype subscriptions to the \hyperlink{structHub}{Hub}. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em hub}]hub struct pointer \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]status \end{Desc} + + +Referenced by samp\_\-DeclareSubscriptions(), and sampStartup().\hypertarget{samp_8h_a48b9a99f22537127df46a94dfa9ae4a}{ +\index{samp.h@{samp.h}!samp\_\-hubEvent@{samp\_\-hubEvent}} +\index{samp\_\-hubEvent@{samp\_\-hubEvent}!samp.h@{samp.h}} +\subsubsection[{samp\_\-hubEvent}]{\setlength{\rightskip}{0pt plus 5cm}code samp\_\-hubEvent ({\bf String} {\em mtype})}} +\label{samp_8h_a48b9a99f22537127df46a94dfa9ae4a} + + +Determine the type of \hyperlink{structHub}{Hub} event mtype. + +SAMP\_\-HUBEVENT -- Determine the type of \hyperlink{structHub}{Hub} event mtype. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em mtype}]mtype string \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]\hyperlink{structHub}{Hub} event code or -1 if not found \end{Desc} + + +Referenced by samp\_\-processHubEvent().\hypertarget{samp_8h_ef92557afa5ed6731ac0a0a1ba6dfd7c}{ +\index{samp.h@{samp.h}!samp\_\-hubOpen@{samp\_\-hubOpen}} +\index{samp\_\-hubOpen@{samp\_\-hubOpen}!samp.h@{samp.h}} +\subsubsection[{samp\_\-hubOpen}]{\setlength{\rightskip}{0pt plus 5cm}handle samp\_\-hubOpen ({\bf Samp} $\ast$ {\em sampP})}} +\label{samp_8h_ef92557afa5ed6731ac0a0a1ba6dfd7c} + + +Discover and open a connection to the SAMP \hyperlink{structHub}{Hub}. + +SAMP\_\-HUBOPEN -- Discover and open a connection to the SAMP \hyperlink{structHub}{Hub}. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em samp}]Same structure \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]hub handle \end{Desc} + + +Referenced by sampInit(), and sampStartup().\hypertarget{samp_8h_155739318fa72883a3e32fccf8a6d5c9}{ +\index{samp.h@{samp.h}!samp\_\-hubPing@{samp\_\-hubPing}} +\index{samp\_\-hubPing@{samp\_\-hubPing}!samp.h@{samp.h}} +\subsubsection[{samp\_\-hubPing}]{\setlength{\rightskip}{0pt plus 5cm}status samp\_\-hubPing ({\bf Hub} $\ast$ {\em hub})}} +\label{samp_8h_155739318fa72883a3e32fccf8a6d5c9} + + +Ping the \hyperlink{structHub}{Hub} to see if it is alive. + +SAMP\_\-HUBPING -- Ping the \hyperlink{structHub}{Hub} to see if it is alive. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em hub}]hub struct pointer \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]status \end{Desc} + + +Referenced by samp\_\-Ping().\hypertarget{samp_8h_77a14721e2373c805b58f69a018ea69c}{ +\index{samp.h@{samp.h}!samp\_\-hubRegister@{samp\_\-hubRegister}} +\index{samp\_\-hubRegister@{samp\_\-hubRegister}!samp.h@{samp.h}} +\subsubsection[{samp\_\-hubRegister}]{\setlength{\rightskip}{0pt plus 5cm}status samp\_\-hubRegister ({\bf Hub} $\ast$ {\em hub})}} +\label{samp_8h_77a14721e2373c805b58f69a018ea69c} + + +Send a Register message to the \hyperlink{structHub}{Hub}. + +SAMP\_\-HUB\_\-REGISTER -- Send a Register message to the \hyperlink{structHub}{Hub}. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em hub}]hub struct pointer \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]status \end{Desc} + + +Referenced by samp\_\-hubOpen().\hypertarget{samp_8h_a927eb8dcb67e245aeb5a8a4feeb6230}{ +\index{samp.h@{samp.h}!samp\_\-hubRunning@{samp\_\-hubRunning}} +\index{samp\_\-hubRunning@{samp\_\-hubRunning}!samp.h@{samp.h}} +\subsubsection[{samp\_\-hubRunning}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-hubRunning (void)}} +\label{samp_8h_a927eb8dcb67e245aeb5a8a4feeb6230} + + +SAMP\_\-HUBRUNNING -- See whether a \hyperlink{structHub}{Hub} is running. The test simply checks the existence of a \hyperlink{structHub}{Hub} lockfile. + +References SZ\_\-NAME.\hypertarget{samp_8h_6c7b8a8ff1f3c2435d153bc08da87dce}{ +\index{samp.h@{samp.h}!samp\_\-hubSendShutdown@{samp\_\-hubSendShutdown}} +\index{samp\_\-hubSendShutdown@{samp\_\-hubSendShutdown}!samp.h@{samp.h}} +\subsubsection[{samp\_\-hubSendShutdown}]{\setlength{\rightskip}{0pt plus 5cm}status samp\_\-hubSendShutdown ({\bf Hub} $\ast$ {\em hub})}} +\label{samp_8h_6c7b8a8ff1f3c2435d153bc08da87dce} + + +Send a samp.app.event.shutdown message to the \hyperlink{structHub}{Hub}. + +SAMP\_\-HUBSENDSHUTDOWN -- Send a samp.app.event.shutdown message to the \hyperlink{structHub}{Hub}. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em hub}]hub struct pointer \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]status \end{Desc} +\hypertarget{samp_8h_fc0bfbd699ab2cbce2f755a0506ca6dc}{ +\index{samp.h@{samp.h}!samp\_\-hubSetXmlrpcCallback@{samp\_\-hubSetXmlrpcCallback}} +\index{samp\_\-hubSetXmlrpcCallback@{samp\_\-hubSetXmlrpcCallback}!samp.h@{samp.h}} +\subsubsection[{samp\_\-hubSetXmlrpcCallback}]{\setlength{\rightskip}{0pt plus 5cm}status samp\_\-hubSetXmlrpcCallback ({\bf Hub} $\ast$ {\em hub})}} +\label{samp_8h_fc0bfbd699ab2cbce2f755a0506ca6dc} + + +Set the client callback and send to \hyperlink{structHub}{Hub}. + +SAMP\_\-HUBSETXMLRPCCALLBACK -- Set the client callback and send to \hyperlink{structHub}{Hub} + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em hub}]hub struct pointer \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]status \end{Desc} + + +Referenced by samp\_\-hubOpen().\hypertarget{samp_8h_b0c37311ca30e1fdadfdd1fd16ff3ab4}{ +\index{samp.h@{samp.h}!samp\_\-hubUnRegister@{samp\_\-hubUnRegister}} +\index{samp\_\-hubUnRegister@{samp\_\-hubUnRegister}!samp.h@{samp.h}} +\subsubsection[{samp\_\-hubUnRegister}]{\setlength{\rightskip}{0pt plus 5cm}status samp\_\-hubUnRegister ({\bf Hub} $\ast$ {\em hub})}} +\label{samp_8h_b0c37311ca30e1fdadfdd1fd16ff3ab4} + + +Send a UnRegister message to the \hyperlink{structHub}{Hub}. + +SAMP\_\-HUBUNREGISTER -- Send a UnRegister message to the \hyperlink{structHub}{Hub}. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em hub}]hub struct pointer \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]status \end{Desc} + + +Referenced by samp\_\-hubClose(), and samp\_\-UnRegister().\hypertarget{samp_8h_343e25bf33431d973d9f81bc25eddcf7}{ +\index{samp.h@{samp.h}!samp\_\-id2app@{samp\_\-id2app}} +\index{samp\_\-id2app@{samp\_\-id2app}!samp.h@{samp.h}} +\subsubsection[{samp\_\-id2app}]{\setlength{\rightskip}{0pt plus 5cm}appName samp\_\-id2app (handle\_\-t {\em handle}, \/ char $\ast$ {\em pubId})}} +\label{samp_8h_343e25bf33431d973d9f81bc25eddcf7} + + +Convert a public-ID to the application name. + +SAMP\_\-ID2APP -- Convert a public-ID to the application name. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em pubId}]public ID of application \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]name of registered application \end{Desc} +\hypertarget{samp_8h_2ec386ef5bd7dee20ffa1fead0b0210a}{ +\index{samp.h@{samp.h}!samp\_\-imageLoadFITS@{samp\_\-imageLoadFITS}} +\index{samp\_\-imageLoadFITS@{samp\_\-imageLoadFITS}!samp.h@{samp.h}} +\subsubsection[{samp\_\-imageLoadFITS}]{\setlength{\rightskip}{0pt plus 5cm}stat samp\_\-imageLoadFITS (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ {\bf String} {\em url}, \/ {\bf String} {\em tableId}, \/ {\bf String} {\em name})}} +\label{samp_8h_2ec386ef5bd7dee20ffa1fead0b0210a} + + +Tell an app to load a FITS image. + +SAMP\_\-IMAGELOADFITS -- Tell an app to load a FITS image. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]Message recipient (or \char`\"{}all\char`\"{} for broadcast) \item[{\em url}]URL to table to be loaded \item[{\em imageId}]ID assigned to image (optional) \item[{\em name}]Name assigned to image (optional) \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} +\hypertarget{samp_8h_9bd8036dd65dc4f874f39568b691a123}{ +\index{samp.h@{samp.h}!samp\_\-imLoadHandler@{samp\_\-imLoadHandler}} +\index{samp\_\-imLoadHandler@{samp\_\-imLoadHandler}!samp.h@{samp.h}} +\subsubsection[{samp\_\-imLoadHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-imLoadHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{samp_8h_9bd8036dd65dc4f874f39568b691a123} + + +Handle an image.load.fits message. + +SAMP\_\-IMLOADHANDLER -- Handle an image.load.fits message. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} +\hypertarget{samp_8h_1e494e73abe2ddfd946fb39e84da42a9}{ +\index{samp.h@{samp.h}!samp\_\-listClients@{samp\_\-listClients}} +\index{samp\_\-listClients@{samp\_\-listClients}!samp.h@{samp.h}} +\subsubsection[{samp\_\-listClients}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-listClients (handle\_\-t {\em handle})}} +\label{samp_8h_1e494e73abe2ddfd946fb39e84da42a9} + + +SAMP\_\-LISTCLIENTS -- List the available clients to stdout. \hypertarget{samp_8h_c260afb0cbf19b427e3eba96a2341e52}{ +\index{samp.h@{samp.h}!samp\_\-listLen@{samp\_\-listLen}} +\index{samp\_\-listLen@{samp\_\-listLen}!samp.h@{samp.h}} +\subsubsection[{samp\_\-listLen}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-listLen ({\bf List} {\em list})}} +\label{samp_8h_c260afb0cbf19b427e3eba96a2341e52} + + +Get number of elements in a List. + +SAMP\_\-LISTLEN -- Get number of elements in a List. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em list}]List object handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +Referenced by samp\_\-execUserHandler(), samp\_\-GetRegisteredClients(), samp\_\-GetSubscribedClients(), samp\_\-mapClients(), and samp\_\-tbSelectHandler().\hypertarget{samp_8h_ff4d125fc9594be25984989fad2fd3c8}{ +\index{samp.h@{samp.h}!samp\_\-mapClients@{samp\_\-mapClients}} +\index{samp\_\-mapClients@{samp\_\-mapClients}!samp.h@{samp.h}} +\subsubsection[{samp\_\-mapClients}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-mapClients (handle\_\-t {\em handle})}} +\label{samp_8h_ff4d125fc9594be25984989fad2fd3c8} + + +SAMP\_\-MAPCLIENTS -- Map the public-ids of registered clients to the appName. \hypertarget{samp_8h_2e77115e730e95b31d897b8c50999b74}{ +\index{samp.h@{samp.h}!samp\_\-Metadata@{samp\_\-Metadata}} +\index{samp\_\-Metadata@{samp\_\-Metadata}!samp.h@{samp.h}} +\subsubsection[{samp\_\-Metadata}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-Metadata (handle\_\-t {\em handle}, \/ {\bf String} {\em field}, \/ {\bf String} {\em value})}} +\label{samp_8h_2e77115e730e95b31d897b8c50999b74} + + +Set a metadata field value for the application. + +SAMP\_\-METADATA -- Set a metadata field for the application. This will be sent to the \hyperlink{structHub}{Hub} later in a declareMetadata() call. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp handle \item[{\em field}]metadata field to set (name, author, etc) \item[{\em samp}]value of field \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{samp_8h_281c8f7f8b21a74704dd200d5aaed481}{ +\index{samp.h@{samp.h}!samp\_\-msgParam@{samp\_\-msgParam}} +\index{samp\_\-msgParam@{samp\_\-msgParam}!samp.h@{samp.h}} +\subsubsection[{samp\_\-msgParam}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-msgParam ({\bf Msg} {\em msg}, \/ {\bf Param} {\em param})}} +\label{samp_8h_281c8f7f8b21a74704dd200d5aaed481} + + +Add a parameter to the Msg. + +SAMP\_\-MSGPARAM -- Add a parameter to the Msg. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em msg}]handle to Msg object \item[{\em keyw}]map keyword \item[{\em param}]parameter map \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +Referenced by samp\_\-bibLoad(), samp\_\-cmdExec(), samp\_\-coordPointAtSky(), samp\_\-envGet(), samp\_\-envSet(), samp\_\-imageLoadFITS(), samp\_\-paramGet(), samp\_\-paramSet(), samp\_\-Ping(), samp\_\-resourceLoad(), samp\_\-sendGeneric(), samp\_\-specLoadSSAGeneric(), samp\_\-tableHighlightRow(), samp\_\-tableLoadFITS(), samp\_\-tableLoadVOTable(), and samp\_\-tableSelectRowList().\hypertarget{samp_8h_711aa545f55e9307f662062deefd5903}{ +\index{samp.h@{samp.h}!samp\_\-newHandle@{samp\_\-newHandle}} +\index{samp\_\-newHandle@{samp\_\-newHandle}!samp.h@{samp.h}} +\subsubsection[{samp\_\-newHandle}]{\setlength{\rightskip}{0pt plus 5cm}handle\_\-t samp\_\-newHandle (void $\ast$ {\em ptr})}} +\label{samp_8h_711aa545f55e9307f662062deefd5903} + + +Get an unused object handle. + +SAMP\_\-NEWHANDLE -- Get an unused object handle. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em ptr}]pointer to object to be stored \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]new object handle \end{Desc} + + +Referenced by samp\_\-hubOpen(), and sampInit().\hypertarget{samp_8h_cdc925da798ee7a1ce30427d47812bd2}{ +\index{samp.h@{samp.h}!samp\_\-newList@{samp\_\-newList}} +\index{samp\_\-newList@{samp\_\-newList}!samp.h@{samp.h}} +\subsubsection[{samp\_\-newList}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-newList (void)}} +\label{samp_8h_cdc925da798ee7a1ce30427d47812bd2} + + +Create a new List object. + +SAMP\_\-NEWLIST -- Create a new List object + +\begin{Desc} +\item[Returns:]handle to List object \end{Desc} + + +Referenced by samp\_\-GetRegisteredClients(), samp\_\-GetSubscribedClients(), samp\_\-tableSelectRowList(), and sampInit().\hypertarget{samp_8h_d88b5d5e9014deba8071f7defd220dbb}{ +\index{samp.h@{samp.h}!samp\_\-newMap@{samp\_\-newMap}} +\index{samp\_\-newMap@{samp\_\-newMap}!samp.h@{samp.h}} +\subsubsection[{samp\_\-newMap}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-newMap (void)}} +\label{samp_8h_d88b5d5e9014deba8071f7defd220dbb} + + +Create a new Map object. + +SAMP\_\-NEWMAP -- Create a new Map object + +\begin{Desc} +\item[Returns:]handle to new Map \end{Desc} + + +Referenced by samp\_\-envGetHandler(), samp\_\-getNullMap(), samp\_\-getOKMap(), samp\_\-paramGetHandler(), and sampInit().\hypertarget{samp_8h_d343c08e241ff4e17a0eb8fa3d9f4781}{ +\index{samp.h@{samp.h}!samp\_\-newMsg@{samp\_\-newMsg}} +\index{samp\_\-newMsg@{samp\_\-newMsg}!samp.h@{samp.h}} +\subsubsection[{samp\_\-newMsg}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-newMsg (void)}} +\label{samp_8h_d343c08e241ff4e17a0eb8fa3d9f4781} + + +Create a new Msg object. + +SAMP\_\-NEWMSG -- Create a new Msg object + +\begin{Desc} +\item[Returns:]handle to new Msg \end{Desc} + + +Referenced by samp\_\-bibLoad(), samp\_\-cmdExec(), samp\_\-coordPointAtSky(), samp\_\-envGet(), samp\_\-envSet(), samp\_\-imageLoadFITS(), samp\_\-paramGet(), samp\_\-paramSet(), samp\_\-Ping(), samp\_\-resourceLoad(), samp\_\-sendGeneric(), samp\_\-specLoadSSAGeneric(), samp\_\-tableHighlightRow(), samp\_\-tableLoadFITS(), samp\_\-tableLoadVOTable(), and samp\_\-tableSelectRowList().\hypertarget{samp_8h_3e2fe98bee9ac2b0c882de78e9b5085f}{ +\index{samp.h@{samp.h}!samp\_\-newParam@{samp\_\-newParam}} +\index{samp\_\-newParam@{samp\_\-newParam}!samp.h@{samp.h}} +\subsubsection[{samp\_\-newParam}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-newParam (void)}} +\label{samp_8h_3e2fe98bee9ac2b0c882de78e9b5085f} + + +Create a new Param object. + +SAMP\_\-NEWPARAM -- Create a new Param object + +\begin{Desc} +\item[Returns:]handle to new Param \end{Desc} + + +Referenced by samp\_\-bibLoad(), samp\_\-cmdExec(), samp\_\-coordPointAtSky(), samp\_\-envGet(), samp\_\-envSet(), samp\_\-imageLoadFITS(), samp\_\-paramGet(), samp\_\-paramSet(), samp\_\-Ping(), samp\_\-resourceLoad(), samp\_\-sendGeneric(), samp\_\-specLoadSSAGeneric(), samp\_\-tableHighlightRow(), samp\_\-tableLoadFITS(), samp\_\-tableLoadVOTable(), and samp\_\-tableSelectRowList().\hypertarget{samp_8h_c73788ae17493c4042948f6b861ddd74}{ +\index{samp.h@{samp.h}!samp\_\-notify@{samp\_\-notify}} +\index{samp\_\-notify@{samp\_\-notify}!samp.h@{samp.h}} +\subsubsection[{samp\_\-notify}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-notify (handle\_\-t {\em handle}, \/ {\bf String} {\em recipId}, \/ {\bf Map} {\em msg})}} +\label{samp_8h_c73788ae17493c4042948f6b861ddd74} + + +Make a notify() call to the \hyperlink{structHub}{Hub}. + +SAMP\_\-NOTIFY -- Make a notify() call to the \hyperlink{structHub}{Hub} + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recipId}]recipient ID \item[{\em msg}]message map \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +Referenced by samp\_\-sendMsg().\hypertarget{samp_8h_a046d61f43fce831a71621f98b6d9741}{ +\index{samp.h@{samp.h}!samp\_\-notifyAll@{samp\_\-notifyAll}} +\index{samp\_\-notifyAll@{samp\_\-notifyAll}!samp.h@{samp.h}} +\subsubsection[{samp\_\-notifyAll}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-notifyAll (handle\_\-t {\em handle}, \/ {\bf Map} {\em msg})}} +\label{samp_8h_a046d61f43fce831a71621f98b6d9741} + + +Make a notifyAll() call to the \hyperlink{structHub}{Hub}. + +SAMP\_\-NOTIFYALL -- Make a notifyAll() call to the \hyperlink{structHub}{Hub} + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em msg}]message map \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +Referenced by samp\_\-sendMsg().\hypertarget{samp_8h_5361571754505eaefdf5739cd3e9519e}{ +\index{samp.h@{samp.h}!samp\_\-nullResponse@{samp\_\-nullResponse}} +\index{samp\_\-nullResponse@{samp\_\-nullResponse}!samp.h@{samp.h}} +\subsubsection[{samp\_\-nullResponse}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-nullResponse (void $\ast$ {\em data})}} +\label{samp_8h_5361571754505eaefdf5739cd3e9519e} + + +SAMP\_\-NULLRESPONSE -- Handler to ignore async replies. + +Referenced by samp\_\-hubSendShutdown(), samp\_\-notify(), and samp\_\-Reply().\hypertarget{samp_8h_4d0aef2f09b9cce38d4ea8024831c6e5}{ +\index{samp.h@{samp.h}!samp\_\-P2H@{samp\_\-P2H}} +\index{samp\_\-P2H@{samp\_\-P2H}!samp.h@{samp.h}} +\subsubsection[{samp\_\-P2H}]{\setlength{\rightskip}{0pt plus 5cm}handle\_\-t samp\_\-P2H (void $\ast$ {\em ptr})}} +\label{samp_8h_4d0aef2f09b9cce38d4ea8024831c6e5} + + +Convert a pointer to a handle. + +SAMP\_\-P2H -- Convert a pointer to a handle + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em ptr}]pointer to object \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]handle to object, $<$ 0 on error \end{Desc} + + +Referenced by samp\_\-hubOpen(), and samp\_\-processHubEvent().\hypertarget{samp_8h_4c75de6ddcffde6e3dde7beea68de81c}{ +\index{samp.h@{samp.h}!samp\_\-paramGet@{samp\_\-paramGet}} +\index{samp\_\-paramGet@{samp\_\-paramGet}!samp.h@{samp.h}} +\subsubsection[{samp\_\-paramGet}]{\setlength{\rightskip}{0pt plus 5cm}val samp\_\-paramGet (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ {\bf String} {\em name})}} +\label{samp_8h_4c75de6ddcffde6e3dde7beea68de81c} + + +Get a parameter variable in a remote application. + +SAMP\_\-PARAMGET -- Get a parameter variable in a remote application. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]name of recipient (or 'all') \item[{\em name}]Name of variable in receiver's environment \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]NULL, Value of variable, or list of values \end{Desc} +\hypertarget{samp_8h_659c272ce881662c1826a04728dc06f6}{ +\index{samp.h@{samp.h}!samp\_\-paramGetHandler@{samp\_\-paramGetHandler}} +\index{samp\_\-paramGetHandler@{samp\_\-paramGetHandler}!samp.h@{samp.h}} +\subsubsection[{samp\_\-paramGetHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-paramGetHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{samp_8h_659c272ce881662c1826a04728dc06f6} + + +Handle a client.param.set message. + +SAMP\_\-PARAMGETHANDLER -- Handle a client.param.set message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} +\hypertarget{samp_8h_f2953eb691b695482ffbbea71948374f}{ +\index{samp.h@{samp.h}!samp\_\-paramInit@{samp\_\-paramInit}} +\index{samp\_\-paramInit@{samp\_\-paramInit}!samp.h@{samp.h}} +\subsubsection[{samp\_\-paramInit}]{\setlength{\rightskip}{0pt plus 5cm}nparam samp\_\-paramInit ({\bf Msg} {\em msg})}} +\label{samp_8h_f2953eb691b695482ffbbea71948374f} + + +Get number of Params. + +SAMP\_\-PARAMINIT -- Get number of Params. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em msg}]handle to Msg object \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +Referenced by samp\_\-addFloatParam(), samp\_\-addIntParam(), samp\_\-addListParam(), and samp\_\-addMapParam().\hypertarget{samp_8h_5a44618b7681acff67b3883341494d2d}{ +\index{samp.h@{samp.h}!samp\_\-paramLen@{samp\_\-paramLen}} +\index{samp\_\-paramLen@{samp\_\-paramLen}!samp.h@{samp.h}} +\subsubsection[{samp\_\-paramLen}]{\setlength{\rightskip}{0pt plus 5cm}nparam samp\_\-paramLen ({\bf Msg} {\em msg})}} +\label{samp_8h_5a44618b7681acff67b3883341494d2d} + + +Get number of Params. + +SAMP\_\-PARAMLEN -- Get number of Params. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em msg}]handle to Msg object \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{samp_8h_7a5c9f092b57dfb3206c8decc8558fd3}{ +\index{samp.h@{samp.h}!samp\_\-paramSet@{samp\_\-paramSet}} +\index{samp\_\-paramSet@{samp\_\-paramSet}!samp.h@{samp.h}} +\subsubsection[{samp\_\-paramSet}]{\setlength{\rightskip}{0pt plus 5cm}stat samp\_\-paramSet (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ {\bf String} {\em name}, \/ {\bf String} {\em value})}} +\label{samp_8h_7a5c9f092b57dfb3206c8decc8558fd3} + + +Set an parameter variable in a remote application. + +SAMP\_\-PARAMSET -- Set an parameter variable in a remote application. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]name of recipient (or 'all') \item[{\em name}]Name of variable in receiver's environment \item[{\em value}]Value of variable or NULL \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} +\hypertarget{samp_8h_071aa9e32f2e94d5b667e87cf65d2bdf}{ +\index{samp.h@{samp.h}!samp\_\-paramSetHandler@{samp\_\-paramSetHandler}} +\index{samp\_\-paramSetHandler@{samp\_\-paramSetHandler}!samp.h@{samp.h}} +\subsubsection[{samp\_\-paramSetHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-paramSetHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{samp_8h_071aa9e32f2e94d5b667e87cf65d2bdf} + + +Handle a client.param.set message. + +SAMP\_\-PARAMSETHANDLER -- Handle a client.param.set message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} +\hypertarget{samp_8h_7688cbf8ef852483c077be96151763a6}{ +\index{samp.h@{samp.h}!samp\_\-Ping@{samp\_\-Ping}} +\index{samp\_\-Ping@{samp\_\-Ping}!samp.h@{samp.h}} +\subsubsection[{samp\_\-Ping}]{\setlength{\rightskip}{0pt plus 5cm}stat samp\_\-Ping (handle\_\-t {\em handle}, \/ {\bf String} {\em appName})}} +\label{samp_8h_7688cbf8ef852483c077be96151763a6} + + +Ping the hub/app to see if it is alive (returns $>$0). + +SAMP\_\-PING -- Ping the hub/app to see if it is alive (returns $>$0). + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em appName}]application name \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]OK or ERR if no response \end{Desc} +\hypertarget{samp_8h_16d8b8822d169107b8702ae753797923}{ +\index{samp.h@{samp.h}!samp\_\-PingHandler@{samp\_\-PingHandler}} +\index{samp\_\-PingHandler@{samp\_\-PingHandler}!samp.h@{samp.h}} +\subsubsection[{samp\_\-PingHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-PingHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{samp_8h_16d8b8822d169107b8702ae753797923} + + +Is app alive and responding to messages? + +SAMP\_\-PINGHANDLER -- Simple aliveness test function. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} +\hypertarget{samp_8h_3f5632858a2b09759ffe98cd2e183cfb}{ +\index{samp.h@{samp.h}!samp\_\-pointAtHandler@{samp\_\-pointAtHandler}} +\index{samp\_\-pointAtHandler@{samp\_\-pointAtHandler}!samp.h@{samp.h}} +\subsubsection[{samp\_\-pointAtHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-pointAtHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{samp_8h_3f5632858a2b09759ffe98cd2e183cfb} + + +Handle a coord.pointAt.sky message. + +SAMP\_\-POINTATHANDLER -- Handle a coord.pointAt.sky message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} +\hypertarget{samp_8h_a8a947c24f2c9333adf4e5d7fa11d134}{ +\index{samp.h@{samp.h}!samp\_\-printMap@{samp\_\-printMap}} +\index{samp\_\-printMap@{samp\_\-printMap}!samp.h@{samp.h}} +\subsubsection[{samp\_\-printMap}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-printMap ({\bf String} {\em name}, \/ {\bf Map} {\em map})}} +\label{samp_8h_a8a947c24f2c9333adf4e5d7fa11d134} + + +SAMP\_\-PRINTMAP -- Print the contents of a Map structure. \hypertarget{samp_8h_5b2ef060b3adb18aea7a5a6099c4d0d0}{ +\index{samp.h@{samp.h}!samp\_\-printMetadata@{samp\_\-printMetadata}} +\index{samp\_\-printMetadata@{samp\_\-printMetadata}!samp.h@{samp.h}} +\subsubsection[{samp\_\-printMetadata}]{\setlength{\rightskip}{0pt plus 5cm}samp\_\-printMetadata (handle\_\-t {\em handle}, \/ {\bf String} {\em name})}} +\label{samp_8h_5b2ef060b3adb18aea7a5a6099c4d0d0} + + +Print the metadata for the application. + +SAMP\_\-PRINTMETADATA -- Print the metadata for the application. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{samp_8h_265b5d07cce485a6979fe5f4a2217624}{ +\index{samp.h@{samp.h}!samp\_\-processHubEvent@{samp\_\-processHubEvent}} +\index{samp\_\-processHubEvent@{samp\_\-processHubEvent}!samp.h@{samp.h}} +\subsubsection[{samp\_\-processHubEvent}]{\setlength{\rightskip}{0pt plus 5cm}valid samp\_\-processHubEvent ({\bf String} {\em mtype}, \/ {\bf Map} {\em params})}} +\label{samp_8h_265b5d07cce485a6979fe5f4a2217624} + + +Determine the type of \hyperlink{structHub}{Hub} event mtype. + +SAMP\_\-HUBEVENT -- Determine the type of \hyperlink{structHub}{Hub} event mtype. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em mtype}]mtype string \item[{\em params}]message parameter Map \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]non-zero value if a \hyperlink{structHub}{Hub} event was processed \end{Desc} + + +Referenced by samp\_\-receiveNotification().\hypertarget{samp_8h_59f85e0fce4c9ae7121c98e137d3f743}{ +\index{samp.h@{samp.h}!samp\_\-receiveCall@{samp\_\-receiveCall}} +\index{samp\_\-receiveCall@{samp\_\-receiveCall}!samp.h@{samp.h}} +\subsubsection[{samp\_\-receiveCall}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-receiveCall (void $\ast$ {\em data})}} +\label{samp_8h_59f85e0fce4c9ae7121c98e137d3f743} + + +test.echo method + +receiveCall () client method. + +SAMP\_\-TESTECHO -- test.echo method + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em data}]caller param data \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]status code or errno\end{Desc} +SAMP\_\-RECEIVECALL -- receiveCall() client method. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em data}]caller param data \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]status code or errno \end{Desc} +\hypertarget{samp_8h_03be7cc9e154a6ccdd499286df640936}{ +\index{samp.h@{samp.h}!samp\_\-receiveNotification@{samp\_\-receiveNotification}} +\index{samp\_\-receiveNotification@{samp\_\-receiveNotification}!samp.h@{samp.h}} +\subsubsection[{samp\_\-receiveNotification}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-receiveNotification (void $\ast$ {\em data})}} +\label{samp_8h_03be7cc9e154a6ccdd499286df640936} + + +receiveNotification () client method. + +SAMP\_\-RECEIVENOTIFICATION -- receiveNotification() client method. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em data}]caller param data \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]status code or errno \end{Desc} +\hypertarget{samp_8h_754b50ad59145c7fd1e4c8f4277f11e4}{ +\index{samp.h@{samp.h}!samp\_\-receiveResponse@{samp\_\-receiveResponse}} +\index{samp\_\-receiveResponse@{samp\_\-receiveResponse}!samp.h@{samp.h}} +\subsubsection[{samp\_\-receiveResponse}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-receiveResponse (void $\ast$ {\em data})}} +\label{samp_8h_754b50ad59145c7fd1e4c8f4277f11e4} + + +receiveResponse () client method. + +SAMP\_\-RECEIVERESPONSE -- receiveResponse() client method. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em data}]caller param data \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]status code or errno \end{Desc} +\hypertarget{samp_8h_aef9c2f86c7e4f49fe3df343ef06f3ba}{ +\index{samp.h@{samp.h}!samp\_\-Register@{samp\_\-Register}} +\index{samp\_\-Register@{samp\_\-Register}!samp.h@{samp.h}} +\subsubsection[{samp\_\-Register}]{\setlength{\rightskip}{0pt plus 5cm}handle samp\_\-Register (handle\_\-t {\em handle})}} +\label{samp_8h_aef9c2f86c7e4f49fe3df343ef06f3ba} + + +Register with the \hyperlink{structHub}{Hub} using the currently stored metadata. + +SAMP\_\-REGISTER -- Register with the \hyperlink{structHub}{Hub} using the currently stored metadata. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} +\hypertarget{samp_8h_e30e492f306a40f853a454faf60ab479}{ +\index{samp.h@{samp.h}!samp\_\-removeClient@{samp\_\-removeClient}} +\index{samp\_\-removeClient@{samp\_\-removeClient}!samp.h@{samp.h}} +\subsubsection[{samp\_\-removeClient}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-removeClient (handle\_\-t {\em handle}, \/ {\bf String} {\em id})}} +\label{samp_8h_e30e492f306a40f853a454faf60ab479} + + +SAMP\_\-REMOVECLIENT -- Remove a registered client from the list of known apps that do the public-private name translation. \hypertarget{samp_8h_89fc488147fe2e08b4f3c044c7079962}{ +\index{samp.h@{samp.h}!samp\_\-Reply@{samp\_\-Reply}} +\index{samp\_\-Reply@{samp\_\-Reply}!samp.h@{samp.h}} +\subsubsection[{samp\_\-Reply}]{\setlength{\rightskip}{0pt plus 5cm}status samp\_\-Reply (handle\_\-t {\em handle}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em response})}} +\label{samp_8h_89fc488147fe2e08b4f3c044c7079962} + + +Reply to a message. + +SAMP\_\-REPLY -- Reply to a message. All we do here is send the reply message, we require that the response Map already be defined. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em msg\_\-id}]message ID \item[{\em response}]response map \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +Referenced by samp\_\-receiveCall().\hypertarget{samp_8h_d47754f3b9fceff4d3019821519432b4}{ +\index{samp.h@{samp.h}!samp\_\-replyStatus@{samp\_\-replyStatus}} +\index{samp\_\-replyStatus@{samp\_\-replyStatus}!samp.h@{samp.h}} +\subsubsection[{samp\_\-replyStatus}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-replyStatus (handle\_\-t {\em handle})}} +\label{samp_8h_d47754f3b9fceff4d3019821519432b4} + + +Reply with the status of the last message sent. + +SAMP\_\-REPLYSTATUS -- Reply with the status of the last message sent. + +May be used to 'poll' for a reponse from the caller in cases where use of a callback is a problem. Codes are: $<$0==ERR, 0==PENDING, 1==OK + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em samp}]samp struct ptr \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]message status \end{Desc} +\hypertarget{samp_8h_287569451dc1bf59d1f9f6d13b56716d}{ +\index{samp.h@{samp.h}!samp\_\-resConeHandler@{samp\_\-resConeHandler}} +\index{samp\_\-resConeHandler@{samp\_\-resConeHandler}!samp.h@{samp.h}} +\subsubsection[{samp\_\-resConeHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-resConeHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{samp_8h_287569451dc1bf59d1f9f6d13b56716d} + + +handle a voresource.loadlist message + +SAMP\_\-RESCONEHANDLER -- Handle a voresource.loadlist.cone message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} +\hypertarget{samp_8h_c0bf7cf7fea362c0c82ad7bc3f267c48}{ +\index{samp.h@{samp.h}!samp\_\-resLoadHandler@{samp\_\-resLoadHandler}} +\index{samp\_\-resLoadHandler@{samp\_\-resLoadHandler}!samp.h@{samp.h}} +\subsubsection[{samp\_\-resLoadHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-resLoadHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{samp_8h_c0bf7cf7fea362c0c82ad7bc3f267c48} + + +handle a voresource.loadlist message + +SAMP\_\-RESLOADHANDLER -- handle a voresource.loadlist.$\ast$ message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +Referenced by samp\_\-resConeHandler(), samp\_\-resSiapHandler(), samp\_\-resSsapHandler(), samp\_\-resTapHandler(), and samp\_\-resVOSpaceHandler().\hypertarget{samp_8h_a0bb33d232fcb52aaa470d1f1b1a89d7}{ +\index{samp.h@{samp.h}!samp\_\-resourceLoad@{samp\_\-resourceLoad}} +\index{samp\_\-resourceLoad@{samp\_\-resourceLoad}!samp.h@{samp.h}} +\subsubsection[{samp\_\-resourceLoad}]{\setlength{\rightskip}{0pt plus 5cm}val samp\_\-resourceLoad (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ {\bf String} {\em type}, \/ {\bf String} {\em name}, \/ {\bf Map} {\em resMap})}} +\label{samp_8h_a0bb33d232fcb52aaa470d1f1b1a89d7} + + +Exchange a resource list. + +SAMP\_\-RESOURCELOAD -- Exchange a resource list. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]Name of recipient (or 'all') \item[{\em type}]Resource type (or NULL) \item[{\em name}]Descriptive name (optional) \item[{\em resMap}]Resource map \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} +\hypertarget{samp_8h_8b2300222d7b11f144eb4385412e69a5}{ +\index{samp.h@{samp.h}!samp\_\-resSiapHandler@{samp\_\-resSiapHandler}} +\index{samp\_\-resSiapHandler@{samp\_\-resSiapHandler}!samp.h@{samp.h}} +\subsubsection[{samp\_\-resSiapHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-resSiapHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{samp_8h_8b2300222d7b11f144eb4385412e69a5} + + +handle a voresource.loadlist message + +SAMP\_\-RESSIAPHANDLER -- Handle a voresource.loadlist.siap message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} +\hypertarget{samp_8h_866578a01c3b762435823b1b11869c42}{ +\index{samp.h@{samp.h}!samp\_\-resSsapHandler@{samp\_\-resSsapHandler}} +\index{samp\_\-resSsapHandler@{samp\_\-resSsapHandler}!samp.h@{samp.h}} +\subsubsection[{samp\_\-resSsapHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-resSsapHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{samp_8h_866578a01c3b762435823b1b11869c42} + + +handle a voresource.loadlist message + +SAMP\_\-RESSSAPHANDLER -- Handle a voresource.loadlist.ssap message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} +\hypertarget{samp_8h_ad42ca17cbaf23012ad497559ea45e4c}{ +\index{samp.h@{samp.h}!samp\_\-resTapHandler@{samp\_\-resTapHandler}} +\index{samp\_\-resTapHandler@{samp\_\-resTapHandler}!samp.h@{samp.h}} +\subsubsection[{samp\_\-resTapHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-resTapHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{samp_8h_ad42ca17cbaf23012ad497559ea45e4c} + + +handle a voresource.loadlist message + +SAMP\_\-RESTAPHANDLER -- Handle a voresource.loadlist.tap message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} +\hypertarget{samp_8h_fa207ebdc587ba5eeab60fbf79b635d4}{ +\index{samp.h@{samp.h}!samp\_\-resVOSpaceHandler@{samp\_\-resVOSpaceHandler}} +\index{samp\_\-resVOSpaceHandler@{samp\_\-resVOSpaceHandler}!samp.h@{samp.h}} +\subsubsection[{samp\_\-resVOSpaceHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-resVOSpaceHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{samp_8h_fa207ebdc587ba5eeab60fbf79b635d4} + + +handle a voresource.loadlist message + +SAMP\_\-RESVOSPACEHANDLER -- Handle a voresource.loadlist.vospace message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} +\hypertarget{samp_8h_5837826e5b4e86b2dda0892c48b96faf}{ +\index{samp.h@{samp.h}!samp\_\-sendGeneric@{samp\_\-sendGeneric}} +\index{samp\_\-sendGeneric@{samp\_\-sendGeneric}!samp.h@{samp.h}} +\subsubsection[{samp\_\-sendGeneric}]{\setlength{\rightskip}{0pt plus 5cm}stat samp\_\-sendGeneric (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em args}\mbox{[}$\,$\mbox{]})}} +\label{samp_8h_5837826e5b4e86b2dda0892c48b96faf} + + +Send a geenric message. + +SAMP\_\-SENDGENERIC -- Send a generic message. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]Name of recipient (or 'all') \item[{\em mtype}]Message type \item[{\em args}]Argument list \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR\end{Desc} +This method can be used to send any user-defined message. The 'mtype' string is arbitrary, we just assume the receiving client can understand what it means. The 'args' String array can be an array of values in which case the parameter name will be a series of generic 'arg0' thru 'argN-1' names. \hypertarget{samp_8h_4607721d55904450d4066c360d3dcddd}{ +\index{samp.h@{samp.h}!samp\_\-sendMsg@{samp\_\-sendMsg}} +\index{samp\_\-sendMsg@{samp\_\-sendMsg}!samp.h@{samp.h}} +\subsubsection[{samp\_\-sendMsg}]{\setlength{\rightskip}{0pt plus 5cm}stat samp\_\-sendMsg (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ {\bf Map} {\em msg})}} +\label{samp_8h_4607721d55904450d4066c360d3dcddd} + + +Send the specified message. + +SAMP\_\-SENDMSG -- Send the specified message. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]Name of recipient (or 'all') \item[{\em msg}]Message map \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +Referenced by samp\_\-bibLoad(), samp\_\-cmdExec(), samp\_\-coordPointAtSky(), samp\_\-envSet(), samp\_\-imageLoadFITS(), samp\_\-paramSet(), samp\_\-resourceLoad(), samp\_\-sendGeneric(), samp\_\-specLoadSSAGeneric(), samp\_\-tableHighlightRow(), samp\_\-tableLoadFITS(), samp\_\-tableLoadVOTable(), and samp\_\-tableSelectRowList().\hypertarget{samp_8h_6157dc4b47c65323a3015a434cd02e69}{ +\index{samp.h@{samp.h}!samp\_\-serverPort@{samp\_\-serverPort}} +\index{samp\_\-serverPort@{samp\_\-serverPort}!samp.h@{samp.h}} +\subsubsection[{samp\_\-serverPort}]{\setlength{\rightskip}{0pt plus 5cm}port samp\_\-serverPort (void)}} +\label{samp_8h_6157dc4b47c65323a3015a434cd02e69} + + +Return a unique port number for the server. + +SAMP\_\-SERVERPORT -- Return a unique port number for the server. + +\begin{Desc} +\item[Returns:]port number \end{Desc} + + +Referenced by samp\_\-hubSetXmlrpcCallback(), and sampInit().\hypertarget{samp_8h_8fbfdc550ede5d52840300ab33639c49}{ +\index{samp.h@{samp.h}!samp\_\-setAppVersion@{samp\_\-setAppVersion}} +\index{samp\_\-setAppVersion@{samp\_\-setAppVersion}!samp.h@{samp.h}} +\subsubsection[{samp\_\-setAppVersion}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setAppVersion (handle\_\-t {\em handle}, \/ {\bf String} {\em version})}} +\label{samp_8h_8fbfdc550ede5d52840300ab33639c49} + + +Set the application name string. + +Set the application version string. + +SAMP\_\-SETAPPNAME -- Set the application name string. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp handle \item[{\em name}]application name \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing\end{Desc} +SAMP\_\-SETAPPVERSION -- Set the application version string. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp handle \item[{\em name}]application version \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{samp_8h_a9aef12dd82bfd38a2382a4ac88c54af}{ +\index{samp.h@{samp.h}!samp\_\-setASyncMode@{samp\_\-setASyncMode}} +\index{samp\_\-setASyncMode@{samp\_\-setASyncMode}!samp.h@{samp.h}} +\subsubsection[{samp\_\-setASyncMode}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setASyncMode (handle\_\-t {\em handle})}} +\label{samp_8h_a9aef12dd82bfd38a2382a4ac88c54af} + + +Set the calling mode to use asynchronous messaging. + +SAMP\_\-SETASYNCMODE -- Set the calling mode to use asynchronous messaging. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{samp_8h_d4c1514e94c9ef511cfcd27004c38c4d}{ +\index{samp.h@{samp.h}!samp\_\-setCallByRef@{samp\_\-setCallByRef}} +\index{samp\_\-setCallByRef@{samp\_\-setCallByRef}!samp.h@{samp.h}} +\subsubsection[{samp\_\-setCallByRef}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setCallByRef (handle\_\-t {\em handle})}} +\label{samp_8h_d4c1514e94c9ef511cfcd27004c38c4d} + + +Have interface call user handlers by reference. + +SAMP\_\-SETCALLBYREF -- Have interface call user handlers by reference. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{samp_8h_fc27715ec9a5cb60cf0b5415eb7f9a48}{ +\index{samp.h@{samp.h}!samp\_\-setCallMode@{samp\_\-setCallMode}} +\index{samp\_\-setCallMode@{samp\_\-setCallMode}!samp.h@{samp.h}} +\subsubsection[{samp\_\-setCallMode}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setCallMode (handle\_\-t {\em handle}, \/ int {\em mode})}} +\label{samp_8h_fc27715ec9a5cb60cf0b5415eb7f9a48} + + +Set the default calling mode (synch or asynch). + +SAMP\_\-SETCALLMODE -- Set the default calling mode (synch or asynch) + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp handle \item[{\em mode}]call mode (synch or asynch) \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{samp_8h_3c026895e4d28567eb63c3b9cc16cd40}{ +\index{samp.h@{samp.h}!samp\_\-setErr@{samp\_\-setErr}} +\index{samp\_\-setErr@{samp\_\-setErr}!samp.h@{samp.h}} +\subsubsection[{samp\_\-setErr}]{\setlength{\rightskip}{0pt plus 5cm}stat samp\_\-setErr (handle\_\-t {\em handle}, \/ {\bf Map} {\em resp})}} +\label{samp_8h_3c026895e4d28567eb63c3b9cc16cd40} + + +Set the error response string. + +SAMP\_\-SETERR -- Set the error response string/code. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em resp}]Response map \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +Referenced by samp\_\-callAll(), samp\_\-callAndWait(), samp\_\-Ping(), and samp\_\-sendMsg().\hypertarget{samp_8h_041a551aff57ca03f3ff72a9803e2b58}{ +\index{samp.h@{samp.h}!samp\_\-setFloatInList@{samp\_\-setFloatInList}} +\index{samp\_\-setFloatInList@{samp\_\-setFloatInList}!samp.h@{samp.h}} +\subsubsection[{samp\_\-setFloatInList}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setFloatInList ({\bf List} {\em list}, \/ float {\em rval})}} +\label{samp_8h_041a551aff57ca03f3ff72a9803e2b58} + + +Set a Float in a List (append). + +SAMP\_\-SETFLOATINLIST -- Set a Float in a List (append) + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em list1}]List object handle \item[{\em rval}]Float value to be appended \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{samp_8h_0f07ae542f5b317311b3799bd96a88fd}{ +\index{samp.h@{samp.h}!samp\_\-setFloatInMap@{samp\_\-setFloatInMap}} +\index{samp\_\-setFloatInMap@{samp\_\-setFloatInMap}!samp.h@{samp.h}} +\subsubsection[{samp\_\-setFloatInMap}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setFloatInMap ({\bf Map} {\em map}, \/ char $\ast$ {\em key}, \/ float {\em value})}} +\label{samp_8h_0f07ae542f5b317311b3799bd96a88fd} + + +Set a string in a Map (append). + +SAMP\_\-SETFLOATINMAP -- Set a Float in a Map (append) + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em map}]handle to Map object \item[{\em key}]Map key \item[{\em value}]value \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{samp_8h_1cd88b9e964d61403d6aad89dddce591}{ +\index{samp.h@{samp.h}!samp\_\-setHandlerReply@{samp\_\-setHandlerReply}} +\index{samp\_\-setHandlerReply@{samp\_\-setHandlerReply}!samp.h@{samp.h}} +\subsubsection[{samp\_\-setHandlerReply}]{\setlength{\rightskip}{0pt plus 5cm}samp\_\-setHandlerReply ({\bf Map} {\em resp})}} +\label{samp_8h_1cd88b9e964d61403d6aad89dddce591} + + +Set the \hyperlink{structSamp}{Samp} Handler reply map. + +SAMP\_\-SETHANDLERREPLY -- Set the \hyperlink{structSamp}{Samp} Handler reply map. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em resp}]response map \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +Referenced by samp\_\-envGetHandler(), and samp\_\-paramGetHandler().\hypertarget{samp_8h_2d8a8a26d7284bb211a933895cddd29c}{ +\index{samp.h@{samp.h}!samp\_\-setIntInList@{samp\_\-setIntInList}} +\index{samp\_\-setIntInList@{samp\_\-setIntInList}!samp.h@{samp.h}} +\subsubsection[{samp\_\-setIntInList}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setIntInList ({\bf List} {\em list}, \/ int {\em ival})}} +\label{samp_8h_2d8a8a26d7284bb211a933895cddd29c} + + +Set an Int in a List (append). + +SAMP\_\-SETINTINLIST -- Set an Int in a List (append) + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em list1}]List object handle \item[{\em ival}]Integer value to be appended \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +Referenced by samp\_\-tableSelectRowList().\hypertarget{samp_8h_c22ec42dbf9a01c9b4e00cf011e7eb9d}{ +\index{samp.h@{samp.h}!samp\_\-setIntInMap@{samp\_\-setIntInMap}} +\index{samp\_\-setIntInMap@{samp\_\-setIntInMap}!samp.h@{samp.h}} +\subsubsection[{samp\_\-setIntInMap}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setIntInMap ({\bf Map} {\em map}, \/ char $\ast$ {\em key}, \/ int {\em value})}} +\label{samp_8h_c22ec42dbf9a01c9b4e00cf011e7eb9d} + + +Set a Int in a Map (append). + +SAMP\_\-SETINTINMAP -- Set a Int in a Map (append) + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em map}]handle to Map object \item[{\em key}]Map key \item[{\em value}]value \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{samp_8h_0ff97d44e62b7c88a046a29324552400}{ +\index{samp.h@{samp.h}!samp\_\-setListInList@{samp\_\-setListInList}} +\index{samp\_\-setListInList@{samp\_\-setListInList}!samp.h@{samp.h}} +\subsubsection[{samp\_\-setListInList}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setListInList ({\bf List} {\em list1}, \/ {\bf List} {\em list2})}} +\label{samp_8h_0ff97d44e62b7c88a046a29324552400} + + +Set a List in another List (append). + +SAMP\_\-SETLISTINLIST -- Set a List in another List (append) + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em list1}]List object handle \item[{\em list2}]List to be appended \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{samp_8h_362c2f670c98dd6a3ef69debd1871604}{ +\index{samp.h@{samp.h}!samp\_\-setListInMap@{samp\_\-setListInMap}} +\index{samp\_\-setListInMap@{samp\_\-setListInMap}!samp.h@{samp.h}} +\subsubsection[{samp\_\-setListInMap}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setListInMap ({\bf Map} {\em map}, \/ char $\ast$ {\em key}, \/ {\bf List} {\em list})}} +\label{samp_8h_362c2f670c98dd6a3ef69debd1871604} + + +Set a List in a Map (append). + +SAMP\_\-SETLISTINMAP -- Set a List in a Map (append) + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em map}]handle to Map object \item[{\em key}]Map key \item[{\em list}]handle to List object to set \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{samp_8h_ea188bb711f3b5549d11204b0ff2da08}{ +\index{samp.h@{samp.h}!samp\_\-setMapInList@{samp\_\-setMapInList}} +\index{samp\_\-setMapInList@{samp\_\-setMapInList}!samp.h@{samp.h}} +\subsubsection[{samp\_\-setMapInList}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setMapInList ({\bf List} {\em list}, \/ {\bf Map} {\em map})}} +\label{samp_8h_ea188bb711f3b5549d11204b0ff2da08} + + +Set a Map in a List (append). + +SAMP\_\-SETMAPINLIST -- Set a Map in a List (append) + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em list}]List object handle \item[{\em map}]Map object to be set \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{samp_8h_f102490efe1b92d99b67f244dc498c7b}{ +\index{samp.h@{samp.h}!samp\_\-setMapInMap@{samp\_\-setMapInMap}} +\index{samp\_\-setMapInMap@{samp\_\-setMapInMap}!samp.h@{samp.h}} +\subsubsection[{samp\_\-setMapInMap}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setMapInMap ({\bf Map} {\em map1}, \/ char $\ast$ {\em key}, \/ {\bf Map} {\em map2})}} +\label{samp_8h_f102490efe1b92d99b67f244dc498c7b} + + +Set a Map in a Map (append). + +SAMP\_\-SETMAPINMAP -- Set a Map in a Map (append) + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em map1}]handle to Map object \item[{\em key}]Map key \item[{\em map2}]handle to Map object to set \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +Referenced by samp\_\-envGetHandler(), samp\_\-getOKMap(), samp\_\-paramGetHandler(), and sampInit().\hypertarget{samp_8h_68b51d70127bbff10fd30396e40a482d}{ +\index{samp.h@{samp.h}!samp\_\-setMsgMode@{samp\_\-setMsgMode}} +\index{samp\_\-setMsgMode@{samp\_\-setMsgMode}!samp.h@{samp.h}} +\subsubsection[{samp\_\-setMsgMode}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setMsgMode (handle\_\-t {\em handle}, \/ int {\em mode})}} +\label{samp_8h_68b51d70127bbff10fd30396e40a482d} + + +Set the message pattern to the specified mode. + +SAMP\_\-SETMSGMODE -- Set the message pattern to the specified mode. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp handle \item[{\em mode}]message mode \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::msgMode.\hypertarget{samp_8h_9056a8601300892f918835259c7fdb3b}{ +\index{samp.h@{samp.h}!samp\_\-setNotifyMode@{samp\_\-setNotifyMode}} +\index{samp\_\-setNotifyMode@{samp\_\-setNotifyMode}!samp.h@{samp.h}} +\subsubsection[{samp\_\-setNotifyMode}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setNotifyMode (handle\_\-t {\em handle})}} +\label{samp_8h_9056a8601300892f918835259c7fdb3b} + + +Set the calling mode to use notification messaging. + +SAMP\_\-SETNOTIFYMODE -- Set the calling mode to use notification messaging. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{samp_8h_a3c0bdb4c512357dbc53b0ad7a7d5b01}{ +\index{samp.h@{samp.h}!samp\_\-setReplyCallback@{samp\_\-setReplyCallback}} +\index{samp\_\-setReplyCallback@{samp\_\-setReplyCallback}!samp.h@{samp.h}} +\subsubsection[{samp\_\-setReplyCallback}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setReplyCallback (handle\_\-t {\em handle}, \/ int $\ast$ {\em func})}} +\label{samp_8h_a3c0bdb4c512357dbc53b0ad7a7d5b01} + + +Set the Reply callback. samp\_\-setReplyCallback (handle\_\-t handle, int $\ast$func). + +SAMP\_\-SETREPLYCALLBACK -- Set the Reply callback. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp handle \item[{\em func}]callback for Reply message \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{samp_8h_3db66f28546459327665f8491ea97f4d}{ +\index{samp.h@{samp.h}!samp\_\-setResponseCallback@{samp\_\-setResponseCallback}} +\index{samp\_\-setResponseCallback@{samp\_\-setResponseCallback}!samp.h@{samp.h}} +\subsubsection[{samp\_\-setResponseCallback}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setResponseCallback (handle\_\-t {\em handle}, \/ int $\ast$ {\em func})}} +\label{samp_8h_3db66f28546459327665f8491ea97f4d} + + +Set the Response callback. samp\_\-setResponseCallback (handle\_\-t handle, int $\ast$func). + +SAMP\_\-SETRESPONSECALLBACK -- Set the Response callback. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp handle \item[{\em func}]callback for message response \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{samp_8h_8b83cf8a75c16c45c547be68f0bf9f64}{ +\index{samp.h@{samp.h}!samp\_\-setSampHandler@{samp\_\-setSampHandler}} +\index{samp\_\-setSampHandler@{samp\_\-setSampHandler}!samp.h@{samp.h}} +\subsubsection[{samp\_\-setSampHandler}]{\setlength{\rightskip}{0pt plus 5cm}samp\_\-setSampHandler (handle\_\-t {\em handle}, \/ {\bf String} {\em mtype}, \/ void $\ast$ {\em func})}} +\label{samp_8h_8b83cf8a75c16c45c547be68f0bf9f64} + + +Set the SAMP interface handler for the mtype. + +SAMP\_\-SETSAMPHANDLER -- Set the SAMP interface handler for the mtype. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]user handle to samp struct \item[{\em mtype}]mtype name \item[{\em func}]callback function \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +Referenced by samp\_\-Subscribe().\hypertarget{samp_8h_5b69180b036e58528c98b1cf5a42825a}{ +\index{samp.h@{samp.h}!samp\_\-setStringInList@{samp\_\-setStringInList}} +\index{samp\_\-setStringInList@{samp\_\-setStringInList}!samp.h@{samp.h}} +\subsubsection[{samp\_\-setStringInList}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setStringInList ({\bf List} {\em list}, \/ char $\ast$ {\em value})}} +\label{samp_8h_5b69180b036e58528c98b1cf5a42825a} + + +Set a string in a List (append). + +SAMP\_\-SETSTRINGINLIST -- Set a string in a List (append) + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em list}]List object handle \item[{\em value}]string value to set \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +Referenced by samp\_\-GetRegisteredClients(), and samp\_\-GetSubscribedClients().\hypertarget{samp_8h_b9b2157de89369eb5cd95bfe804eb89a}{ +\index{samp.h@{samp.h}!samp\_\-setStringInMap@{samp\_\-setStringInMap}} +\index{samp\_\-setStringInMap@{samp\_\-setStringInMap}!samp.h@{samp.h}} +\subsubsection[{samp\_\-setStringInMap}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setStringInMap ({\bf Map} {\em map}, \/ char $\ast$ {\em key}, \/ char $\ast$ {\em value})}} +\label{samp_8h_b9b2157de89369eb5cd95bfe804eb89a} + + +Set a string in a Map (append). + +SAMP\_\-SETSTRINGINMAP -- Set a string in a Map (append) + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em map}]handle to Map object \item[{\em key}]Map key \item[{\em value}]Map value \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +Referenced by samp\_\-envGetHandler(), samp\_\-getOKMap(), samp\_\-paramGetHandler(), and sampInit().\hypertarget{samp_8h_1d00dc78292cfbc01262ef65ab055063}{ +\index{samp.h@{samp.h}!samp\_\-setSyncMode@{samp\_\-setSyncMode}} +\index{samp\_\-setSyncMode@{samp\_\-setSyncMode}!samp.h@{samp.h}} +\subsubsection[{samp\_\-setSyncMode}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setSyncMode (handle\_\-t {\em handle})}} +\label{samp_8h_1d00dc78292cfbc01262ef65ab055063} + + +Set the calling mode to use synchronous messaging. + +SAMP\_\-SETSYNCMODE -- Set the calling mode to use synchronous messaging. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{samp_8h_e11a97c262ab5ab4438eca6c60c0d8cf}{ +\index{samp.h@{samp.h}!samp\_\-setTimeout@{samp\_\-setTimeout}} +\index{samp\_\-setTimeout@{samp\_\-setTimeout}!samp.h@{samp.h}} +\subsubsection[{samp\_\-setTimeout}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setTimeout (handle\_\-t {\em handle}, \/ int {\em timeout})}} +\label{samp_8h_e11a97c262ab5ab4438eca6c60c0d8cf} + + +Set the message timeout value (in seconds). + +SAMP\_\-SETTIMEOUT -- Set the message timeout value (in seconds). + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp handle \item[{\em name}]application name \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{samp_8h_b969017f97d850b092bde60a2d445a2b}{ +\index{samp.h@{samp.h}!samp\_\-setUserHandler@{samp\_\-setUserHandler}} +\index{samp\_\-setUserHandler@{samp\_\-setUserHandler}!samp.h@{samp.h}} +\subsubsection[{samp\_\-setUserHandler}]{\setlength{\rightskip}{0pt plus 5cm}samp\_\-setUserHandler (handle\_\-t {\em handle}, \/ {\bf String} {\em mtype}, \/ void $\ast$ {\em func})}} +\label{samp_8h_b969017f97d850b092bde60a2d445a2b} + + +Set the user-interface handler for the mtype. + +SAMP\_\-SETUSERHANDLER -- Set the user-interface handler for the mtype. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]user handle to samp struct \item[{\em mtype}]mtype name \item[{\em func}]callback function \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +Referenced by samp\_\-Subscribe().\hypertarget{samp_8h_bc319b97b3dbea29bd79c4f723db5438}{ +\index{samp.h@{samp.h}!samp\_\-specLoadHandler@{samp\_\-specLoadHandler}} +\index{samp\_\-specLoadHandler@{samp\_\-specLoadHandler}!samp.h@{samp.h}} +\subsubsection[{samp\_\-specLoadHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-specLoadHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{samp_8h_bc319b97b3dbea29bd79c4f723db5438} + + +Handle a spectrum.load.$\ast$ message. + +SAMP\_\-SPECLOADHANDLER -- Handle a spectrum.load.$\ast$ message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +Referenced by samp\_\-specSSAHandler().\hypertarget{samp_8h_4869a1bb04a96514f153dc5bfbed8e6e}{ +\index{samp.h@{samp.h}!samp\_\-specLoadSSAGeneric@{samp\_\-specLoadSSAGeneric}} +\index{samp\_\-specLoadSSAGeneric@{samp\_\-specLoadSSAGeneric}!samp.h@{samp.h}} +\subsubsection[{samp\_\-specLoadSSAGeneric}]{\setlength{\rightskip}{0pt plus 5cm}stat samp\_\-specLoadSSAGeneric (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ {\bf String} {\em url}, \/ {\bf Map} {\em meta}, \/ {\bf String} {\em spectrumId}, \/ {\bf String} {\em name})}} +\label{samp_8h_4869a1bb04a96514f153dc5bfbed8e6e} + + +Load a generic spectrum from an SSA service. + +SAMP\_\-SPECLOADSSAGENERIC -- Load a generic spectrum from an SSA service. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]name of recipient (or 'all') \item[{\em url}]URL of spectrum to load \item[{\em meta}]Metadata map describing data found at the URL \item[{\em spectrumId}]Identifier for spectrum (optional) \item[{\em name}]Name used to label spectrum (optional); \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} +\hypertarget{samp_8h_dd2bca8fa3bf3b4ebbf449edc6b65d85}{ +\index{samp.h@{samp.h}!samp\_\-specSSAHandler@{samp\_\-specSSAHandler}} +\index{samp\_\-specSSAHandler@{samp\_\-specSSAHandler}!samp.h@{samp.h}} +\subsubsection[{samp\_\-specSSAHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-specSSAHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{samp_8h_dd2bca8fa3bf3b4ebbf449edc6b65d85} + + +Handle a spectrum.load.ssa-generic message. + +SAMP\_\-SPECSSAHANDLER -- Handle a spectrum.load.ssa-generic message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} +\hypertarget{samp_8h_2e342b672e77e012cc98a6f5506a44be}{ +\index{samp.h@{samp.h}!samp\_\-StatusHandler@{samp\_\-StatusHandler}} +\index{samp\_\-StatusHandler@{samp\_\-StatusHandler}!samp.h@{samp.h}} +\subsubsection[{samp\_\-StatusHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-StatusHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{samp_8h_2e342b672e77e012cc98a6f5506a44be} + + +Return status of the task. + +SAMP\_\-STATUSHANDLER -- Return status of the task. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} +\hypertarget{samp_8h_c6b76655d73825acdacfac8b5a1139ee}{ +\index{samp.h@{samp.h}!samp\_\-Subscribe@{samp\_\-Subscribe}} +\index{samp\_\-Subscribe@{samp\_\-Subscribe}!samp.h@{samp.h}} +\subsubsection[{samp\_\-Subscribe}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-Subscribe (handle\_\-t {\em handle}, \/ {\bf String} {\em mtype}, \/ void $\ast$ {\em userFunc})}} +\label{samp_8h_c6b76655d73825acdacfac8b5a1139ee} + + +Subscribe to a given mtype. + +SAMP\_\-SUBSCRIBE -- Subscribe to a given mtype. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]user handle to samp struct \item[{\em mtype}]mtype name \item[{\em func}]callback function \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{samp_8h_0503d3ee247a6a962a2a8da672261ab7}{ +\index{samp.h@{samp.h}!samp\_\-tableHighlightRow@{samp\_\-tableHighlightRow}} +\index{samp\_\-tableHighlightRow@{samp\_\-tableHighlightRow}!samp.h@{samp.h}} +\subsubsection[{samp\_\-tableHighlightRow}]{\setlength{\rightskip}{0pt plus 5cm}stat samp\_\-tableHighlightRow (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ {\bf String} {\em tableId}, \/ {\bf String} {\em url}, \/ int {\em row})}} +\label{samp_8h_0503d3ee247a6a962a2a8da672261ab7} + + +Tell an app to highlight a table row. + +SAMP\_\-TABLEHIGHLIGHTROW -- Tell an app to highlight a table row. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]Message recipient (or \char`\"{}all\char`\"{} for broadcast) \item[{\em tableId}]ID associated with a previously loaded table \item[{\em url}]URL to table to be loaded \item[{\em rows}]List of (zero-based) row indices \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} +\hypertarget{samp_8h_6b950e53c7fdf481a13c8a2ec353dca1}{ +\index{samp.h@{samp.h}!samp\_\-tableLoadFITS@{samp\_\-tableLoadFITS}} +\index{samp\_\-tableLoadFITS@{samp\_\-tableLoadFITS}!samp.h@{samp.h}} +\subsubsection[{samp\_\-tableLoadFITS}]{\setlength{\rightskip}{0pt plus 5cm}stat samp\_\-tableLoadFITS (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ {\bf String} {\em url}, \/ {\bf String} {\em tableId}, \/ {\bf String} {\em name})}} +\label{samp_8h_6b950e53c7fdf481a13c8a2ec353dca1} + + +Tell an app to load a FITS table. + +SAMP\_\-TABLELOADFITS -- Tell an app to load a FITS table. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]Message recipient (or \char`\"{}all\char`\"{} for broadcast) \item[{\em url}]URL to table to be loaded \item[{\em tableId}]ID assigned to table (optional) \item[{\em name}]Name assigned to table (optional) \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} +\hypertarget{samp_8h_45c2023312cd2adfa40feb2eb8a3e143}{ +\index{samp.h@{samp.h}!samp\_\-tableLoadVOTable@{samp\_\-tableLoadVOTable}} +\index{samp\_\-tableLoadVOTable@{samp\_\-tableLoadVOTable}!samp.h@{samp.h}} +\subsubsection[{samp\_\-tableLoadVOTable}]{\setlength{\rightskip}{0pt plus 5cm}stat samp\_\-tableLoadVOTable (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ {\bf String} {\em url}, \/ {\bf String} {\em tableId}, \/ {\bf String} {\em name})}} +\label{samp_8h_45c2023312cd2adfa40feb2eb8a3e143} + + +Tell an app to load a VOTable. + +SAMP\_\-TABLELOADVOTABLE -- Tell an app to load a VOTable. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]Message recipient (or \char`\"{}all\char`\"{} for broadcast) \item[{\em url}]URL to table to be loaded \item[{\em tableId}]ID assigned to table (optional) \item[{\em name}]Name assigned to table (optional) \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} +\hypertarget{samp_8h_a410ef908863f7c5b2c99844ebb73d35}{ +\index{samp.h@{samp.h}!samp\_\-tableSelectRowList@{samp\_\-tableSelectRowList}} +\index{samp\_\-tableSelectRowList@{samp\_\-tableSelectRowList}!samp.h@{samp.h}} +\subsubsection[{samp\_\-tableSelectRowList}]{\setlength{\rightskip}{0pt plus 5cm}stat samp\_\-tableSelectRowList (handle\_\-t {\em handle}, \/ {\bf String} {\em recip}, \/ {\bf String} {\em tableId}, \/ {\bf String} {\em url}, \/ int {\em rows}\mbox{[}$\,$\mbox{]}, \/ int {\em nrows})}} +\label{samp_8h_a410ef908863f7c5b2c99844ebb73d35} + + +Tell an app to select a list of table rows. + +SAMP\_\-TABLESELECTROWLIST -- Tell an app to select a list of table rows. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \item[{\em recip}]Message recipient (or \char`\"{}all\char`\"{} for broadcast) \item[{\em tableId}]ID associated with a previously loaded table \item[{\em url}]URL to table to be loaded \item[{\em rows}]Array of (zero-based) row indices \item[{\em nrows}]Number of rows \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} +\hypertarget{samp_8h_d9184eb45a5bc93b5205fd5b1c6ef688}{ +\index{samp.h@{samp.h}!samp\_\-tbHighlightHandler@{samp\_\-tbHighlightHandler}} +\index{samp\_\-tbHighlightHandler@{samp\_\-tbHighlightHandler}!samp.h@{samp.h}} +\subsubsection[{samp\_\-tbHighlightHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-tbHighlightHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{samp_8h_d9184eb45a5bc93b5205fd5b1c6ef688} + + +Handle a table.highlight.row message. + +SAMP\_\-TBHIGHLIGHTHANDLER -- Handle a table.highlight.row message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} +\hypertarget{samp_8h_750c0fee0c7a99e135299c08751f288c}{ +\index{samp.h@{samp.h}!samp\_\-tbLoadFITSHandler@{samp\_\-tbLoadFITSHandler}} +\index{samp\_\-tbLoadFITSHandler@{samp\_\-tbLoadFITSHandler}!samp.h@{samp.h}} +\subsubsection[{samp\_\-tbLoadFITSHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-tbLoadFITSHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{samp_8h_750c0fee0c7a99e135299c08751f288c} + + +Handle a generic table.load.fits message. + +SAMP\_\-TBLOADFITSHANDLER -- Handle a generic table.load.fits message $\ast$\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} +\hypertarget{samp_8h_26f96dc6cbf72283e2ee9cb8b4619ed3}{ +\index{samp.h@{samp.h}!samp\_\-tbLoadHandler@{samp\_\-tbLoadHandler}} +\index{samp\_\-tbLoadHandler@{samp\_\-tbLoadHandler}!samp.h@{samp.h}} +\subsubsection[{samp\_\-tbLoadHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-tbLoadHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{samp_8h_26f96dc6cbf72283e2ee9cb8b4619ed3} + + +Handle a generic table.load.$\ast$ message. + +SAMP\_\-TBLOADHANDLER -- Handle a generic table.load.$\ast$ message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} + + +Referenced by samp\_\-tbLoadFITSHandler(), and samp\_\-tbLoadVOTHandler().\hypertarget{samp_8h_144ec2329355d91022d5ea38736c0093}{ +\index{samp.h@{samp.h}!samp\_\-tbLoadVOTHandler@{samp\_\-tbLoadVOTHandler}} +\index{samp\_\-tbLoadVOTHandler@{samp\_\-tbLoadVOTHandler}!samp.h@{samp.h}} +\subsubsection[{samp\_\-tbLoadVOTHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-tbLoadVOTHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{samp_8h_144ec2329355d91022d5ea38736c0093} + + +Handle a generic table.load.votable message. + +SAMP\_\-TBLOADVOTHANDLER -- Handle a generic table.load.votable message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} +\hypertarget{samp_8h_98d68d7091c0b7790631bb53e0ace656}{ +\index{samp.h@{samp.h}!samp\_\-tbSelectHandler@{samp\_\-tbSelectHandler}} +\index{samp\_\-tbSelectHandler@{samp\_\-tbSelectHandler}!samp.h@{samp.h}} +\subsubsection[{samp\_\-tbSelectHandler}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-tbSelectHandler ({\bf String} {\em sender}, \/ {\bf String} {\em mtype}, \/ {\bf String} {\em msg\_\-id}, \/ {\bf Map} {\em msg\_\-map})}} +\label{samp_8h_98d68d7091c0b7790631bb53e0ace656} + + +Handle a table.select.rowList message. + +SAMP\_\-TBSELECTHANDLER -- Handle a table.select.rowList message + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em sender}]sender name \item[{\em mtype}]mtype string \item[{\em msg\_\-id}]message id \item[{\em msg\_\-map}]message map struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} +\hypertarget{samp_8h_5e3a44429f332694cc2cedc2e38856ce}{ +\index{samp.h@{samp.h}!samp\_\-UnRegister@{samp\_\-UnRegister}} +\index{samp\_\-UnRegister@{samp\_\-UnRegister}!samp.h@{samp.h}} +\subsubsection[{samp\_\-UnRegister}]{\setlength{\rightskip}{0pt plus 5cm}stat samp\_\-UnRegister (handle\_\-t {\em handle})}} +\label{samp_8h_5e3a44429f332694cc2cedc2e38856ce} + + +Un-Register from the hub. + +SAMP\_\-UNREGISTER -- Un-Register from the hub. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]samp struct handle \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]SAMP\_\-OK or SAMP\_\-ERR \end{Desc} +\hypertarget{samp_8h_b3fded97bbbf3751c4916543959f16a5}{ +\index{samp.h@{samp.h}!samp\_\-Unsubscribe@{samp\_\-Unsubscribe}} +\index{samp\_\-Unsubscribe@{samp\_\-Unsubscribe}!samp.h@{samp.h}} +\subsubsection[{samp\_\-Unsubscribe}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-Unsubscribe (handle\_\-t {\em handle}, \/ {\bf String} {\em mtype})}} +\label{samp_8h_b3fded97bbbf3751c4916543959f16a5} + + +Unsubscribe to a given mtype. + +SAMP\_\-UNSUBSCRIBE -- Unsubscribe to a given mtype. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]user handle to samp struct \item[{\em mtype}]mtype name \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{samp_8h_123413db26ad50a84bd41863af5deae5}{ +\index{samp.h@{samp.h}!sampClose@{sampClose}} +\index{sampClose@{sampClose}!samp.h@{samp.h}} +\subsubsection[{sampClose}]{\setlength{\rightskip}{0pt plus 5cm}void sampClose (handle\_\-t {\em handle})}} +\label{samp_8h_123413db26ad50a84bd41863af5deae5} + + +Close the SAMP interface and free resources. + +SAMP\_\-CLOSE -- Close the SAMP interface. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]user handle to samp struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{samp_8h_124214f79e99619b377d98ed2fd93eb9}{ +\index{samp.h@{samp.h}!sampDebug@{sampDebug}} +\index{sampDebug@{sampDebug}!samp.h@{samp.h}} +\subsubsection[{sampDebug}]{\setlength{\rightskip}{0pt plus 5cm}int sampDebug (handle\_\-t {\em handle}, \/ int {\em value})}} +\label{samp_8h_124214f79e99619b377d98ed2fd93eb9} + + +Set interface debug level. + +SAMPDEBUG -- Set interface debug level. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]user handle to samp struct \item[{\em value}]debug value \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::debug, and Samp::verbose.\hypertarget{samp_8h_30f39c72c3783055faa82ad3860f3d1d}{ +\index{samp.h@{samp.h}!sampInit@{sampInit}} +\index{sampInit@{sampInit}!samp.h@{samp.h}} +\subsubsection[{sampInit}]{\setlength{\rightskip}{0pt plus 5cm}handle\_\-t sampInit ({\bf String} {\em appName}, \/ {\bf String} {\em description})}} +\label{samp_8h_30f39c72c3783055faa82ad3860f3d1d} + + +Initialize the SAMP interface. + +Prototype declarations. + +SAMP\_\-INIT -- Initialize the SAMP interface. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em appName}]application name \item[{\em description}]description of application \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]samp handle \end{Desc} +\hypertarget{samp_8h_329a8a5f83162ed49baa28f008131d45}{ +\index{samp.h@{samp.h}!sampLog@{sampLog}} +\index{sampLog@{sampLog}!samp.h@{samp.h}} +\subsubsection[{sampLog}]{\setlength{\rightskip}{0pt plus 5cm}sampLog (handle\_\-t {\em handle}, \/ char $\ast$ {\em format}, \/ {\em ...})}} +\label{samp_8h_329a8a5f83162ed49baa28f008131d45} + + +SAMP message logger. + +SAMPLOG -- SAMP message logger. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]SAMP handle \item[{\em format}]message format string \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{samp_8h_65908d088c8b917d10db38c147590ad9}{ +\index{samp.h@{samp.h}!sampShutdown@{sampShutdown}} +\index{sampShutdown@{sampShutdown}!samp.h@{samp.h}} +\subsubsection[{sampShutdown}]{\setlength{\rightskip}{0pt plus 5cm}int sampShutdown (handle\_\-t {\em handle})}} +\label{samp_8h_65908d088c8b917d10db38c147590ad9} + + +Shut down the active SAMP interface. + +SAMP\_\-SHUTDOWN -- Shut down the active SAMP interface. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]user handle to samp struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{samp_8h_8e18ae12df031094ace47863f93b3634}{ +\index{samp.h@{samp.h}!sampStartup@{sampStartup}} +\index{sampStartup@{sampStartup}!samp.h@{samp.h}} +\subsubsection[{sampStartup}]{\setlength{\rightskip}{0pt plus 5cm}int sampStartup (handle\_\-t {\em handle})}} +\label{samp_8h_8e18ae12df031094ace47863f93b3634} + + +Startup the SAMP interface to send/receive messages. + +SAMP\_\-STARTUP -- Startup the SAMP interface to send/receive messages. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]user handle to samp struct \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} +\hypertarget{samp_8h_65e3987c9b510018dcdd91203b437e40}{ +\index{samp.h@{samp.h}!sampTrace@{sampTrace}} +\index{sampTrace@{sampTrace}!samp.h@{samp.h}} +\subsubsection[{sampTrace}]{\setlength{\rightskip}{0pt plus 5cm}sampTrace (handle\_\-t {\em handle}, \/ char $\ast$ {\em format}, \/ {\em ...})}} +\label{samp_8h_65e3987c9b510018dcdd91203b437e40} + + +SAMP tracer. + +SAMPTRACE -- SAMP tracer. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]SAMP handle \item[{\em format}]message format string \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +Referenced by samp\_\-Metadata(), sampClose(), and sampInit().\hypertarget{samp_8h_c0c812e5d3f2c9ee6c54067e4c81b3dd}{ +\index{samp.h@{samp.h}!sampVerbose@{sampVerbose}} +\index{sampVerbose@{sampVerbose}!samp.h@{samp.h}} +\subsubsection[{sampVerbose}]{\setlength{\rightskip}{0pt plus 5cm}int sampVerbose (handle\_\-t {\em handle}, \/ int {\em value})}} +\label{samp_8h_c0c812e5d3f2c9ee6c54067e4c81b3dd} + + +Set interface debug level. + +SAMPVERBOSE -- Set interface verbose level. + +\begin{Desc} +\item[Parameters:] +\begin{description} +\item[{\em handle}]user handle to samp struct \item[{\em value}]verbose value \end{description} +\end{Desc} +\begin{Desc} +\item[Returns:]nothing \end{Desc} + + +References Samp::verbose. \ No newline at end of file diff --git a/vendor/voclient/libsamp/doc/latex/structClient.tex b/vendor/voclient/libsamp/doc/latex/structClient.tex new file mode 100644 index 00000000..fe0ca813 --- /dev/null +++ b/vendor/voclient/libsamp/doc/latex/structClient.tex @@ -0,0 +1,37 @@ +\hypertarget{structClient}{ +\section{Client Struct Reference} +\label{structClient}\index{Client@{Client}} +} +{\tt \#include $<$samp.h$>$} + +\subsection*{Data Fields} +\begin{CompactItemize} +\item +\hypertarget{structClient_69ad045aad8793b0aa0984e245e549eb}{ +char \textbf{pubId} \mbox{[}SZ\_\-NAME\mbox{]}} +\label{structClient_69ad045aad8793b0aa0984e245e549eb} + +\item +char \hyperlink{structClient_67f4b49f5eda3f6cf1ff33a6fe883bf6}{name} \mbox{[}SZ\_\-NAME\mbox{]} +\end{CompactItemize} + + +\subsection{Detailed Description} +Registered \hyperlink{structClient}{Client} name mappings. + +\subsection{Field Documentation} +\hypertarget{structClient_67f4b49f5eda3f6cf1ff33a6fe883bf6}{ +\index{Client@{Client}!name@{name}} +\index{name@{name}!Client@{Client}} +\subsubsection[{name}]{\setlength{\rightskip}{0pt plus 5cm}char {\bf Client::name}}} +\label{structClient_67f4b49f5eda3f6cf1ff33a6fe883bf6} + + +public name + +Referenced by samp\_\-addClient(), samp\_\-app2id(), samp\_\-envGet(), samp\_\-id2app(), samp\_\-listClients(), samp\_\-mapClients(), samp\_\-paramGet(), samp\_\-removeClient(), and sampStartup(). + +The documentation for this struct was generated from the following files:\begin{CompactItemize} +\item +\hyperlink{samp_8h}{samp.h}\item +\hyperlink{sampDecl_8h}{sampDecl.h}\end{CompactItemize} diff --git a/vendor/voclient/libsamp/doc/latex/structHub.tex b/vendor/voclient/libsamp/doc/latex/structHub.tex new file mode 100644 index 00000000..e2db1a28 --- /dev/null +++ b/vendor/voclient/libsamp/doc/latex/structHub.tex @@ -0,0 +1,167 @@ +\hypertarget{structHub}{ +\section{Hub Struct Reference} +\label{structHub}\index{Hub@{Hub}} +} +{\tt \#include $<$samp.h$>$} + +\subsection*{Data Fields} +\begin{CompactItemize} +\item +\hypertarget{structHub_2afdf379c978a0a93b1213d1469f5bd5}{ +char \textbf{appName} \mbox{[}SZ\_\-LINE\mbox{]}} +\label{structHub_2afdf379c978a0a93b1213d1469f5bd5} + +\item +char \hyperlink{structHub_b6cbad1270ab46610f03837d4a01648f}{appVer} \mbox{[}SZ\_\-LINE\mbox{]} +\item +char \hyperlink{structHub_d96b607b83480697b7147f95f84132fb}{description} \mbox{[}SZ\_\-LINE\mbox{]} +\item +\hyperlink{structappMD}{appMD} \hyperlink{structHub_cfe9051f3f0d6fd908ddf394283d1262}{meta} +\item +char \hyperlink{structHub_52a6b65f54e98c4f3b7441808e30fa6c}{secret} \mbox{[}SZ\_\-SECRET\mbox{]} +\item +char \hyperlink{structHub_81adb6d0cab27f61c0aaebbb7b7685e4}{url} \mbox{[}SZ\_\-URL\mbox{]} +\item +char \hyperlink{structHub_0e07ef26e39ed1282042364297591df5}{version} \mbox{[}SZ\_\-NAME\mbox{]} +\item +int \hyperlink{structHub_3546ac45740591096b9bdc4c37b8d5f5}{id} +\item +char \hyperlink{structHub_83ae1eed61525e4dd8795d7076b9a844}{appId} \mbox{[}SZ\_\-NAME\mbox{]} +\item +char \hyperlink{structHub_53b0a5acf4419ffff98c6510e84a9f62}{privateKey} \mbox{[}SZ\_\-LINE\mbox{]} +\item +char \hyperlink{structHub_c5ecb8cd6b3d61ab9e0fddfb643c65c3}{hubId} \mbox{[}SZ\_\-LINE\mbox{]} +\item +char \hyperlink{structHub_ce254c7adba1a20deb1dff7e112dd2a8}{selfId} \mbox{[}SZ\_\-LINE\mbox{]} +\item +char \hyperlink{structHub_b69adb014b0cef61d6632e60fb2dff5b}{timeout} \mbox{[}SZ\_\-NAME\mbox{]} +\item +void $\ast$ \hyperlink{structHub_cfd1b13e1f462d6595ce4e0b5ab08cb9}{samp} +\end{CompactItemize} + + +\subsection{Detailed Description} +\hyperlink{structHub}{Hub} description. Our application connects to this hub by default, but the structure will be valid for any \hyperlink{structHub}{Hub}. + +\subsection{Field Documentation} +\hypertarget{structHub_83ae1eed61525e4dd8795d7076b9a844}{ +\index{Hub@{Hub}!appId@{appId}} +\index{appId@{appId}!Hub@{Hub}} +\subsubsection[{appId}]{\setlength{\rightskip}{0pt plus 5cm}char {\bf Hub::appId}}} +\label{structHub_83ae1eed61525e4dd8795d7076b9a844} + + +\hyperlink{structHub}{Hub} XML-RPC connection + +Referenced by samp\_\-hubOpen().\hypertarget{structHub_b6cbad1270ab46610f03837d4a01648f}{ +\index{Hub@{Hub}!appVer@{appVer}} +\index{appVer@{appVer}!Hub@{Hub}} +\subsubsection[{appVer}]{\setlength{\rightskip}{0pt plus 5cm}char {\bf Hub::appVer}}} +\label{structHub_b6cbad1270ab46610f03837d4a01648f} + + +application name + +Referenced by samp\_\-hubOpen(), samp\_\-Metadata(), and samp\_\-setAppVersion().\hypertarget{structHub_d96b607b83480697b7147f95f84132fb}{ +\index{Hub@{Hub}!description@{description}} +\index{description@{description}!Hub@{Hub}} +\subsubsection[{description}]{\setlength{\rightskip}{0pt plus 5cm}char {\bf Hub::description}}} +\label{structHub_d96b607b83480697b7147f95f84132fb} + + +application version + +Referenced by samp\_\-hubDeclareMetadata(), samp\_\-hubOpen(), and samp\_\-Metadata().\hypertarget{structHub_c5ecb8cd6b3d61ab9e0fddfb643c65c3}{ +\index{Hub@{Hub}!hubId@{hubId}} +\index{hubId@{hubId}!Hub@{Hub}} +\subsubsection[{hubId}]{\setlength{\rightskip}{0pt plus 5cm}char {\bf Hub::hubId}}} +\label{structHub_c5ecb8cd6b3d61ab9e0fddfb643c65c3} + + +client key value + +Referenced by samp\_\-hubRegister(), and samp\_\-Register().\hypertarget{structHub_3546ac45740591096b9bdc4c37b8d5f5}{ +\index{Hub@{Hub}!id@{id}} +\index{id@{id}!Hub@{Hub}} +\subsubsection[{id}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf Hub::id}}} +\label{structHub_3546ac45740591096b9bdc4c37b8d5f5} + + +\hyperlink{structHub}{Hub} version string + +Referenced by samp\_\-call(), samp\_\-callAll(), samp\_\-callAndWait(), samp\_\-envGet(), samp\_\-GetMetadata(), samp\_\-GetRegisteredClients(), samp\_\-GetSubscribedClients(), samp\_\-hubDeclareMetadata(), samp\_\-hubDeclareSubscriptions(), samp\_\-hubOpen(), samp\_\-hubPing(), samp\_\-hubRegister(), samp\_\-hubSendShutdown(), samp\_\-hubSetXmlrpcCallback(), samp\_\-hubUnRegister(), samp\_\-notify(), samp\_\-notifyAll(), samp\_\-paramGet(), samp\_\-Register(), samp\_\-Reply(), and sampStartup().\hypertarget{structHub_cfe9051f3f0d6fd908ddf394283d1262}{ +\index{Hub@{Hub}!meta@{meta}} +\index{meta@{meta}!Hub@{Hub}} +\subsubsection[{meta}]{\setlength{\rightskip}{0pt plus 5cm}{\bf appMD} {\bf Hub::meta}}} +\label{structHub_cfe9051f3f0d6fd908ddf394283d1262} + + +descriptive text + +Referenced by samp\_\-hubClose(), samp\_\-hubDeclareMetadata(), samp\_\-hubOpen(), and samp\_\-Metadata().\hypertarget{structHub_53b0a5acf4419ffff98c6510e84a9f62}{ +\index{Hub@{Hub}!privateKey@{privateKey}} +\index{privateKey@{privateKey}!Hub@{Hub}} +\subsubsection[{privateKey}]{\setlength{\rightskip}{0pt plus 5cm}char {\bf Hub::privateKey}}} +\label{structHub_53b0a5acf4419ffff98c6510e84a9f62} + + +client key + +Referenced by samp\_\-call(), samp\_\-callAll(), samp\_\-callAndWait(), samp\_\-envGet(), samp\_\-GetMetadata(), samp\_\-GetRegisteredClients(), samp\_\-GetSubscribedClients(), samp\_\-hubDeclareMetadata(), samp\_\-hubDeclareSubscriptions(), samp\_\-hubPing(), samp\_\-hubRegister(), samp\_\-hubSendShutdown(), samp\_\-hubSetXmlrpcCallback(), samp\_\-hubUnRegister(), samp\_\-notify(), samp\_\-notifyAll(), samp\_\-paramGet(), samp\_\-Register(), and samp\_\-Reply().\hypertarget{structHub_cfd1b13e1f462d6595ce4e0b5ab08cb9}{ +\index{Hub@{Hub}!samp@{samp}} +\index{samp@{samp}!Hub@{Hub}} +\subsubsection[{samp}]{\setlength{\rightskip}{0pt plus 5cm}void $\ast$ {\bf Hub::samp}}} +\label{structHub_cfd1b13e1f462d6595ce4e0b5ab08cb9} + + +Sync msg timeout (str) + +Referenced by samp\_\-hubDeclareSubscriptions(), and samp\_\-hubOpen().\hypertarget{structHub_52a6b65f54e98c4f3b7441808e30fa6c}{ +\index{Hub@{Hub}!secret@{secret}} +\index{secret@{secret}!Hub@{Hub}} +\subsubsection[{secret}]{\setlength{\rightskip}{0pt plus 5cm}char {\bf Hub::secret}}} +\label{structHub_52a6b65f54e98c4f3b7441808e30fa6c} + + +metadata + +Referenced by samp\_\-hubRegister(), and samp\_\-Register().\hypertarget{structHub_ce254c7adba1a20deb1dff7e112dd2a8}{ +\index{Hub@{Hub}!selfId@{selfId}} +\index{selfId@{selfId}!Hub@{Hub}} +\subsubsection[{selfId}]{\setlength{\rightskip}{0pt plus 5cm}char {\bf Hub::selfId}}} +\label{structHub_ce254c7adba1a20deb1dff7e112dd2a8} + + +\hyperlink{structHub}{Hub} id value + +Referenced by samp\_\-hubRegister(), and samp\_\-Register().\hypertarget{structHub_b69adb014b0cef61d6632e60fb2dff5b}{ +\index{Hub@{Hub}!timeout@{timeout}} +\index{timeout@{timeout}!Hub@{Hub}} +\subsubsection[{timeout}]{\setlength{\rightskip}{0pt plus 5cm}char {\bf Hub::timeout}}} +\label{structHub_b69adb014b0cef61d6632e60fb2dff5b} + + +\hyperlink{structClient}{Client} id value + +Referenced by samp\_\-callAndWait(), samp\_\-envGet(), samp\_\-hubOpen(), samp\_\-paramGet(), and samp\_\-setTimeout().\hypertarget{structHub_81adb6d0cab27f61c0aaebbb7b7685e4}{ +\index{Hub@{Hub}!url@{url}} +\index{url@{url}!Hub@{Hub}} +\subsubsection[{url}]{\setlength{\rightskip}{0pt plus 5cm}char {\bf Hub::url}}} +\label{structHub_81adb6d0cab27f61c0aaebbb7b7685e4} + + +registration string + +Referenced by samp\_\-hubOpen().\hypertarget{structHub_0e07ef26e39ed1282042364297591df5}{ +\index{Hub@{Hub}!version@{version}} +\index{version@{version}!Hub@{Hub}} +\subsubsection[{version}]{\setlength{\rightskip}{0pt plus 5cm}char {\bf Hub::version}}} +\label{structHub_0e07ef26e39ed1282042364297591df5} + + +\hyperlink{structHub}{Hub} service endpoint + +The documentation for this struct was generated from the following files:\begin{CompactItemize} +\item +\hyperlink{samp_8h}{samp.h}\item +\hyperlink{sampDecl_8h}{sampDecl.h}\end{CompactItemize} diff --git a/vendor/voclient/libsamp/doc/latex/structSamp.tex b/vendor/voclient/libsamp/doc/latex/structSamp.tex new file mode 100644 index 00000000..21780ddf --- /dev/null +++ b/vendor/voclient/libsamp/doc/latex/structSamp.tex @@ -0,0 +1,271 @@ +\hypertarget{structSamp}{ +\section{Samp Struct Reference} +\label{structSamp}\index{Samp@{Samp}} +} +{\tt \#include $<$samp.h$>$} + +\subsection*{Data Fields} +\begin{CompactItemize} +\item +\hypertarget{structSamp_f372ba3fd5ff2d8c8ec06bd33403ca9e}{ +char \textbf{appName} \mbox{[}SZ\_\-NAME\mbox{]}} +\label{structSamp_f372ba3fd5ff2d8c8ec06bd33403ca9e} + +\item +char \hyperlink{structSamp_df7c497b6dbffc08e8ef5d7edd4ee97e}{appVer} \mbox{[}SZ\_\-LINE\mbox{]} +\item +char \hyperlink{structSamp_d672d7d425e8180b93c7ca2229d1acd8}{description} \mbox{[}SZ\_\-NAME\mbox{]} +\item +char \hyperlink{structSamp_62629ad2155a2a1a7676e32ef9fb9ffd}{errortxt} \mbox{[}SZ\_\-LINE\mbox{]} +\item +\hyperlink{structappMD}{appMD} \hyperlink{structSamp_0884021074d1ed14342187005e0b78e7}{meta} +\item +pthread\_\-t \hyperlink{structSamp_e7db0cac0c4ad61c9ed7f3d344b623cf}{svrThread} +\item +int($\ast$ \hyperlink{structSamp_eb399d3fb381bee752b5747ff4cb9a9b}{defaultUserFunc} )(char $\ast$sender, char $\ast$msgid, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map) +\item +\hypertarget{structSamp_60d87008915bca91796cbdf77537e5f0}{ +\hyperlink{structSubs}{Subs} \textbf{subs} \mbox{[}MAX\_\-SUBS\mbox{]}} +\label{structSamp_60d87008915bca91796cbdf77537e5f0} + +\item +int \hyperlink{structSamp_36f4cfae3407b8961e57a77abca7d599}{nsubs} +\item +\hyperlink{structClient}{Client} \hyperlink{structSamp_2cc1f00b9e4bae456e0e72b90147df7b}{clients} \mbox{[}MAX\_\-CLIENTS\mbox{]} +\item +int \hyperlink{structSamp_97ef8ad57159f4b6c4fcd93a12853b69}{nclients} +\item +int \hyperlink{structSamp_69b05b2fa1ab19729d81659ad64387a0}{serverTid} +\item +int \hyperlink{structSamp_8849cb13cbedae805b4e35327bc449e2}{serverPort} +\item +\hyperlink{structHub}{Hub} $\ast$ \hyperlink{structSamp_14811ec2253a6e2e75a8ec863c4150b0}{hub} +\item +handle\_\-t \hyperlink{structSamp_03918136809ece7e60de4e30c64b6224}{hubHandle} +\item +int \hyperlink{structSamp_723b2538cfd65122c49783b36a7d30b5}{hubThreadID} +\item +int \hyperlink{structSamp_32402da48b11693c13252edbdca7673c}{active} +\item +int \hyperlink{structSamp_c8eee2b56f226f59d814fd1baa751b77}{mapClients} +\item +int \hyperlink{structSamp_30ca22535582e7bf6416627d1cd46525}{msgMode} +\item +int \hyperlink{structSamp_14f6ed59a947504d37bd8cdd1f2f8e8d}{handlerMode} +\item +FILE $\ast$ \hyperlink{structSamp_79f2ee1f48cb40edaf9b63ccdbb6942f}{logfd} +\item +int \hyperlink{structSamp_d8469d2447cd872101fb83d92f85049e}{debug} +\item +int \hyperlink{structSamp_981b01bd09deddb039db3567825bd653}{verbose} +\item +int \hyperlink{structSamp_25ddaf846639c7c67ea651a578b804ad}{trace} +\end{CompactItemize} + + +\subsection{Detailed Description} +SAMP application description. By default this describes our app by may be used to store information about other apps in the network as well. + +\subsection{Field Documentation} +\hypertarget{structSamp_32402da48b11693c13252edbdca7673c}{ +\index{Samp@{Samp}!active@{active}} +\index{active@{active}!Samp@{Samp}} +\subsubsection[{active}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf Samp::active}}} +\label{structSamp_32402da48b11693c13252edbdca7673c} + + +\hyperlink{structHub}{Hub} thread id + +Referenced by samp\_\-hubActive(), sampShutdown(), and sampStartup().\hypertarget{structSamp_df7c497b6dbffc08e8ef5d7edd4ee97e}{ +\index{Samp@{Samp}!appVer@{appVer}} +\index{appVer@{appVer}!Samp@{Samp}} +\subsubsection[{appVer}]{\setlength{\rightskip}{0pt plus 5cm}char {\bf Samp::appVer}}} +\label{structSamp_df7c497b6dbffc08e8ef5d7edd4ee97e} + + +application name + +Referenced by samp\_\-hubOpen(), samp\_\-Metadata(), and samp\_\-setAppVersion().\hypertarget{structSamp_2cc1f00b9e4bae456e0e72b90147df7b}{ +\index{Samp@{Samp}!clients@{clients}} +\index{clients@{clients}!Samp@{Samp}} +\subsubsection[{clients}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Client} {\bf Samp::clients}}} +\label{structSamp_2cc1f00b9e4bae456e0e72b90147df7b} + + +number of subscriptions + +Referenced by samp\_\-addClient(), samp\_\-app2id(), samp\_\-envGet(), samp\_\-id2app(), samp\_\-listClients(), samp\_\-mapClients(), samp\_\-paramGet(), samp\_\-removeClient(), samp\_\-sendMsg(), and sampStartup().\hypertarget{structSamp_d8469d2447cd872101fb83d92f85049e}{ +\index{Samp@{Samp}!debug@{debug}} +\index{debug@{debug}!Samp@{Samp}} +\subsubsection[{debug}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf Samp::debug}}} +\label{structSamp_d8469d2447cd872101fb83d92f85049e} + + +log file descriptor + +Referenced by samp\_\-call(), samp\_\-callAll(), samp\_\-callAndWait(), samp\_\-notifyAll(), sampDebug(), and sampLog().\hypertarget{structSamp_eb399d3fb381bee752b5747ff4cb9a9b}{ +\index{Samp@{Samp}!defaultUserFunc@{defaultUserFunc}} +\index{defaultUserFunc@{defaultUserFunc}!Samp@{Samp}} +\subsubsection[{defaultUserFunc}]{\setlength{\rightskip}{0pt plus 5cm}int($\ast$ {\bf Samp::defaultUserFunc})(char $\ast$sender, char $\ast$msgid, {\bf Map} map) (char $\ast$ {\em sender}, \/ char $\ast$ {\em msgid}, \/ {\bf Map} {\em map})}} +\label{structSamp_eb399d3fb381bee752b5747ff4cb9a9b} + + +server thread number default user handler + +Referenced by samp\_\-execUserHandler(), samp\_\-getUserHandler(), samp\_\-receiveCall(), samp\_\-receiveNotification(), samp\_\-receiveResponse(), and samp\_\-setUserHandler().\hypertarget{structSamp_d672d7d425e8180b93c7ca2229d1acd8}{ +\index{Samp@{Samp}!description@{description}} +\index{description@{description}!Samp@{Samp}} +\subsubsection[{description}]{\setlength{\rightskip}{0pt plus 5cm}char {\bf Samp::description}}} +\label{structSamp_d672d7d425e8180b93c7ca2229d1acd8} + + +application version + +Referenced by samp\_\-getMetadata(), samp\_\-hubOpen(), samp\_\-Metadata(), and samp\_\-printMetadata().\hypertarget{structSamp_62629ad2155a2a1a7676e32ef9fb9ffd}{ +\index{Samp@{Samp}!errortxt@{errortxt}} +\index{errortxt@{errortxt}!Samp@{Samp}} +\subsubsection[{errortxt}]{\setlength{\rightskip}{0pt plus 5cm}char {\bf Samp::errortxt}}} +\label{structSamp_62629ad2155a2a1a7676e32ef9fb9ffd} + + +application description + +Referenced by samp\_\-call(), samp\_\-callAll(), samp\_\-callAndWait(), samp\_\-envGet(), samp\_\-getErr(), samp\_\-GetMetadata(), samp\_\-notifyAll(), samp\_\-paramGet(), and samp\_\-setErr().\hypertarget{structSamp_14f6ed59a947504d37bd8cdd1f2f8e8d}{ +\index{Samp@{Samp}!handlerMode@{handlerMode}} +\index{handlerMode@{handlerMode}!Samp@{Samp}} +\subsubsection[{handlerMode}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf Samp::handlerMode}}} +\label{structSamp_14f6ed59a947504d37bd8cdd1f2f8e8d} + + +(a)synch message mode + +Referenced by samp\_\-bibcodeHandler(), samp\_\-cmdExecHandler(), samp\_\-envGetHandler(), samp\_\-envSetHandler(), samp\_\-execUserHandler(), samp\_\-imLoadHandler(), samp\_\-paramGetHandler(), samp\_\-paramSetHandler(), samp\_\-PingHandler(), samp\_\-pointAtHandler(), samp\_\-resConeHandler(), samp\_\-resLoadHandler(), samp\_\-resSiapHandler(), samp\_\-resSsapHandler(), samp\_\-resTapHandler(), samp\_\-resVOSpaceHandler(), samp\_\-setCallByRef(), samp\_\-specLoadHandler(), samp\_\-specSSAHandler(), samp\_\-StatusHandler(), samp\_\-tbHighlightHandler(), samp\_\-tbLoadFITSHandler(), samp\_\-tbLoadHandler(), samp\_\-tbLoadVOTHandler(), and samp\_\-tbSelectHandler().\hypertarget{structSamp_14811ec2253a6e2e75a8ec863c4150b0}{ +\index{Samp@{Samp}!hub@{hub}} +\index{hub@{hub}!Samp@{Samp}} +\subsubsection[{hub}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Hub} $\ast$ {\bf Samp::hub}}} +\label{structSamp_14811ec2253a6e2e75a8ec863c4150b0} + + +samp server port + +Referenced by samp\_\-bibLoad(), samp\_\-call(), samp\_\-callAll(), samp\_\-callAndWait(), samp\_\-cmdExec(), samp\_\-coordPointAtSky(), samp\_\-DeclareMetadata(), samp\_\-DeclareSubscriptions(), samp\_\-envGet(), samp\_\-envSet(), samp\_\-GetMetadata(), samp\_\-GetRegisteredClients(), samp\_\-GetSubscribedClients(), samp\_\-imageLoadFITS(), samp\_\-Metadata(), samp\_\-notify(), samp\_\-notifyAll(), samp\_\-paramGet(), samp\_\-paramSet(), samp\_\-Ping(), samp\_\-Register(), samp\_\-Reply(), samp\_\-resourceLoad(), samp\_\-sendGeneric(), samp\_\-setAppVersion(), samp\_\-setTimeout(), samp\_\-specLoadSSAGeneric(), samp\_\-tableHighlightRow(), samp\_\-tableLoadFITS(), samp\_\-tableLoadVOTable(), samp\_\-tableSelectRowList(), samp\_\-UnRegister(), sampClose(), and sampStartup().\hypertarget{structSamp_03918136809ece7e60de4e30c64b6224}{ +\index{Samp@{Samp}!hubHandle@{hubHandle}} +\index{hubHandle@{hubHandle}!Samp@{Samp}} +\subsubsection[{hubHandle}]{\setlength{\rightskip}{0pt plus 5cm}handle\_\-t {\bf Samp::hubHandle}}} +\label{structSamp_03918136809ece7e60de4e30c64b6224} + + +\hyperlink{structHub}{Hub} connection + +Referenced by sampClose(), sampShutdown(), and sampStartup().\hypertarget{structSamp_723b2538cfd65122c49783b36a7d30b5}{ +\index{Samp@{Samp}!hubThreadID@{hubThreadID}} +\index{hubThreadID@{hubThreadID}!Samp@{Samp}} +\subsubsection[{hubThreadID}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf Samp::hubThreadID}}} +\label{structSamp_723b2538cfd65122c49783b36a7d30b5} + + +\hyperlink{structHub}{Hub} handle alias \hypertarget{structSamp_79f2ee1f48cb40edaf9b63ccdbb6942f}{ +\index{Samp@{Samp}!logfd@{logfd}} +\index{logfd@{logfd}!Samp@{Samp}} +\subsubsection[{logfd}]{\setlength{\rightskip}{0pt plus 5cm}FILE $\ast$ {\bf Samp::logfd}}} +\label{structSamp_79f2ee1f48cb40edaf9b63ccdbb6942f} + + +CBR / CBV for user handlers + +Referenced by sampLog().\hypertarget{structSamp_c8eee2b56f226f59d814fd1baa751b77}{ +\index{Samp@{Samp}!mapClients@{mapClients}} +\index{mapClients@{mapClients}!Samp@{Samp}} +\subsubsection[{mapClients}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf Samp::mapClients}}} +\label{structSamp_c8eee2b56f226f59d814fd1baa751b77} + + +is interface active + +Referenced by sampStartup().\hypertarget{structSamp_0884021074d1ed14342187005e0b78e7}{ +\index{Samp@{Samp}!meta@{meta}} +\index{meta@{meta}!Samp@{Samp}} +\subsubsection[{meta}]{\setlength{\rightskip}{0pt plus 5cm}{\bf appMD} {\bf Samp::meta}}} +\label{structSamp_0884021074d1ed14342187005e0b78e7} + + +last msh error string + +Referenced by samp\_\-getMetadata(), samp\_\-Metadata(), and samp\_\-printMetadata().\hypertarget{structSamp_30ca22535582e7bf6416627d1cd46525}{ +\index{Samp@{Samp}!msgMode@{msgMode}} +\index{msgMode@{msgMode}!Samp@{Samp}} +\subsubsection[{msgMode}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf Samp::msgMode}}} +\label{structSamp_30ca22535582e7bf6416627d1cd46525} + + +map other clients + +is interface active + +Referenced by samp\_\-sendMsg(), samp\_\-setASyncMode(), samp\_\-setCallMode(), samp\_\-setMsgMode(), samp\_\-setNotifyMode(), and samp\_\-setSyncMode().\hypertarget{structSamp_97ef8ad57159f4b6c4fcd93a12853b69}{ +\index{Samp@{Samp}!nclients@{nclients}} +\index{nclients@{nclients}!Samp@{Samp}} +\subsubsection[{nclients}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf Samp::nclients}}} +\label{structSamp_97ef8ad57159f4b6c4fcd93a12853b69} + + +samp clients + +Referenced by samp\_\-addClient(), samp\_\-app2id(), samp\_\-envGet(), samp\_\-id2app(), samp\_\-listClients(), samp\_\-mapClients(), samp\_\-paramGet(), samp\_\-removeClient(), samp\_\-sendMsg(), and sampStartup().\hypertarget{structSamp_36f4cfae3407b8961e57a77abca7d599}{ +\index{Samp@{Samp}!nsubs@{nsubs}} +\index{nsubs@{nsubs}!Samp@{Samp}} +\subsubsection[{nsubs}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf Samp::nsubs}}} +\label{structSamp_36f4cfae3407b8961e57a77abca7d599} + + +message subscriptions + +Referenced by samp\_\-getSampHandler(), samp\_\-getUserHandler(), samp\_\-hubDeclareSubscriptions(), samp\_\-setSampHandler(), samp\_\-setUserHandler(), samp\_\-Subscribe(), and samp\_\-Unsubscribe().\hypertarget{structSamp_8849cb13cbedae805b4e35327bc449e2}{ +\index{Samp@{Samp}!serverPort@{serverPort}} +\index{serverPort@{serverPort}!Samp@{Samp}} +\subsubsection[{serverPort}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf Samp::serverPort}}} +\label{structSamp_8849cb13cbedae805b4e35327bc449e2} + + +samp server threadId \hypertarget{structSamp_69b05b2fa1ab19729d81659ad64387a0}{ +\index{Samp@{Samp}!serverTid@{serverTid}} +\index{serverTid@{serverTid}!Samp@{Samp}} +\subsubsection[{serverTid}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf Samp::serverTid}}} +\label{structSamp_69b05b2fa1ab19729d81659ad64387a0} + + +number of samp clients \hypertarget{structSamp_e7db0cac0c4ad61c9ed7f3d344b623cf}{ +\index{Samp@{Samp}!svrThread@{svrThread}} +\index{svrThread@{svrThread}!Samp@{Samp}} +\subsubsection[{svrThread}]{\setlength{\rightskip}{0pt plus 5cm}pthread\_\-t {\bf Samp::svrThread}}} +\label{structSamp_e7db0cac0c4ad61c9ed7f3d344b623cf} + + +metadata + +Referenced by sampShutdown().\hypertarget{structSamp_25ddaf846639c7c67ea651a578b804ad}{ +\index{Samp@{Samp}!trace@{trace}} +\index{trace@{trace}!Samp@{Samp}} +\subsubsection[{trace}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf Samp::trace}}} +\label{structSamp_25ddaf846639c7c67ea651a578b804ad} + + +verbose flag + +debug flag + +Referenced by samp\_\-call(), samp\_\-callAll(), samp\_\-callAndWait(), samp\_\-notifyAll(), samp\_\-receiveCall(), samp\_\-receiveNotification(), samp\_\-receiveResponse(), sampStartup(), and sampTrace().\hypertarget{structSamp_981b01bd09deddb039db3567825bd653}{ +\index{Samp@{Samp}!verbose@{verbose}} +\index{verbose@{verbose}!Samp@{Samp}} +\subsubsection[{verbose}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf Samp::verbose}}} +\label{structSamp_981b01bd09deddb039db3567825bd653} + + +debug flag + +Referenced by sampClose(), sampDebug(), sampShutdown(), sampStartup(), and sampVerbose(). + +The documentation for this struct was generated from the following files:\begin{CompactItemize} +\item +\hyperlink{samp_8h}{samp.h}\item +\hyperlink{sampDecl_8h}{sampDecl.h}\end{CompactItemize} diff --git a/vendor/voclient/libsamp/doc/latex/structSubs.tex b/vendor/voclient/libsamp/doc/latex/structSubs.tex new file mode 100644 index 00000000..0484a0a4 --- /dev/null +++ b/vendor/voclient/libsamp/doc/latex/structSubs.tex @@ -0,0 +1,48 @@ +\hypertarget{structSubs}{ +\section{Subs Struct Reference} +\label{structSubs}\index{Subs@{Subs}} +} +{\tt \#include $<$samp.h$>$} + +\subsection*{Data Fields} +\begin{CompactItemize} +\item +\hypertarget{structSubs_e34561f0e9c8805dcb19fe4f91ea3e3e}{ +char \textbf{mtype} \mbox{[}SZ\_\-LINE\mbox{]}} +\label{structSubs_e34561f0e9c8805dcb19fe4f91ea3e3e} + +\item +int($\ast$ \hyperlink{structSubs_14364d5a161adc47732c39b96e8156f0}{userFunc} )(void $\ast$p) +\item +int($\ast$ \hyperlink{structSubs_c4eca724f23609bb7ab9640c39c1001b}{sampFunc} )(char $\ast$sid, char $\ast$sender, char $\ast$msgid, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map) +\end{CompactItemize} + + +\subsection{Detailed Description} +Message subscription. + +\subsection{Field Documentation} +\hypertarget{structSubs_c4eca724f23609bb7ab9640c39c1001b}{ +\index{Subs@{Subs}!sampFunc@{sampFunc}} +\index{sampFunc@{sampFunc}!Subs@{Subs}} +\subsubsection[{sampFunc}]{\setlength{\rightskip}{0pt plus 5cm}int($\ast$ {\bf Subs::sampFunc})(char $\ast$sid, char $\ast$sender, char $\ast$msgid, {\bf Map} map) (char $\ast$ {\em sid}, \/ char $\ast$ {\em sender}, \/ char $\ast$ {\em msgid}, \/ {\bf Map} {\em map})}} +\label{structSubs_c4eca724f23609bb7ab9640c39c1001b} + + +user handler function samp handler function + +Referenced by samp\_\-getSampHandler(), samp\_\-setSampHandler(), and samp\_\-Unsubscribe().\hypertarget{structSubs_14364d5a161adc47732c39b96e8156f0}{ +\index{Subs@{Subs}!userFunc@{userFunc}} +\index{userFunc@{userFunc}!Subs@{Subs}} +\subsubsection[{userFunc}]{\setlength{\rightskip}{0pt plus 5cm}int($\ast$ {\bf Subs::userFunc})(void $\ast$p) (void $\ast$ {\em p})}} +\label{structSubs_14364d5a161adc47732c39b96e8156f0} + + +mtype string + +Referenced by samp\_\-getUserHandler(), samp\_\-hubDeclareSubscriptions(), samp\_\-setUserHandler(), and samp\_\-Unsubscribe(). + +The documentation for this struct was generated from the following files:\begin{CompactItemize} +\item +\hyperlink{samp_8h}{samp.h}\item +\hyperlink{sampDecl_8h}{sampDecl.h}\end{CompactItemize} diff --git a/vendor/voclient/libsamp/doc/latex/structappMD.tex b/vendor/voclient/libsamp/doc/latex/structappMD.tex new file mode 100644 index 00000000..22486960 --- /dev/null +++ b/vendor/voclient/libsamp/doc/latex/structappMD.tex @@ -0,0 +1,103 @@ +\hypertarget{structappMD}{ +\section{appMD Struct Reference} +\label{structappMD}\index{appMD@{appMD}} +} +{\tt \#include $<$samp.h$>$} + +\subsection*{Data Fields} +\begin{CompactItemize} +\item +\hypertarget{structappMD_138f7e855439b5960fedf2bfb28f473e}{ +char \textbf{name} \mbox{[}SZ\_\-LINE\mbox{]}} +\label{structappMD_138f7e855439b5960fedf2bfb28f473e} + +\item +char \hyperlink{structappMD_fe527cb05f296f8e8b8144bf444beffd}{desc} \mbox{[}SZ\_\-DESC\mbox{]} +\item +char \hyperlink{structappMD_8ff19215559267a838fe300ca4f743a7}{iconURL} \mbox{[}SZ\_\-URL\mbox{]} +\item +char \hyperlink{structappMD_53945cba18e159fcdd4fb627b1d1d312}{docURL} \mbox{[}SZ\_\-URL\mbox{]} +\item +char $\ast$ \hyperlink{structappMD_652f4b568b3de167fa0886613c8c6656}{descHTML} +\item +int \hyperlink{structappMD_4b9f5ebb7d20beb53a7bfe192009e89a}{nkeys} +\item +char $\ast$ \hyperlink{structappMD_cf4d62dbfeb28cb8c503d6a4d1598a8d}{aKey} \mbox{[}MAX\_\-MDATTRS\mbox{]} +\item +char $\ast$ \hyperlink{structappMD_13ae9876a351aee3fe5b861733aff77a}{aVal} \mbox{[}MAX\_\-MDATTRS\mbox{]} +\end{CompactItemize} + + +\subsection{Detailed Description} +SAMP String datatype Application (and \hyperlink{structHub}{Hub}) metadata. + +Application (and \hyperlink{structHub}{Hub}) metadata. + +\subsection{Field Documentation} +\hypertarget{structappMD_cf4d62dbfeb28cb8c503d6a4d1598a8d}{ +\index{appMD@{appMD}!aKey@{aKey}} +\index{aKey@{aKey}!appMD@{appMD}} +\subsubsection[{aKey}]{\setlength{\rightskip}{0pt plus 5cm}char $\ast$ {\bf appMD::aKey}}} +\label{structappMD_cf4d62dbfeb28cb8c503d6a4d1598a8d} + + +number of meta keys + +Referenced by samp\_\-getMetadata(), samp\_\-hubClose(), samp\_\-hubDeclareMetadata(), samp\_\-Metadata(), and samp\_\-printMetadata().\hypertarget{structappMD_13ae9876a351aee3fe5b861733aff77a}{ +\index{appMD@{appMD}!aVal@{aVal}} +\index{aVal@{aVal}!appMD@{appMD}} +\subsubsection[{aVal}]{\setlength{\rightskip}{0pt plus 5cm}char $\ast$ {\bf appMD::aVal}}} +\label{structappMD_13ae9876a351aee3fe5b861733aff77a} + + +attr keyword + +Referenced by samp\_\-getMetadata(), samp\_\-hubClose(), samp\_\-hubDeclareMetadata(), samp\_\-Metadata(), and samp\_\-printMetadata().\hypertarget{structappMD_fe527cb05f296f8e8b8144bf444beffd}{ +\index{appMD@{appMD}!desc@{desc}} +\index{desc@{desc}!appMD@{appMD}} +\subsubsection[{desc}]{\setlength{\rightskip}{0pt plus 5cm}char {\bf appMD::desc}}} +\label{structappMD_fe527cb05f296f8e8b8144bf444beffd} + + +name + +Referenced by samp\_\-hubOpen(), and samp\_\-Metadata().\hypertarget{structappMD_652f4b568b3de167fa0886613c8c6656}{ +\index{appMD@{appMD}!descHTML@{descHTML}} +\index{descHTML@{descHTML}!appMD@{appMD}} +\subsubsection[{descHTML}]{\setlength{\rightskip}{0pt plus 5cm}char $\ast$ {\bf appMD::descHTML}}} +\label{structappMD_652f4b568b3de167fa0886613c8c6656} + + +documentation URL \hypertarget{structappMD_53945cba18e159fcdd4fb627b1d1d312}{ +\index{appMD@{appMD}!docURL@{docURL}} +\index{docURL@{docURL}!appMD@{appMD}} +\subsubsection[{docURL}]{\setlength{\rightskip}{0pt plus 5cm}char {\bf appMD::docURL}}} +\label{structappMD_53945cba18e159fcdd4fb627b1d1d312} + + +icon URL + +Referenced by samp\_\-getMetadata(), samp\_\-hubDeclareMetadata(), samp\_\-Metadata(), and samp\_\-printMetadata().\hypertarget{structappMD_8ff19215559267a838fe300ca4f743a7}{ +\index{appMD@{appMD}!iconURL@{iconURL}} +\index{iconURL@{iconURL}!appMD@{appMD}} +\subsubsection[{iconURL}]{\setlength{\rightskip}{0pt plus 5cm}char {\bf appMD::iconURL}}} +\label{structappMD_8ff19215559267a838fe300ca4f743a7} + + +descriptive text + +Referenced by samp\_\-getMetadata(), samp\_\-hubDeclareMetadata(), samp\_\-Metadata(), and samp\_\-printMetadata().\hypertarget{structappMD_4b9f5ebb7d20beb53a7bfe192009e89a}{ +\index{appMD@{appMD}!nkeys@{nkeys}} +\index{nkeys@{nkeys}!appMD@{appMD}} +\subsubsection[{nkeys}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf appMD::nkeys}}} +\label{structappMD_4b9f5ebb7d20beb53a7bfe192009e89a} + + +descriptive text (HTML) + +Referenced by samp\_\-getMetadata(), samp\_\-hubClose(), samp\_\-hubDeclareMetadata(), samp\_\-Metadata(), and samp\_\-printMetadata(). + +The documentation for this struct was generated from the following files:\begin{CompactItemize} +\item +\hyperlink{samp_8h}{samp.h}\item +\hyperlink{sampDecl_8h}{sampDecl.h}\end{CompactItemize} diff --git a/vendor/voclient/libsamp/doc/mkdoc b/vendor/voclient/libsamp/doc/mkdoc new file mode 100755 index 00000000..906eeb6b --- /dev/null +++ b/vendor/voclient/libsamp/doc/mkdoc @@ -0,0 +1,10 @@ +#!/bin/csh -f + + +set m = "samp" + +foreach doc ( $m ) + groff -man -T ps ${doc}.man > ${doc}.ps + ps2pdf ${doc}.ps + man2html ${doc}.man > ${doc}.html +end diff --git a/vendor/voclient/libsamp/doc/samp.man b/vendor/voclient/libsamp/doc/samp.man new file mode 100644 index 00000000..8b8c141e --- /dev/null +++ b/vendor/voclient/libsamp/doc/samp.man @@ -0,0 +1,152 @@ +.\" @(#)samp.1 1.0 Oct-2011 MJF +.TH SAMP 1 "October 2011" "VOClient Project" +.SH NAME +samp \- commandline SAMP interface tool +.SH SYNOPSIS +\fBsamp\fP [\fI\fP] [ <\fIresource\fP> [[ <\fIobjname\fP> [ <\fIsr\fP> ]]] ] + +\fBvodata\fP [\fI\fP] [ <\fIresource\fP> [[ <\fIra\fP> <\fIdec\fP> [ <\fIsr\fP> ]]] ] + +\fBvodata\fP [\fI\fP] [ <\fIurl\fP> ] + +.SH OPTIONS +The \fIsamp\fP task accepts the following options: +.TP 8 +.B \-h +Print a help summary to the terminal and exit. +.TP 8 +.B \-d +Debug output. +.TP 8 +.B \-v +Verbose output. + +.TP 0 +The following flags control the major behavior of the task: +of output to present. +.TP 8 +.B \-m +Handle multiple messages. If not set, the task will exit after receipt +of the first message. +.TP 8 +.B \-s \fI\fR +Handle messages only from the specified \fI\fR application. The +application name may optionally be the public ID of the application. + +.TP 8 +.B \-t \fI\fR +Send the message to the specified application. If not set, a message is +broadcast to all clients subscribed to that particular message. +.TP 8 +.B \-p \fI\fR +Send the message using the specified messaging pattern. Allowed values +are '\fIsynch\dR', '\fIasynch\fR', or '\fInotify\fR'. Asynchronous messages +will ignore the reponse message. + +.TP 8 +.B \-i +Process in interactive mode. The application will register with the +Hub once and then process commands typed in at the "samp>" prompt. +.TP 8 +.B \-f \fI\fR +Process all commands in the named \fI. + + + +.SH DESCRIPTION +The \fIsamp\fR application ..... + + + +.SH COMMAND SUMMARY +.nf + Commands: + + snoop print all received messages + send [ ...] generalized message send + + status print Hub availability + list list all registered clients + access print availability + handle wait for message + + exec execute a client command + setenv set an environment value + getenv get an environment value + setparam set a parameter value + getparam get a parameter value + + loadImage load the named image + loadVOTable load the named VOTable + loadFITS load the named FITS bintable + loadSpec load the named spectrum + loadResource load the named VO Resource + + pointAt point at given coords + showRow [] [] highlight specified row + selectRows [] [] select specified rows + bibcode load the bibcode +.fi + + +.SH EXAMPLES + +.TP 4 +1) Print SAMP application status information: +.nf + + % samp status is Hub available? + % samp access topcat is 'topcat' connected? + % samp list list all available applications +.fi + +.TP 4 +2) Send a message containing the mtype \fIfoo.bar\fR and the +parameter \fIfoo\fR with a value of \fItrue\fR to all applications +subscribed to this mtype. +.nf + + % samp send foo.bar foo=true + % samp -t topcat send foo.bar foo=true +.fi +The second example sends the message specifically to 'topcat'. + +.TP 4 +3) Start the application an wait for a 'foo.bar' message to arrive. In +the second example, we'll continue running to receive multiple messages. +In the third example, wait for a message only from another 'samp' +application. +.nf + + % samp handle foo.bar (1) + % samp -m handle foo.bar (2) + % samp -s samp handle foo.bar (3) +.fi + +.TP 4 +4) Process multiple commands from a file: +.nf + % type cmds + loadImage http://foo.bar/sif.fits + loadVOTable http://foo.bar/sif.fits + % samp -f cmds + or + % cat cmds | samp -f - +.fi + + +.SH BUGS +.PP + + +.SH TODO +.PP + + +.SH Revision History +October 2011 - This task is new. +.SH Author +Michael Fitzpatrick (fitz@noao.edu), October 2011 +.SH "SEE ALSO" + + -- cgit