Sha256: 61a2e7cb02d6982af0fc4c56ad936e278dbcf168446d59309d2dece62856012b

Contents?: true

Size: 1.79 KB

Versions: 7

Compression:

Stored size: 1.79 KB

Contents

'##################################################################
'# 
'# thin_service: Win32 native implementation for thin
'#                  (using ServiceFB and FreeBASIC)
'# 
'# Copyright (c) 2006 Multimedia systems
'# (c) and code by Luis Lavena
'# 
'#  thin_service (native) and thin_service gem_pluing are licensed
'#  in the same terms as thin, please review the thin license at
'#  http://thin.rubyforge.org/license.html
'#  
'##################################################################

'##################################################################
'# Requirements:
'# - FreeBASIC 0.18.
'# 
'##################################################################

#define SERVICEFB_INCLUDE_UTILS
#include once "ServiceFB.bi"
#include once "console_process.bi"

'# use for debug versions
#if not defined(GEM_VERSION)
  #define GEM_VERSION (debug mode)
#endif

'# preprocessor stringize
#define PPSTR(x) #x

namespace thin_service
    const VERSION as string = PPSTR(GEM_VERSION)
    
    '# namespace include
    using fb.svc
    using fb.svc.utils
    
    declare function single_onInit(byref as ServiceProcess) as integer
    declare sub single_onStart(byref as ServiceProcess)
    declare sub single_onStop(byref as ServiceProcess)
    
    '# SingleThin
    type SingleThin
        declare constructor()
        declare destructor()
        
        '# TODO: replace for inheritance here
        'declare function onInit() as integer
        'declare sub onStart()
        'declare sub onStop()
        
        __service       as ServiceProcess
        __console       as ConsoleProcess
        __child_pid     as uinteger
    end type
    
    '# TODO: replace with inheritance here
    dim shared single_thin_ref as SingleThin ptr
end namespace

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
thin_service-0.0.7 src/thin_service/thin_service.bi
thin_service-0.0.6 src/thin_service/thin_service.bi
thin_service-0.0.5 src/thin_service/thin_service.bi
thin_service-0.0.4 src/thin_service/thin_service.bi
thin_service-0.0.3 src/thin_service/thin_service.bi
thin_service-0.0.2 src/thin_service/thin_service.bi
thin_service-0.0.1 src/thin_service/thin_service.bi