Skip to content

Commit

Permalink
rename initialize/cleanup functions
Browse files Browse the repository at this point in the history
  • Loading branch information
flightonary committed Jan 11, 2015
1 parent 197383e commit f05bdbb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Moscapsule/Moscapsule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ public struct Qos {
public static let Exactly_Once: Int32 = 2 // Assured delivery, i.e. =1
}

public func initialize() {
public func moscapsule_init() {
mosquitto_lib_init()
}

public func cleanup() {
public func moscapsule_cleanup() {
mosquitto_lib_cleanup()
}

Expand Down
2 changes: 1 addition & 1 deletion MoscapsuleTests/MoscapsuleTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class MoscapsuleTests: XCTestCase {
// Put setup code here. This method is called before the invocation of each test method in the class.
if !initFlag {
initFlag = true
initialize()
moscapsule_init()
}
}

Expand Down

0 comments on commit f05bdbb

Please sign in to comment.