Skip to content

Commit

Permalink
Use VintageNet.ifname type
Browse files Browse the repository at this point in the history
  • Loading branch information
fhunleth committed Nov 18, 2021
1 parent f67c13c commit 30a6ab3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/vintage_net_qmi/connection.ex
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ defmodule VintageNetQMI.Connection do
This will post the updated stats as properties.
"""
@spec process_stats(String.t(), map()) :: :ok
@spec process_stats(VintageNet.ifname(), map()) :: :ok
def process_stats(ifname, event_report_indication) do
stats = Map.drop(event_report_indication, [:name])
GenServer.cast(name(ifname), {:process_stats, stats})
Expand Down
6 changes: 3 additions & 3 deletions lib/vintage_net_qmi/connectivity.ex
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ defmodule VintageNetQMI.Connectivity do
* `:ifname` - the interface name the connectivity server will manage
"""
@type init_arg() :: {:ifname, String.t()}
@type init_arg() :: {:ifname, VintageNet.ifname()}

@doc """
Start the Connectivity server
Expand All @@ -29,15 +29,15 @@ defmodule VintageNetQMI.Connectivity do
@doc """
Report a serving system change to the connectivity server
"""
@spec serving_system_change(String.t(), map()) :: :ok
@spec serving_system_change(VintageNet.ifname(), map()) :: :ok
def serving_system_change(ifname, serving_system) do
GenServer.cast(name(ifname), {:serving_system_change, serving_system})
end

@doc """
Report a packet data connection status change
"""
@spec connection_status_change(String.t(), map()) :: :ok
@spec connection_status_change(VintageNet.ifname(), map()) :: :ok
def connection_status_change(ifname, connection_status) do
GenServer.cast(name(ifname), {:connection_status_change, connection_status})
end
Expand Down
2 changes: 1 addition & 1 deletion lib/vintage_net_qmi/indications.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule VintageNetQMI.Indications do
@doc """
Handle an incoming indication for a interface
"""
@spec handle(String.t(), map()) :: :ok
@spec handle(VintageNet.ifname(), map()) :: :ok
def handle(ifname, indication) do
GenServer.cast(name(ifname), {:indication, indication})
end
Expand Down
2 changes: 1 addition & 1 deletion lib/vintage_net_qmi/modem_info.ex
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ defmodule VintageNetQMI.ModemInfo do
alias QMI.{DeviceManagement, UserIdentity}
alias VintageNet.PropertyTable

@type init_arg() :: {:ifname, String.t()}
@type init_arg() :: {:ifname, VintageNet.ifname()}

@doc """
Start the ModemInfo server
Expand Down

0 comments on commit 30a6ab3

Please sign in to comment.